Admins can edit `arkose_risk_band`
What does this MR do and why?
Give admins the ability to edit custom_attributes
part of: gitlab-org/modelops/anti-abuse/team-tasks#331
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
-
Create a
arkose_risk_band
custom attribute for a user:User.last.custom_attributes.create(key: 'arkose_risk_band', value: 'Medium')
-
Log in as an admin, and go to the admin user edit page:
http://127.0.0.1:3000/admin/users/#{User.last.username}/edit
-
A select field for
arkose_risk_band
should be near the bottom of the page. You should be able to choose a new value. -
Save. Confirm the value has been updated. The
arkose_risk_band
should be visible near the bottom of the show view.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.