Skip to content
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

All items are shown in select default page form regardless the registry setting to filter items with a given content-type #182

Closed
erral opened this issue Sep 13, 2019 · 5 comments · Fixed by #184

Comments

@erral
Copy link
Sponsor Member

erral commented Sep 13, 2019

There is a registry setting to filter the items available to be selected as default page according to their content-type.

Anyway the code here adds them to the list:

https://github.com/plone/plone.app.content/blob/master/plone/app/content/browser/selection.py#L128

If all checks fail, the item is added to the result list.

I will try to write a test and a fix.

@mauritsvanrees
Copy link
Sponsor Member

I have lost track of what is okay to merge and what should still be tested together. Several Jenkins jobs have passed, others have errors that may not matter. Let's test everything together.

Let's see, we want this on Plone 5.1 and 5.2, right?

On 5.1:

https://github.com/plone/plone.app.content/pull/185
https://github.com/plone/Products.CMFPlone/pull/2954
https://github.com/plone/plone.app.upgrade/pull/217

On 5.2:

https://github.com/plone/plone.app.content/pull/184
https://github.com/plone/Products.CMFPlone/pull/2955
https://github.com/plone/plone.app.upgrade/pull/217

I have rebased a few of these branches, to get in the latest changes. That may avoid some failures on Jenkins. I will start jobs for these two combinations.

@mauritsvanrees
Copy link
Sponsor Member

I have fixed a naming mismatch in the plone.app.upgrade PR. That should hopefully fix the test failures.

@mauritsvanrees
Copy link
Sponsor Member

All Plone 5.2 jobs pass successfully!
Plone 5.1 has one robot error, but that seems a temporary error: "No browser is open.".

This seems good. I will merge.
They would be best merged together, and then get Jenkins to run at the end, but we cannot enforce that. So some jobs may temporarily fail until everything is merged. I will do the CMFPlone merges first, then plone.app.content, then plone.app.upgrade. I think that gives the least chance of temporary test failures.

@mauritsvanrees
Copy link
Sponsor Member

I have merged all. Thanks @erral!

@erral
Copy link
Sponsor Member Author

erral commented Oct 16, 2019

Thank you @mauritsvanrees for taking care of these. I was busy this last week and couldn't pay attention to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants