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

Fix uses of unrestrictedTraverse in get_top_site_from_url() #20

Merged
merged 3 commits into from
Sep 11, 2022
Merged

Conversation

Rudd-O
Copy link
Contributor

@Rudd-O Rudd-O commented Sep 11, 2022

In some cases (when an object does not yet exist, for example) this method being called must skip these nonexistent objects from the recursive evaluation being done to discover the appropriate site to return.

… object cannot be found (a legitimate case), then it should not be considered as an object to return as ISite.
@mister-roboto
Copy link

@Rudd-O thanks for creating this Pull Request and helping to improve Plone!

TL;DR: Finish pushing changes, pass all other checks, then paste a comment:

@jenkins-plone-org please run jobs

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically.

Happy hacking!

@Rudd-O
Copy link
Contributor Author

Rudd-O commented Sep 11, 2022

Dispatching the tests now: https://jenkins.plone.org/job/pull-request-6.0-3.10/32/console .

@Rudd-O
Copy link
Contributor Author

Rudd-O commented Sep 11, 2022

Copy link
Member

@jensens jensens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more edge case. @Rudd-O you went down the rabbit hole, thanks for that, I feel with you.

@Rudd-O Rudd-O merged commit f02bd67 into main Sep 11, 2022
@Rudd-O Rudd-O deleted the myfix branch September 11, 2022 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants