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 navtree deprecations #3756

Merged
merged 4 commits into from
May 20, 2024
Merged

fix navtree deprecations #3756

merged 4 commits into from
May 20, 2024

Conversation

jensens
Copy link
Sponsor Member

@jensens jensens commented Mar 29, 2023

No description provided.

@mister-roboto
Copy link

@jensens 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!

@jensens
Copy link
Sponsor Member Author

jensens commented Mar 29, 2023

@jenkins-plone-org please run jobs

@mauritsvanrees
Copy link
Sponsor Member

Can you please split this into one commit with black/isort and one with the interesting changes? That is much easier to review. Now it is not clear at all what the actually interesting changes are.

@jensens
Copy link
Sponsor Member Author

jensens commented Mar 30, 2023

Well, its using interfaces and utilities from plone.base. Also it uses get_navigation_root instead of getNavigationRoot. that is it.
Test are failing, b/c some packages do import from getNavigationRoot from navtree.py - where it is imported (why would one do this?) . This need to be fixed before.

newNode["review_state"] = getattr(item, "review_state", None)
newNode["Description"] = getattr(item, "Description", None)
newNode["show_children"] = showChildren
newNode["no_display"] = False # We sort this out with the nodeFilter
# BBB getRemoteUrl and link_remote are deprecated, remove in Plone 4
Copy link
Sponsor Contributor

Choose a reason for hiding this comment

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

😆 we are a bit late at deprecating these BBB comment 😅

Copy link
Sponsor Contributor

@gforcada gforcada left a comment

Choose a reason for hiding this comment

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

It would be nice if you can structure your commits with automatic changes (either first or last) and then the actual changes, that would make reviewing much easier ✨

@jensens
Copy link
Sponsor Member Author

jensens commented Apr 2, 2023

@jenkins-plone-org please run jobs

@jensens
Copy link
Sponsor Member Author

jensens commented May 20, 2024

@jenkins-plone-org please run jobs

@jensens
Copy link
Sponsor Member Author

jensens commented May 20, 2024

@jenkins-plone-org please run jobs

@jensens jensens changed the title fix navtree deprecation + black/isort on the file fix navtree deprecations May 20, 2024
@jensens jensens marked this pull request as ready for review May 20, 2024 19:14
@jensens jensens merged commit 5f866f5 into master May 20, 2024
4 checks passed
@jensens jensens deleted the fix-navtree-deprecation branch May 20, 2024 19:14
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.

None yet

4 participants