Skip to content

Instantly share code, notes, and snippets.

@ale-rt
Last active August 6, 2020 06:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ale-rt/c02281561d55564af6794e5cbf6fe513 to your computer and use it in GitHub Desktop.
Save ale-rt/c02281561d55564af6794e5cbf6fe513 to your computer and use it in GitHub Desktop.

PLIP 1775: Remove portal_quickinstaller in Plone 6.0

PLIP ticket: plone/Products.CMFPlone#1775

Review by: Alessandro Pisa (alessandro.pisa@gmail.com)

Date: August 1, 2020

Environment

The PLIP was reviewed using:

  • Python 3.8.2 Ubuntu 20.04 64-bit
  • Chrome Version 84.0.4147.105 (64-bit) Kubuntu 20.04 64-bit

Jenkins jobs

The plip buildout jobs are good:

The builds are quite old, it might be advisable rebasing/merging master in the various PRs involved before merging. I apologize for the delay in reviewing this PLIP.

PLIP buildout

  • Set up the buildout using the PLIP's config:

    python3.8 -m venv . ./bin/buildout -c plips/plip-1775-remove-qi.cfg

Works smooth.

Involved Packages and related PRs

The PRs are still missing.

Manual testing

I created a fresh Plone site and installed and unistalled an add-on. I then migrated a Plone5.2 Data.fs and migrated it to Plone 6. Installing and unistalling add-ons works fine.

Code review

Most of the changes deal with removing code, so not much to review. Some of the code in plone.app.upgrade was just commented out. It might be better to just remove it, unless there is a reason for that (the commented code happens to be in BBB modules).

Test coverage is given.

Grepping for "quickinstaller" in all the packages shows that there are still packages with obsolete references to the removed tool (e.g. plone.dexterity and plone.restapi). It might be a good idea to clean-up at some point.

Versions

Products.CMFPlone and plone.app.upgrade towncrier entries report breaking changes. plone.app.testing and plone.app.robotframework towncrier entries report new features.

This seems correct.

Documentation

Most of the documentation about the new installer was already provided in the PLIP plone/Products.CMFPlone#1340. The remaining corrections related to the fact the tool is removed are correctly added in the reviewd branches.

Conclusion

I am asking the framework team to declare this PLIP ready to be merged.

@mauritsvanrees
Copy link

plone.restapi still mentions quickinstaller because its code is still compatible with Plone 4.3, so probably unavoidable.

plone.app.dexterity uses the quick installer in an upgrade step (for the intids utility) and in a test for the same upgrade step. The step is for upgrading to 2.0. Plone 4.3.0 already uses version 2.0.7. So in Plone 6 this code will normally never get run.
In various packages we could probably remove upgrade steps, just like in plone.app.upgrade.

@ale-rt
Copy link
Author

ale-rt commented Aug 6, 2020

In various packages we could probably remove upgrade steps, just like in plone.app.upgrade.

I agree, no hurry to do that now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment