Matt Westcott
f44c31d9a6
Fill in release date for 5.2.1
2023-11-16 14:44:26 +00:00
Matt Westcott
e4a53d6f62
Fetch new translations from Transifex
2023-11-16 14:43:53 +00:00
Matt Westcott
6908a5cc1c
Prevent error on locked pages report when a user has locked multiple pages ( #11245 )
...
Fixes #10960 . Thanks to @richie-blake and @rohitsrma for reporting / investigation.
2023-11-16 14:16:35 +00:00
Sage Abdullah
3af26aa30e
Restore the ability to have content type facets when searching pages with an empty query ( #11243 )
2023-11-16 13:22:58 +00:00
Joe
c9b3d9e15b
Check for ContentType and Permission models before migration ( #11184 )
...
This prevents `create_extra_permissions` from querying or creating
ContentType or Permission objects if the models cannot be found.
When using multiple databases which do not have the auth_permission
table `create_extra_permissions` will cause migrate to fail.
This is similar to https://code.djangoproject.com/ticket/24075 .
Thanks to @crccheck for additional bug reporting.
2023-11-16 13:14:37 +00:00
Matt Westcott
ba17ef19d3
Release note for #11216 / #11234 in 5.2.1
2023-11-15 13:17:19 +00:00
Matt Westcott
f0697a6a9c
Release note for #11216 in 6.0
2023-11-14 18:56:36 +00:00
Matt Westcott
504e08a371
Remove fallback for fields that don't exist in search_fields
...
The `check` method in BaseSearchQueryCompiler rejects these, so this doesn't make a difference to real-world queries. However, the check is only performed after compilation is complete, so we still need to guard against this with `searchable_fields.get`.
However, our tests _do_ blithely use non-existent fields, so fix those too...
2023-11-14 18:53:27 +00:00
Matt Westcott
3eae77a47a
Don't add _all_text fields to remapped_fields if explicit fields are specified
...
Also fix previously-masked issues with _compile_fuzzy_query - pass field boost, and use field_name as key instead of the Field object
2023-11-14 18:53:27 +00:00
Matt Westcott
f33f5ea61b
Initialise individual Fields with the correct boost values
2023-11-14 18:53:27 +00:00
Matt Westcott
4bbf86e65a
Use a 'boost' field in match query clauses instead of "foo^2" notation
...
The latter notation is only valid within multi_match clauses: compare https://www.elastic.co/guide/en/elasticsearch/reference/8.11/query-dsl-multi-match-query.html#field-boost versus https://www.elastic.co/guide/en/elasticsearch/reference/8.11/query-dsl-match-query.html#match-field-params
2023-11-14 18:53:27 +00:00
Matt Westcott
9dc75fb006
Make field_name_with_boost a property of the Field object rather than having a get_boosted_fields helper function
2023-11-14 18:53:27 +00:00
Matt Westcott
df0c3064c4
Only consider subclasses of the currently-queried model when compiling unique_boosts
...
At indexing time, any SearchFields with a boost value assigned are copied to an index field named "_all_text_boost_{value}". Then, when querying, we compile a list of all such index fields and query on those fields, with the relevant boost applied to each one.
Previously, "all such index fields" was obtained by looking at distinct boost values across all indexed models. However, we only really need to consider models that can actually appear in the results - i.e. are subclasses of self.queryset.model. If a boost value does not appear among this set of models, then these models will never contribute anything to that "_all_text_boost_{value}" index field, and so it's pointless to query it.
2023-11-14 18:53:27 +00:00
Christer Jensen
b14bc33cdc
Fix snippet IndexView not respecting get_add_url()
2023-11-14 15:40:45 +00:00
Sage Abdullah
d0c1848881
Use doseq=True when re-encoding query params in set_query_params
...
Otherwise, the list of values will be stringified and then URL encoded, resulting in something like locale=%5B%27en%27%5D
From parse_qs docs: Use the urllib.parse.urlencode() function (with the doseq parameter set to True) to convert such dictionaries into query strings.
2023-11-14 14:58:28 +00:00
Matt Westcott
583b0a297f
Release note for #11223 in 5.2.1
2023-11-14 12:10:24 +00:00
Alex Tomkins
fa7a2bc38c
Fix performance regression for report views
2023-11-14 12:04:28 +00:00
Sage Abdullah
1341f0e065
Release notes for #11232
2023-11-14 10:59:19 +00:00
Sage Abdullah
748af92637
Consistently and safely set locale params in generic views
2023-11-13 13:46:43 +00:00
Sage Abdullah
24ca08d9a6
Create set_query_params util function
2023-11-13 12:34:42 +00:00
Matt Westcott
d4c18909df
Release note for #11226 in 5.2.1
2023-11-13 09:04:35 +00:00
Joshua Munn
47d048e242
Skip feature detection if image is an SVG
...
Fixes https://github.com/wagtail/wagtail/issues/11172
2023-11-13 08:58:31 +00:00
LB Johnston
2e2e8f4452
Minor documentation formatting (Prettier)
2023-11-13 09:53:38 +11:00
Neeraj P Yetheendran
8932c67270
Add full set of Documents app features
...
- Added customizing document upload form subsection in documents section
- Added storing and serving subpage
- Added overview section, including RichText and StreamField usage
- Closes #2001
2023-11-13 09:53:16 +11:00
LB Johnston
570b9a410c
Upgrade to Node 20
2023-11-12 08:45:58 +11:00
Temidayo32
9349e2ad9f
Allow UniqueConstraint in place of unique_together for TranslatableMixin's system check
2023-11-10 17:29:26 +00:00
rohitsrma
13048eab79
Prevent display of Workflow and Aging Pages Reports without appropriate permissions ( #11205 )
2023-11-10 16:06:23 +00:00
Kehinde Bobade
af1ce3ff88
Refactored the Account editing view to CBV
...
Relates to #8629
2023-11-10 18:50:10 +11:00
Sage Abdullah
2d5dc4d8f5
Fix crash when accessing the history view for a translatable snippet
...
Regression in dc049cd880
.
2023-11-09 12:08:49 +00:00
Thibaud Colas
771e83802a
Release notes for #11201
2023-11-09 08:57:56 +00:00
Thibaud Colas
20fe369d14
Convert one last font icon use to SVG
2023-11-09 08:57:56 +00:00
Matt Westcott
c631a64e44
Remove reference to icon font from Draftail/index.js
2023-11-09 08:57:56 +00:00
Matt Westcott
1ee655da0c
Remove deprecated icons
2023-11-09 08:57:56 +00:00
Matt Westcott
59262fb47f
Remove webpack rule for .woff
2023-11-09 08:57:56 +00:00
Matt Westcott
2616e24e0f
Remove 'svg' qualifier from _dropdown.legacy.scss
2023-11-09 08:57:56 +00:00
Matt Westcott
5e6efdae51
Remove styles labelled 'iconfont'
2023-11-09 08:57:56 +00:00
Matt Westcott
7e9c582775
Remove variables for font icons
2023-11-09 08:57:56 +00:00
Matt Westcott
90d7a1cf61
Remove sass icon() mixin
2023-11-09 08:57:56 +00:00
Matt Westcott
574c218c2b
Remove reference to icon fonts in 'extending Draftail' docs
2023-11-09 08:57:56 +00:00
Matt Westcott
82debb62be
Remove FontAwesome special-casing in wagtail.contrib.settings
2023-11-09 08:57:56 +00:00
Matt Westcott
d7ed0b2999
Remove icon font
2023-11-09 08:57:56 +00:00
Temidayo32
eaf237ffcb
Improve layout of Image URL Generator
...
- Move preview image to above the 'fold' so it's clearer to users what this page is for
- Avoid the JS driven (non-responsive) alert that shows if the image is too large and instead opt for a simpler CSS approach, allowing the image to overflow with a scrolling container
- Add w-prefixed classes for elements
- Ensure URL has an accessible label
- Relates to #3683
2023-11-09 08:56:13 +11:00
LB Johnston
9765f7d88e
Add changelog for #11097
...
Relates to partial styling improvements as specified in #11065
2023-11-09 08:05:28 +11:00
meli-imelda
81baf940f4
Accounts settings panels - refine spacing and classes
2023-11-09 08:05:28 +11:00
meli-imelda
7b9fe92856
Block chooser - refine padding and hover on block-chooser buttons
2023-11-09 08:05:28 +11:00
meli-imelda
6d28dff48e
Listings - Remove hover BG (dark mode) and refine padding/borders
2023-11-09 08:05:28 +11:00
Matt Westcott
32c48e149d
Use the latest draft when copying an unpublished page for translation ( #7755 )
...
Fixes #7754
Co-authored-by: Andrey Nehaychik <andrey.nehaychik@vizor-games.com>
2023-11-08 18:31:20 +00:00
Matt Westcott
582fe12749
Ensure that explorer_results views fill in the correct next_url parameter on action URLs
...
Fixes #11177 , by adding the option to pass an actions_next_url argument to the table as per https://github.com/wagtail/wagtail/pull/11175#discussion_r1381892130
2023-11-08 15:44:43 +00:00
varun kumar
d737f29a62
Use logical OR operator to combine search fields for Django ORM in IndexView
2023-11-08 15:30:27 +00:00
Sylvain Fankhauser
de70673bee
Allow using draftjs_exporter 5.0 ( #11024 )
...
Fixes #10723
2023-11-08 12:58:17 +00:00