diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 8cb2260886..c9e1312044 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -50,6 +50,7 @@ Changelog * Fix: Ensure the panel title for a user's settings correctly reflects the `WAGTAIL_EMAIL_MANAGEMENT_ENABLED` setting by not showing 'email' if disabled (Omkar Jadhav) * Fix: Update Spotify oEmbed provider URL parsing to resolve correctly (Dhrűv) * Fix: Update link colours within help blocks to meet accessible contrast requirements (Rohit Sharma) + * Fix: Ensure the search promotions popular search terms picker correctly refers to the correct model (LB (Ben) Johnston) * Docs: Document `WAGTAILADMIN_BASE_URL` on "Integrating Wagtail into a Django project" page (Shreshth Srivastava) * Docs: Replace incorrect screenshot for authors listing on tutorial (Shreshth Srivastava) * Docs: Add documentation for building non-model-based choosers using the _queryish_ library (Matt Westcott) @@ -93,6 +94,7 @@ Changelog * Maintenance: Deprecate legacy moderation system (Sage Abdullah) * Maintenance: Update CI database versions (Jake Howard) * Maintenance: Add changelog and issue tracker links to the PyPI project page (Panagiotis H.M. Issaris) + * Maintenance: Add better deprecation warnings to the `search.Query` & `search.QueryDailyHits` model, move final set of templates from the admin search module to the search promotions contrib module (LB (Ben) Johnston) 5.1.3 (xx.xx.20xx) - IN DEVELOPMENT diff --git a/docs/releases/5.2.md b/docs/releases/5.2.md index d25c0b23a0..da67e50607 100644 --- a/docs/releases/5.2.md +++ b/docs/releases/5.2.md @@ -65,6 +65,7 @@ depth: 1 * Ensure the panel title for a user's settings correctly reflects the `WAGTAIL_EMAIL_MANAGEMENT_ENABLED` setting by not showing 'email' if disabled (Omkar Jadhav) * Update Spotify oEmbed provider URL parsing to resolve correctly (Dhrűv) * Update link colours within help blocks to meet accessible contrast requirements (Rohit Sharma) + * Ensure the search promotions popular search terms picker correctly refers to the correct model (LB (Ben) Johnston) ### Documentation @@ -114,6 +115,7 @@ depth: 1 * Deprecate legacy moderation system (Sage Abdullah) * Update CI database versions (Jake Howard) * Add changelog and issue tracker links to the PyPI project page (Panagiotis H.M. Issaris) + * Add better deprecation warnings to the `search.Query` & `search.QueryDailyHits` model, move final set of templates from the admin search module to the search promotions contrib module (LB (Ben) Johnston) ## Upgrade considerations - changes affecting all projects @@ -438,3 +440,23 @@ custom_format = CustomImageFormat('custom_example', 'Custom example', 'example-i register_image_format(custom_format) ``` + +### Changes to search promotions contrib module + +#### Deprecated `search_garbage_collect` management command has been removed + +In 5.0 the documentation advised that the `search_garbage_collect` command used to remove old stored search queries and daily hits has been moved to [`searchpromotions_garbage_collect`](searchpromotions_garbage_collect). + +The old command has now been fully removed and if called will throw an error. + +#### Changes to URL names and templates + +Some search promotions URLs and templates have now moved from the main admin search module into the search promotions module. + +| **Item** | **Old** | **New** | +| -------- | --------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| URL name | `wagtailsearch_admin:queries_chooser` | `wagtailsearchpromotions:chooser` | +| URL name | `wagtailsearch_admin:queries_chooserresults` | `wagtailsearchpromotions:queries_chooserresults` | +| Template | `wagtail/search/templates/wagtailsearch/queries/chooser/chooser.html` | `wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/queries/chooser/chooser.html` | +| Template | `wagtail/search/templates/wagtailsearch/queries/chooser/results.html` | `wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/queries/chooser/results.html` | +| Template | `wagtail/search/templates/wagtailsearch/queries/chooser_field.html` | `wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/queries/chooser_field.html` |