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

Deprecate the portal_properties tool #3645

Merged
merged 4 commits into from
Sep 19, 2022
Merged

Conversation

ale-rt
Copy link
Member

@ale-rt ale-rt commented Sep 15, 2022

The tool gets most of the methods from OFS.PropertyManager.

The most relevant are using internally the hasProperty method.

Deprecating this should be enough to finally start removing this obsolete tool and a bunch of code that depends on that.

Refs. #125

The tool gets most of the methods from OFS.PropertyManager.

The most relevant are using internally the hasProperty method.

Deprecating this should be enough to finally start removing this
obsolete tool and a bunch of code that depends on that.

Refs. #125
@mister-roboto
Copy link

@ale-rt 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!

@ale-rt
Copy link
Member Author

ale-rt commented Sep 15, 2022

@jenkins-plone-org please run jobs

@ale-rt
Copy link
Member Author

ale-rt commented Sep 16, 2022

@jenkins-plone-org please run jobs

@gforcada
Copy link
Sponsor Member

Is there a porting guide from properties_tool to the registry? It would be great to add a link on those deprecations, so one can easily follow the link and get it ported ✨

@ale-rt
Copy link
Member Author

ale-rt commented Sep 17, 2022

I do not think so.
What about linking #125, the issue where the discussion about removing the tool happened?

@jensens
Copy link
Sponsor Member

jensens commented Sep 18, 2022

Please always tell in depreciation message when it will be removed, like in Plone 7 (or 6.1)...

@ale-rt
Copy link
Member Author

ale-rt commented Sep 19, 2022

The discussion about removing portal properties dates back in 2013 and the plan was to remove it in 5.1.

I would target 6.1: there is really a lot of junk code that we can drop, especially in the tests.

@ale-rt
Copy link
Member Author

ale-rt commented Sep 19, 2022

@jenkins-plone-org please run jobs

@jensens
Copy link
Sponsor Member

jensens commented Sep 19, 2022

@jenkins-plone-org please run jobs

@ale-rt ale-rt merged commit c3e9a33 into master Sep 19, 2022
@ale-rt ale-rt deleted the deprecate_portal_propertiies branch September 19, 2022 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants