4the4ryushin
48d3b2938c
fix typo
2023-01-25 13:28:07 +00:00
Matt Westcott
bd3b2b5421
Upgrade consideration note for SearchForm validation
2023-01-25 11:57:20 +00:00
Matt Westcott
3c540aa227
Make empty search field on image / document index return all results
...
Fixes #9953
2023-01-25 11:57:20 +00:00
dependabot[bot]
35f022c7f6
Bump ua-parser-js from 0.7.31 to 0.7.33
...
Bumps [ua-parser-js](https://github.com/faisalman/ua-parser-js ) from 0.7.31 to 0.7.33.
- [Release notes](https://github.com/faisalman/ua-parser-js/releases )
- [Changelog](https://github.com/faisalman/ua-parser-js/blob/master/changelog.md )
- [Commits](https://github.com/faisalman/ua-parser-js/compare/0.7.31...0.7.33 )
---
updated-dependencies:
- dependency-name: ua-parser-js
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-01-25 18:34:56 +10:00
Sage Abdullah
9a40cebbc9
Pin semgrep version to 1.3.0
...
Latest version (1.5.1 at time of writing) is incompatible with curlylint
due to conflicting versions of parsy required by both packages.
2023-01-24 23:05:21 +00:00
Matt Westcott
04df875d17
Fix assertCanCreate to publish by default
...
Fixes #9939
Also remove the mentions of redirects from the documentation - the fact that the method has to check for a different redirect URL is an internal implementation detail, and not relevant to what the assertion is intending to test (namely that a page is successfully created).
2023-01-25 08:14:15 +10:00
Alex Tomkins
8801a49da8
Add missing wagtailadmin_tags in workflow_state_approved.html template
2023-01-23 10:40:17 +00:00
LB Johnston
999f9ef579
4.2 release - Move docs item to correct docs section for #9902
2023-01-21 07:50:27 +10:00
Matt Westcott
8555d0c84d
Generate new strings for translation
2023-01-20 13:11:19 +00:00
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