-
Notifications
You must be signed in to change notification settings - Fork 32
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
Only allow staff members to use the SUMM AI bulk action #2104
Only allow staff members to use the SUMM AI bulk action #2104
Conversation
Code Climate has analyzed commit 60f51ee and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 75.3% (0.0% change). View more on Code Climate. |
578ebcd
to
95e8523
Compare
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'm not sure if this is required anymore - if we don't implement #1727, then we need a bulk action for non-staff users...
After a quick chat with @dkehne I was reassured that this PR - although it's not very urgent - is still wanted, because it's the cleaner solution to our current workaround. At the moment there is still an edge case in which the municipalities have a short time window in which they theoretically could use the bulk action, although they shouldn't be able to. Sure, this isn't very likely but still at least a theoretic possibility |
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.
Ok, but in the long term region managers should be able to use the bulk action, right? We only do the initial translations ourselves, but if they want to update the existing content, they should be able to do this on their own?
Apart from that: Please also implement the check in the bulk action view itself, otherwise this just makes the option invisible, but does not prevent users to use it.
Yes, that's how I understood it as well Okay. I will do so. Thank you! |
Couldn't we just use the same principle for updating translations that we use for all other DeepL languages? If SUMM is active in the region and allowed for translation via the management section, then Deutsch (leicht) is an option that can be chosen on the page form? |
|
@timoludwig perfect - I also just asked @charludo to post the latest design and ideas for language selection into the issue #1875 so that that is up to date |
1cb6969
to
8fed7b7
Compare
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.
Very nice, works as expected! Apart from the one small comment below, looks good to me! :)
e84d49d
to
059de5e
Compare
059de5e
to
60f51ee
Compare
Short description
This PR restricts the usage of the SUMM AI bulk action to staff members only
Proposed changes
Side effects
I think none. I tested it for a few roles and didn't notice any side effects.
One thing we should keep in mind. As for now the SUMM AI function was disabled globally. So once this PR is merged, we could turn it on again
Resolved issues
Fixes: #2065
Pull Request Review Guidelines