This MR adds disabled state for runner tags
What does this MR do and why?
Describe in detail what your merge request does and why.
This MR resolves #389554 (closed) and 390153
The result of this issue should be:
- User is an
owner
or amaintainer
-
New scan
-> User can seedropdown
, load list with tags and set it for scanner -
Edit scan
-> User can see previously saved tags, load list of tags and edit it
-
- User is neither
owner
normaintainer
-
New scan
-> User can't see dropdown with tags at all -
Edit scan
-> User can see previously saved tags as a text entry without editing functionality
-
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Allowed to edit | Not allowed to edit |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Enable flag by enabling
rails console
in terminal
Feature.enable(:on_demand_scans_runner_tags)
- Assign yourself or any other user
developer
role in any project Project information -> Members - Go to
/PROJECT_ID/-/on_demand_scans/SCAN_ID/edit
oron_demand_scans/-/on_demand_scans/new
- Or you can access it via UI from
-/on_demand_scans#/saved
-
Runner tags
section should be enabled forowners
andmaintainers
and disabled for other users
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.
Related to #389554 (closed)
Edited by Artur Fedorov