-
Notifications
You must be signed in to change notification settings - Fork 39
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
Added descriptions to group selections in Wagtail admin #3636
Conversation
The CI gods did not favor me today. Couldn't get the test to fail locally but will continue work tomorrow. |
@wes-otf - I forgot to add definitions for staff admin and community reviewer Staff Admin view and edit all submissions, submit reviews, send determinations, and set up applications. Can disable 2FA, archive submissions, and other components not accessible to other roles. Community Reviewer is an applicant with access to other applications for the Request with community review (peer review) workflow. |
@wes-otf Try running:
and then commit the updated |
Please also test this on top of the Django 4 and Wagtail 5 PRs. Or we just wait until they have been merged it. |
This is not correct. Most of these are reliant on permission settings in Wagtail. These are completely up to each organisation to set to whatever they like. The only thing I know for sure are linked to "Staf admin" is "View message log". Important also to point out that "Staff admin" always should be used together with "Staff". |
@frjo So should abilities given by wagtail permissions should not be included in the description? Would this effect any of the given descriptions?
With the addition of translations in groups.py, wouldn't different orgs be able to customize what that description is? |
Just tested with both the Wagtail 5 branch & Django 4 branches, both worked totally fine. Only thing I saw is that our edit/create user templates use the Wagtail shared template Otherwise this should be all set once confirmation is given on those final group descriptions! Tests looked to be failing because of a migration that wasn't made so that is also included here. |
@wes-otf We merge in some other things so there are a merge conflict here. |
Would be good to implement this on the "/admin/groups/" view as well. |
Roger that, adding that in now. |
Alright I believe it's actually set now. It looks like the changes in #3664 were overriding the wagtail admin user creation view so I took a stab at making it more programmatic with less code duplication. Saving users still works with the consent checkbox enabled. @frjo @theskumar let me know if you guys have any more thoughts otherwise it's ready for test |
Needs a new rebase to solve merge conflicts. After that we put on test just to confirm and then I think it is ready to go. |
All set here |
Fixes #3541. This PR adds descriptive help text to the Wagtail admin edit/create user "Groups" prompt. This was done by creating custom Wagtail forms and overwriting the existing group field, along with adding another field to the [groups.py](https://github.com/HyphaApp/hypha/blob/enhancement/add-desc-to-user-roles/hypha/apply/users/groups.py#L40). The [definitions](#3541 (comment)) provided by @fourthletter were shortened just a bit for the sake of appearance. If anyone believes they got too truncated I'm fine with updating them.
Fixes #3541. This PR adds descriptive help text to the Wagtail admin edit/create user "Groups" prompt. This was done by creating custom Wagtail forms and overwriting the existing group field, along with adding another field to the [groups.py](https://github.com/HyphaApp/hypha/blob/enhancement/add-desc-to-user-roles/hypha/apply/users/groups.py#L40). The [definitions](#3541 (comment)) provided by @fourthletter were shortened just a bit for the sake of appearance. If anyone believes they got too truncated I'm fine with updating them.
Fixes #3541.
This PR adds descriptive help text to the Wagtail admin edit/create user "Groups" prompt. This was done by creating custom Wagtail forms and overwriting the existing group field, along with adding another field to the groups.py.
The definitions provided by @fourthletter were shortened just a bit for the sake of appearance. If anyone believes they got too truncated I'm fine with updating them.
Screenshots
Cheers!