-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
Remove portal_properties Tool. #125
Comments
This needs to include adding documentation to the upgrade guide for how add-on authors using property sheets in portal_properties can move their settings to the registry. |
All of the properties currently set by Plone core have been migrated to the configuration registry. I think we can mark PropertiesTool as deprecated in 5.0 and remove in 5.1. |
Moved from plip to bug. We need to mark it as deprecated and fully remove this in 6 IMO. |
How do we properly deprecate portal_properties? ONe option is to simplyt mention it in the release notes. Another would be to throw deprecation warnings when accessing properties or creating propertysheets. (i.e. decorating addPropertySheet, _setPropValue and getProperty) |
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 class TestBaseNavTree is not used anymore and its tests are not run. It is still assuming that the configuration is stored in the portal_properties tool, while it is in the registry since quite some time. Another step towards #125
The class TestBaseNavTree is not used anymore and its tests are not run. It is still assuming that the configuration is stored in the portal_properties tool, while it is in the registry since quite some time. Another step towards #125
The test was still assuming that the navigation root configuration is stored in the portal properties while it is in the registry since quite some time. Adapt the test to check that nothing breaks when tweaking the registry. Refs. #125
When running some tests, I saw this warning again:
I have added the current issue to the Plone 6.1 project board. Grepping for
|
it worth the effort and would clean our code. |
Branch: refs/heads/master Date: 2024-06-06T16:41:29+02:00 Author: Maurits van Rees (mauritsvanrees) <[email protected]> Commit: plone/plone.app.querystring@4d1d39a Remove unused portal_properties code from tests. Refs plone/Products.CMFPlone#125 Files changed: A news/125.tests M plone/app/querystring/tests/testQueryParser.py Repository: plone.app.querystring Branch: refs/heads/master Date: 2024-06-06T16:42:19+02:00 Author: Maurits van Rees (mauritsvanrees) <[email protected]> Commit: plone/plone.app.querystring@bf177ba Configuring with plone/meta Files changed: A dependabot.yml M .editorconfig M .github/workflows/meta.yml M .meta.toml M pyproject.toml M tox.ini Repository: plone.app.querystring Branch: refs/heads/master Date: 2024-06-07T10:08:25-04:00 Author: Jens W. Klein (jensens) <[email protected]> Commit: plone/plone.app.querystring@c0eb00f Merge pull request #150 from plone/remove-portal-properties-tool Remove portal properties tool from tests Files changed: A dependabot.yml A news/125.tests M .editorconfig M .github/workflows/meta.yml M .meta.toml M plone/app/querystring/tests/testQueryParser.py M pyproject.toml M tox.ini
Branch: refs/heads/master Date: 2024-06-06T16:41:29+02:00 Author: Maurits van Rees (mauritsvanrees) <[email protected]> Commit: plone/plone.app.querystring@4d1d39a Remove unused portal_properties code from tests. Refs plone/Products.CMFPlone#125 Files changed: A news/125.tests M plone/app/querystring/tests/testQueryParser.py Repository: plone.app.querystring Branch: refs/heads/master Date: 2024-06-06T16:42:19+02:00 Author: Maurits van Rees (mauritsvanrees) <[email protected]> Commit: plone/plone.app.querystring@bf177ba Configuring with plone/meta Files changed: A dependabot.yml M .editorconfig M .github/workflows/meta.yml M .meta.toml M pyproject.toml M tox.ini Repository: plone.app.querystring Branch: refs/heads/master Date: 2024-06-07T10:08:25-04:00 Author: Jens W. Klein (jensens) <[email protected]> Commit: plone/plone.app.querystring@c0eb00f Merge pull request #150 from plone/remove-portal-properties-tool Remove portal properties tool from tests Files changed: A dependabot.yml A news/125.tests M .editorconfig M .github/workflows/meta.yml M .meta.toml M plone/app/querystring/tests/testQueryParser.py M pyproject.toml M tox.ini
All done, and released in Plone 6.1.0a4 two weeks ago. |
Once all settings have been moved to plone.app.registry, we should be able to remove portal_properties.
The text was updated successfully, but these errors were encountered: