Skip to content

Commit

Permalink
[fc] Repository: plone.restapi
Browse files Browse the repository at this point in the history
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 &lt;[email protected]&gt;

---------

Co-authored-by: Steve Piercy &lt;[email protected]&gt;

Files changed:
A news/1879.bugfix
M src/plone/restapi/search/handler.py
  • Loading branch information
davisagli committed Feb 13, 2025
1 parent 8136fb6 commit 2a85db4
Showing 1 changed file with 19 additions and 25 deletions.
44 changes: 19 additions & 25 deletions last_commit.txt
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 &lt;[email protected]&gt;

---------

Co-authored-by: Steve Piercy &lt;[email protected]&gt;

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'

0 comments on commit 2a85db4

Please sign in to comment.