-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix show_excluded_items in @navigation api #1816
base: main
Are you sure you want to change the base?
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
In Plone 5.2 test is broken with and without the fix. |
@jenkins-plone-org please run jobs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of typos and a question for the failing test.
@@ -124,6 +124,35 @@ def test_dont_broke_with_contents_without_review_state(self): | |||
) | |||
self.assertIsNone(response.json()["items"][1]["items"][3]["review_state"]) | |||
|
|||
def test_show_exclude_items(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo.
def test_show_exclude_items(self): | |
def test_show_excluded_items(self): |
@@ -0,0 +1,2 @@ | |||
Fix incorrect condition for show_ecluded_items setting in the @navigation API. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add reST syntax and fix typo.
Fix incorrect condition for show_ecluded_items setting in the @navigation API. | |
Fix incorrect condition for ``show_excluded_items`` setting in the ``@navigation`` API. |
response = self.api_session.get( | ||
"/folder/@navigation", params={"expand.navigation.depth": 2} | ||
) | ||
self.assertNotIn( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is settings.show_excluded_items==True
at this point? That could explain the test failure.
The
show_ecluded_items
setting does not work for the@navigation
API due to an incorrect condition.📚 Documentation preview 📚: https://plonerestapi--1816.org.readthedocs.build/