0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
Commit Graph

16102 Commits

Author SHA1 Message Date
LB Johnston
ea7e3ed2e5 Add Changelog & Upgrade Notes for #10959 2023-10-09 20:56:09 +11:00
LB Johnston
ee533ac1a7 Remove deprecated search_garbage_collect
Wagtail 5.0 advised that this old command should no longer be used.
https://docs.wagtail.org/en/stable/releases/5.0.html#managing-stored-search-queries

However, it was not fully removed from the documentation or the code.
2023-10-09 20:56:09 +11:00
LB Johnston
a008554b9c Move chooser views from search into searchpromotions 2023-10-09 20:56:09 +11:00
LB Johnston
019015c698 Search models - add clearer deprecation comments and warnings
Models should not be in use as of Wagtail 5.0, however the chooser for popular search terms was still referencing this.

Add another warning and add clearer Docstrings about the state of these models, to be removed in Wagtail 6.0
2023-10-09 20:56:09 +11:00
Thibaud Colas
a2c9e9ab2c Release notes for docs changes 2023-10-09 06:43:30 +01:00
Olumide Micheal
5ab554010a
Fix Inconsistent URL Format in Getting Started tutorial (#11009) 2023-10-09 06:40:57 +01:00
Damilola Oladele
1c0ffc8994
Document new choice of writing style guide (#10634) 2023-10-06 23:24:26 +01:00
Matt Westcott
7787ebaf95 Add 'undocumented internals' section to 5.2 upgrade considerations 2023-10-06 16:24:16 +01:00
LB Johnston
bd730ecba6 Eslint - allow new SomeClass() in unit tests
- This constraint is not required in unit tests where the output of a class is not the main thing being tested
- Avoid noise in tests by just removing disabling this linting rule in these files
2023-10-06 20:36:42 +11:00
Panagiotis H.M. Issaris
3340854d1a Add a link to the issue tracker on the PyPI project page (#11004) 2023-10-06 10:30:10 +01:00
Panagiotis H.M. Issaris
949c7870a7 Add a link to the change log on the PyPI project page 2023-10-06 11:00:27 +02:00
Matt Westcott
d9c8d9fff3 Update CI database versions (#10999)
Rebuild of #10842
2023-10-05 14:44:28 +01:00
LB Johnston
8e3bee5e10 Add changelog for #10883 2023-10-05 22:01:52 +10:00
faishalmanzar
ceed617115 Added progress bar to wagtail_image_rendition command output
Fixes #10853
2023-10-05 22:23:28 +11:00
Jake Howard
8722bd963d Drop support for hashing text-mode files
This was only used in tests, and improves efficiency and ensures we use the optimisation from `hashlib.file_digest`
2023-10-05 22:20:01 +11:00
Jake Howard
62f91e1b49 Use hashlib.file_digest when available and applicable
This implementation is faster / more efficient than ours, but can only be used on binary-mode files.

Also increase the read buffer size to improve efficiency and performance.
2023-10-05 22:20:01 +11:00
dependabot[bot]
a1f8edc84d Bump postcss from 8.4.30 to 8.4.31
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.30 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.30...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-05 22:04:39 +11:00
Matt Westcott
d9e6ba07b7 Version bump django-filter to 23.3 for preliminary Django 5.0 compatibility 2023-10-05 11:38:45 +01:00
Matt Westcott
93064ee74c Bump django-modelcluster to 6.1; no need to test Django 5.x against git main 2023-10-05 11:38:45 +01:00
Matt Westcott
bf0601bb42 Test against Django 5.0.x stable branch instead of 4.2.x 2023-10-05 11:38:45 +01:00
Matt Westcott
73a6456c04 Release note for Python 3.12 support (#10991) 2023-10-05 11:37:42 +01:00
Matt Westcott
23075cc2c7 Version bump boto3 for Python 3.12 compatibility
Relax the upper version bound to <2, because we're unlikely to stay on top of keeping the version listed in testing_extras up to date, and if boto makes breaking changes that violate semver, that's going to affect end-users so we really want to know about it sooner rather than later.
2023-10-05 11:35:22 +01:00
Matt Westcott
20fef7cbdf Fix 'assert called with' assertions
As per https://github.com/python/cpython/issues/100690 , these assertions were a no-op and Python 3.12 guards against this.
2023-10-05 11:35:22 +01:00
Matt Westcott
9c3032083b Test against Python 3.12 2023-10-05 11:35:22 +01:00
rohitsrma
e2ce772017 Fix help block link contrast
Fixes #10990
2023-10-05 21:30:03 +11:00
LB Johnston
d6888e05e4 Update Format.classnames to be Format.classname
- Aligns with the naming convention set from Wagtail 4.2
- Add deprecation warnings if classnames is accessed & unit tests for this
- Update other unit tests to use the naming
2023-10-05 21:10:39 +11:00
LB Johnston
69b2955899 Fix typo in 5.2 release notes 2023-10-05 19:58:00 +10:00
Sage Abdullah
d0361e9829
Release notes for #10968 2023-10-05 10:35:28 +01:00
Sage Abdullah
9acc714c07
Add upgrade considerations for legacy moderation system deprecation 2023-10-05 10:35:28 +01:00
Sage Abdullah
39d6c3de7b
Mark implementation code that interacts with legacy moderation system for removal 2023-10-05 10:35:28 +01:00
Sage Abdullah
40e9739297
Deprecate PagePermissionPolicy.revisions_for_moderation 2023-10-05 10:35:28 +01:00
Sage Abdullah
e57a57dbaa
Mark legacy moderation system tests for removal 2023-10-05 10:35:27 +01:00
Sage Abdullah
bb5d45a0c4
Deprecate legacy moderation items for the userbar 2023-10-05 10:35:27 +01:00
Sage Abdullah
065fab50a3
Deprecate submitted_revisions manager and save_revision's submitted_for_moderation kwarg 2023-10-05 10:35:27 +01:00
Sage Abdullah
5f70ebeaa1
Deprecate Revision.approve_moderation() and Revision.reject_moderation() 2023-10-05 10:18:48 +01:00
Sage Abdullah
37455e9041
Deprecate preview_for_moderation view 2023-10-05 10:18:48 +01:00
Sage Abdullah
c5caec6345
Deprecate WAGTAIL_MODERATION_ENABLED setting in favour of WAGTAIL_WORKFLOW_ENABLED
The latter came later in #7218, but existing parts that still use
the old setting were not migrated to use the new setting
2023-10-05 10:18:48 +01:00
Sage Abdullah
5f6366c494
Raise warning when editing a page that's in the legacy moderation system 2023-10-05 10:18:48 +01:00
Sage Abdullah
e7595ab91d
Raise warning if there are revisions for moderation 2023-10-05 10:18:47 +01:00
Matt Westcott
ea6ca67ae0 Release note for #10989 in 5.0.4 2023-10-04 13:53:06 +01:00
Sage Abdullah
b05705fa07
Release notes for #10940 2023-10-04 13:31:21 +01:00
Sage Abdullah
ded26f0d44
Pass the 'More' buttons list to construct_snippet_listing_buttons hook
This hook would mostly be used to remove the default buttons. Now that
we put the default buttons inside the "More" dropdown button, it makes
sense to pass that dropdown's buttons list instead of the top-level
buttons for the hook.
2023-10-04 12:06:46 +01:00
Sage Abdullah
60d0008c55
Rename get_list_dropdown_buttons to get_list_more_buttons 2023-10-04 11:34:37 +01:00
Sage Abdullah
059111c143
Add tests for default listing buttons in ModelViewSet IndexView 2023-10-04 11:34:35 +01:00
Sage Abdullah
97052d2e46
Add docs for context argument removal from construct_snippet_listing_buttons 2023-10-04 11:31:46 +01:00
Sage Abdullah
39ae5b2797
Add more tests for snippets listing button hooks 2023-10-04 11:30:50 +01:00
Sage Abdullah
bb5c669e54
Update snippets listing buttons hook tests to ensure they are rendered in the right places 2023-10-04 11:30:50 +01:00
Sage Abdullah
c4057917e5
Do not pass the Column class' parent_context in IndexView get_list_buttons
As a result, the construct_snippet_listing_buttons hook can (and should) no longer pass context variables
2023-10-04 11:30:50 +01:00
Sage Abdullah
77f6607218
Use intermediary method for injecting get_buttons to column class in IndexView
Instead of passing the get_list_buttons method that has been bound to the view
2023-10-04 11:30:50 +01:00
Sage Abdullah
2722ac7f2b
Preserve dropdown buttons added via snippets listing button hooks as top-level buttons 2023-10-04 11:30:49 +01:00