Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SonnyBA come to think of it, I'm actually not sure if all components use this (e.g. Objects/Objecttypes), so wouldn't it be better to add this only to the components that need it? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Open-zaak (
commonground-api-common
used the middleware class from this project), Open-Klant and Open-Notificaties use theauthorizations
app fromcommonground-api-common
.I think the migrations
authorizations
migrations currently are recognized (even if the app is not installed) because themiddleware.py
imports them. It should be easily fixed though whenever we move the authorization related middleware to theauthorizations
app. This probably requires a new release though of OAF (because all projects pull incommonground-api-common
through OAF) andcommonground-api-common
.The current suggested fix is probably a bit less work but is also the uglier solution. @Coperh @stevenbal which option would you prefer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be best to indeed move the middleware to the authorizations app. I think this also relates to #67, we should make these dependencies should be optional at some point probably