feat: remove pas.plugins.imio and clean authentic plugin#28
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds a GenericSetup upgrade step (profile version 1005→1006) that removes ChangesPlugin Removal Upgrade Step
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/pas/plugins/kimug/upgrades/__init__.py`:
- Around line 48-50: The `remove_pas_plugins_imio()` function unconditionally
calls `remove_authentic_plugin()`, which attempts to run the uninstall profile
for `pas.plugins.imio`. Since this package is not in `install_requires`, the
profile will not be available and the upgrade will fail. Guard the call to
`remove_authentic_plugin()` by checking whether `pas.plugins.imio` is actually
installed before attempting to remove it, or wrap the call in a try-except block
to gracefully handle the case where the package is not available.
In `@src/pas/plugins/kimug/upgrades/configure.zcml`:
- Around line 60-66: The upgrade step handler ".remove_pas_plugins_imio" defined
in the upgrades configure.zcml is not registered because the upgrades package
itself is not included in the main configure.zcml file. Navigate to the main
configure.zcml in the root pas.plugins.kimug package and add an include
directive for the upgrades package, placing it alongside the existing include
statements for browser, controlpanel, indexers, subscribers, and vocabularies.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 2b1e2e4e-918b-40fc-a2cb-232fd94f2dd8
📒 Files selected for processing (6)
CHANGES.mdnews/municipality-groups.feature.mdsrc/pas/plugins/kimug/profiles/default/metadata.xmlsrc/pas/plugins/kimug/setuphandlers/__init__.pysrc/pas/plugins/kimug/upgrades/__init__.pysrc/pas/plugins/kimug/upgrades/configure.zcml
💤 Files with no reviewable changes (2)
- news/municipality-groups.feature.md
- src/pas/plugins/kimug/setuphandlers/init.py
KEYC-77
Summary by CodeRabbit
Bug Fixes
403 Forbiddentoken-authentication failures caused by incorrect JWKS client caching across realms.New Features
SSO_APPS_MUNICIPALITY_GROUPS/ control panel); when unset, behavior remains unrestricted.pas.plugins.imioand the “authentic” authentication plugin during upgrade.Tests / Documentation