-
-
Notifications
You must be signed in to change notification settings - Fork 195
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 deprecation warnings #4090
Comments
Jenkins runs:
|
@mauritsvanrees Thanks for working on this. I see there are 7 new errors on the 6.1 jenkins job |
On 6.1 there are errors in
Ah, here is a hint:
Okay, that is a missing rename, or a rename too many:
I will fix and squash the CMFPlone PR and rerun the 6.1 tests. |
All Jenkins tests have passed. See links in comment above. None of these PRs should be dependent on one another, so they can be reviewed and merged on an individual basis. |
I will try to review them. I don't have much time as of late, but specially for the small ones, I can do easy work. On the City Alpine Sprint I will try to get myself a bit more up-to-speed with current developments 🍀 |
@mauritsvanrees the PRs on the section |
It means that for these packages the master or main branch is only used on 6.1, and I have only fixed it there. If we want to get rid of deprecation warnings in those packages in 6.0 as well, we would need to back port these PRs. I would say this is not needed, though someone could do it if they wanted to. But no one cared enough about deprecation warnings in 6.0 to do this the past two years. Back porting can also be slightly tricky, as you may need more try/except ImportErrors in this case, or need to ignore a few fixes (especially imports of For clarity, the packages in the 6.0+6.1 list are packages where the same main/master branch is used on 6.0 and 6.1. In the Jenkins 6.0 jobs I only pasted the second list, in the 6.1 jobs I pasted the combination of both lists. |
There are many deprecation warnings at Plone startup, or when browsing the site or running the tests. A lot are because of code that was moved to
plone.base
. We should fix those so internally we always use the new code. Lots have been fixed in the past years, but there is still a way to go. I have started on this and will push branches (maurits-warnings
) for lots of packages. Notes:pkg_resources
namespaces.bin/test -u
is also free of such warnings.registry.xml
andcomponentregistry.xml
, where the files no longer point toProducts.CMFPlone.interfaces.controlpanel.X
but toplone.base.interfaces.X
. So this has influence on the database. I think it is fine. I tried migrating a Plone 5.2 site to Plone 6.1. The changes that I made in 5.2 to the syndication settings and search settings were kept, so that seems okay. At some point we should probably advise people to runbin/zodbupdate
so any persistent classes are rewritten to their new canonical places.plone.restapi
is the only package I touched that still is compatible with Plone 5.2. This has abbb.py
where we try to import fromplone.base
and fall back toProducts.CMFPlone
or other places.plone.rest
.The PRs could be tested and merged separately, but let me try to run the checks together on Jenkins. Most will need to still work on 6.0 as well.
I will update this comment to add links to the PRs.
For 6.1 only:
For 6.0 and 6.1:
The text was updated successfully, but these errors were encountered: