Skip to content

Admins can edit `arkose_risk_band`

Jay requested to merge jswain_admin_edit_risk_band into master

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
Screen_Shot_2023-04-14_at_6.10.35_PM Screen_Shot_2023-04-14_at_6.09.45_PM

How to set up and validate locally

  1. Create a arkose_risk_band custom attribute for a user: User.last.custom_attributes.create(key: 'arkose_risk_band', value: 'Medium')

  2. 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

  3. A select field for arkose_risk_band should be near the bottom of the page. You should be able to choose a new value.

  4. 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.

Edited by Eugie Limpin

Merge request reports