0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
Commit Graph

14695 Commits

Author SHA1 Message Date
Matt Westcott
8e938ea115 Update rebuild-translation-sources to run from project root 2023-01-20 13:09:41 +00:00
Matt Westcott
cbbf4668de Update contributors list 2023-01-20 13:04:48 +00:00
Matt Westcott
741c6185e9 Update get-translator-credits script to run from project root 2023-01-20 12:59:36 +00:00
Matt Westcott
224870aa38 Fetch new translations from transifex 2023-01-20 12:41:29 +00:00
Matt Westcott
c54ae11fd1 Update fetch-translations script to run from project root 2023-01-20 12:35:45 +00:00
Matt Westcott
204ae40209 Fix test failures on indexing document tags
Fix regression caused by faf3e190f6. The save() must happen before reindexing, so that the indexer sees the updated state of the tags.
2023-01-20 09:39:28 +00:00
Matt Westcott
08d05c6392 Release note for #9820 2023-01-19 23:42:53 +00:00
Matt Westcott
43c0399d1d Remove cache-control header from document serve view
We should not assume out of the box that one hour (or any duration) is a valid duration for caches to hold on to stale responses without revalidation, and storing documents in a shared public cache is not appropriate because they may have authentication checks.
2023-01-19 23:28:24 +00:00
Suyash Singh
faf3e190f6 Fix: Revert the behaviour in #3821 deletion will happen before save 2023-01-19 23:26:34 +00:00
Sage Abdullah
c8edfd13b2 Add required=False to SearchForm.q 2023-01-19 22:07:50 +00:00
Sage Abdullah
d4b69cbfc1 Fix header search when q URL param is not present 2023-01-19 22:07:50 +00:00
Matt Westcott
f35d4a966e Release note for #9900 2023-01-19 21:09:33 +00:00
Matt Westcott
89205730de Make autocomplete() fail with a NotImplementedError on sqlite and mysql FTS backends 2023-01-19 21:09:33 +00:00
Matt Westcott
f5633dbfb6 Restore autocomplete behaviour of search in chooser modals
Fixes #7720. Unfortunately the different search backends have diverged massively in the autocomplete APIs they support:

* Postgres FTS (and probably the other database FTS backends) ignores the `partial_match` kwarg on `.search()` and `SearchField`, and only supports the `.autocomplete()` / `AutocompleteField` API
* The database fallback backend (and probably Elasticsearch) accepts `partial_match` on `.search()` (in fact I think it always does partial matches regardless of that setting - untested), but raises `NotImplementedError` on `.autocomplete()`

As a result, to perform autocompletion across all backends, we need to try both methods, with a try/except. (Also, user-defined models such as snippets will need either or both of `AutocompleteField` or `SearchField(partial_match=True)` in `search_fields` depending on the backend in use.)

Additionally, while tests have been added to cover the autocomplete behaviour, the test suite only ever runs under the fallback backend (with the exception of the backend-specific tests in wagtail.search), and so these would have succeeded anyhow. Much more cleanup work is needed here, but this will serve as a stopgap solution to get the choosers working as intended again.
2023-01-19 21:09:33 +00:00
Sage Abdullah
1594e58359 Adjust workflow tests setup to only save initial revision when necessary 2023-01-19 21:00:39 +00:00
Sage Abdullah
e0c77448bb Fix is_latest_revision() to compare by ID after comparing by creation date 2023-01-19 21:00:39 +00:00
Sage Abdullah
c50982f062 Fix warning message in icon template tag and update obsolete class_name usages 2023-01-19 18:53:15 +00:00
Thibaud Colas
357edf2914 Release notes for #9131 2023-01-19 16:57:24 +00:00
Thibaud Colas
0fc8df059a Fix positioning of StreamField and rich text "add" toggle buttons 2023-01-19 16:57:24 +00:00
Thibaud Colas
8b231d19c6 Replace StreamField block picker with new ComboBox 2023-01-19 16:57:24 +00:00
Thibaud Colas
a176616cda Use new ComboBox component in rich text 2023-01-19 16:57:24 +00:00
Thibaud Colas
3a7e489cdf Add new ComboBox React component based on downshift 2023-01-19 16:57:24 +00:00
Thibaud Colas
46d92d8711 Allow ES2021 standard library methods 2023-01-19 16:57:24 +00:00
Matt Westcott
716dcc2802 Resolve merge conflict in testapp migrations 2023-01-19 16:48:06 +00:00
Matt Westcott
28a78a6e52 Release note for #9639 2023-01-19 16:42:18 +00:00
Tidiane Dia
de7506ce6a Add BaseSequenceBlockComparison class 2023-01-19 16:41:53 +00:00
Tidiane Dia
41c896c7c1 Add ListBlock comparison class to avoid rendering to HTML 2023-01-19 16:41:53 +00:00
Albina
a3f10acae1
Userbar & accessibility checker UI improvements (#9913)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-01-19 16:06:11 +00:00
Sage Abdullah
ad3ef5875d
Update docs and changelog to reflect changes for #9817 2023-01-19 14:52:34 +00:00
Sage Abdullah
5f4a2ed38d
Add tests for exporting workflow reports 2023-01-19 14:07:54 +00:00
Sage Abdullah
2f21a42dd5
Add tests for showing workflow action menu items in different scenarios 2023-01-19 14:07:54 +00:00
Sage Abdullah
9673be9308
Add tests for snippet workflows without LockableMixin applied 2023-01-19 14:07:54 +00:00
Sage Abdullah
a6a431a083
Return ScheduledForPublishLock from DraftStateMixin.get_lock()
Update docs to enforce that the LockableMixin should come last (but before RevisionMixin)
2023-01-19 14:07:54 +00:00
Sage Abdullah
8e4ee44bb4
Add system checks to ensure WorkflowMixin's MRO 2023-01-19 14:07:54 +00:00
Sage Abdullah
d85db866cc
Check for LockableMixin before accessing its fields in workflow-related models 2023-01-19 14:07:54 +00:00
Sage Abdullah
d13f2dbac1
Use cached properties for queries in workflow history views 2023-01-19 14:07:53 +00:00
Sage Abdullah
d78cdd4069
Share workflows init code between snippets and pages 2023-01-19 14:07:53 +00:00
Sage Abdullah
0a8ddf7fca
Optimise query for UserObjectsInWorkflowModerationPanel 2023-01-19 14:07:53 +00:00
Sage Abdullah
d6925dab6c
Use cached properties for workflow-related queries in optional features mixin 2023-01-19 14:07:53 +00:00
Sage Abdullah
41236f6419
Remove |safe filter from workflow notification HTML templates 2023-01-19 14:07:53 +00:00
Sage Abdullah
0a408bebd4
Do not show workflow action menu items when reverting a revision 2023-01-19 14:07:53 +00:00
Sage Abdullah
d839f00a4e
Hide workflow-snippets assignment panel if no snippets have workflows enabled 2023-01-19 14:07:52 +00:00
Sage Abdullah
4b8839f4a4
Optimise WorkflowContentTypeForm init query 2023-01-19 14:07:52 +00:00
Sage Abdullah
2bbbfca746
Wrap WorkflowContentTypeForm.save() in a transaction 2023-01-19 14:07:52 +00:00
Sage Abdullah
3f5a432675
Make LockableMixin not depend on WorkflowMixin 2023-01-19 14:07:52 +00:00
Sage Abdullah
c2f47e4755
Add __str__() to WorkflowContentType and use get_content_type_label 2023-01-19 14:07:52 +00:00
Sage Abdullah
38f65e98a4
Fix workflow report export fields 2023-01-19 14:07:52 +00:00
Sage Abdullah
18c140e8be
Add docs for WorkflowMixin and enabling workflows for snippets 2023-01-19 14:07:51 +00:00
Sage Abdullah
73903cb40b
Add missing tests 2023-01-19 14:07:51 +00:00
Sage Abdullah
65e2b175fd
Add default response to CollectWorkflowActionData
If the form is invalid and the request was not made with XMLHttpRequest,
the method returns None instead of a valid response object
2023-01-19 14:07:51 +00:00