-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Branch: refs/heads/main Date: 2025-02-12T21:23:24-08:00 Author: Guido Stevens (gyst) <[email protected]> Commit: plone/plone.restapi@90931f4 Do not hardcode show_inactive in search (#1880) * Do not hardcode show_inactive in search * Update 1879.bugfix Co-authored-by: Steve Piercy <[email protected]> --------- Co-authored-by: Steve Piercy <[email protected]> Files changed: A news/1879.bugfix M src/plone/restapi/search/handler.py
- Loading branch information
Showing
1 changed file
with
19 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,26 @@ | ||
Repository: plone.volto | ||
Repository: plone.restapi | ||
|
||
|
||
Branch: refs/heads/main | ||
Date: 2025-02-11T11:37:04-08:00 | ||
Author: David Glick (davisagli) <[email protected]> | ||
Commit: https://github.com/plone/plone.volto/commit/658858c17bb824c8e89129e9b1d1cdc38e0d8892 | ||
|
||
Preparing release 5.0.3 | ||
|
||
Files changed: | ||
M CHANGES.md | ||
M setup.py | ||
D news/184.bugfix | ||
|
||
b'diff --git a/CHANGES.md b/CHANGES.md\nindex e7117ee..710f944 100644\n--- a/CHANGES.md\n+++ b/CHANGES.md\n@@ -9,6 +9,13 @@\n \n <!-- towncrier release notes start -->\n \n+## 5.0.3 (2025-02-11)\n+\n+\n+### Bug fixes:\n+\n+- Include `effective`, `end`, `getObjSize`, `mime_type`, and `start` in default summary serialization. @davisagli #184\n+\n ## 5.0.2 (2025-01-27)\n \n \ndiff --git a/news/184.bugfix b/news/184.bugfix\ndeleted file mode 100644\nindex e9cf91a..0000000\n--- a/news/184.bugfix\n+++ /dev/null\n@@ -1 +0,0 @@\n-Include `effective`, `end`, `getObjSize`, `mime_type`, and `start` in default summary serialization. @davisagli\ndiff --git a/setup.py b/setup.py\nindex a6c87e9..6416b0d 100644\n--- a/setup.py\n+++ b/setup.py\n@@ -13,7 +13,7 @@\n \n setup(\n name="plone.volto",\n- version="5.0.3.dev0",\n+ version="5.0.3",\n description="Volto integration add-on for Plone",\n long_description=long_description,\n long_description_content_type="text/markdown",\n' | ||
|
||
Repository: plone.volto | ||
|
||
|
||
Branch: refs/heads/main | ||
Date: 2025-02-11T11:38:33-08:00 | ||
Author: David Glick (davisagli) <[email protected]> | ||
Commit: https://github.com/plone/plone.volto/commit/d86a854e745dce87e4fbf82c0816f080c4575e4c | ||
|
||
Back to development: 5.0.4 | ||
Date: 2025-02-12T21:23:24-08:00 | ||
Author: Guido Stevens (gyst) <[email protected]> | ||
Commit: https://github.com/plone/plone.restapi/commit/90931f4f979cbf95ec8e1b54f026b75dbaf6694e | ||
|
||
Do not hardcode show_inactive in search (#1880) | ||
|
||
* Do not hardcode show_inactive in search | ||
|
||
* Update 1879.bugfix | ||
|
||
Co-authored-by: Steve Piercy <[email protected]> | ||
|
||
--------- | ||
|
||
Co-authored-by: Steve Piercy <[email protected]> | ||
|
||
Files changed: | ||
M setup.py | ||
A news/1879.bugfix | ||
M src/plone/restapi/search/handler.py | ||
|
||
b'diff --git a/setup.py b/setup.py\nindex 6416b0d..a108ee4 100644\n--- a/setup.py\n+++ b/setup.py\n@@ -13,7 +13,7 @@\n \n setup(\n name="plone.volto",\n- version="5.0.3",\n+ version="5.0.4.dev0",\n description="Volto integration add-on for Plone",\n long_description=long_description,\n long_description_content_type="text/markdown",\n' | ||
b'diff --git a/news/1879.bugfix b/news/1879.bugfix\nnew file mode 100644\nindex 000000000..8acdf1199\n--- /dev/null\n+++ b/news/1879.bugfix\n@@ -0,0 +1 @@\n+Do not hardcode ``show_inactive`` in search; let ``Products.CMFPlone`` handle that. @gyst\ndiff --git a/src/plone/restapi/search/handler.py b/src/plone/restapi/search/handler.py\nindex 22dda01fb..87be9f56e 100644\n--- a/src/plone/restapi/search/handler.py\n+++ b/src/plone/restapi/search/handler.py\n@@ -120,9 +120,6 @@ def filter_query(self, query):\n types = types["query"]\n query["portal_type"] = self.filter_types(types)\n \n- # respect effective/expiration date\n- query["show_inactive"] = False\n-\n # respect navigation root\n if "path" not in query:\n query["path"] = {"query": get_navigation_root(self.context)}\n' | ||
|