FE: Add tooltip with warning when switching Scan Result Policy to protected branches
Why are we doing this work
This work can be done in parallel to work made in Allow users to define branch exceptions to enfo... (&9567 - closed), although the feature flag for it should not be enabled before releasing Allow users to define branch exceptions to enfo... (&9567 - closed) first.
In the scope of this issue, we would like to present a tooltip when the first user selects any protected branches
in Scan Result Policy.
Design
(from &9704 (comment 1516987138))
Relevant links
Non-functional requirements
-
Documentation: changes should be documented in Protected Branches and Scan Result Policies sections of the documentation, -
Feature flag: this feature should be released behind feature flag -
Performance: -
Testing:
Implementation plan
-
If the user selects the any protect branches
options and none of theoverwritten protected branch
settings` are selected, show a popover to recommend enabling the settings.- title:
Recommend enable the settings
- description:
You have selected any protected branch option as a condition. To better protect your project, it is recommended to enable the protect branch settings. Learn more.
- title:
Verification steps
- Create a new project
- Create a new Scan Result Policy for this project that should be applied to protected branches
- Verify if you can see a tooltip with information about Protected Branches and how Scan Result Policies affect them
- Verify that you cannot see a tooltip when you open policy for the second time
Edited by Alexander Turinske