Test SAST entry points [RUN AS-IF-FOSS]
What does this MR do?
This adds an experiment for 3 variants for entry points to SAST on the Projects#show page:
- a button and a banner
- a button and a light popover
- a button and a dark popover
When the following conditions are met:
-
current_user
must be able to administer the project - the project must not be empty
- the project must not have SAST enabled yet
To test these locally, enable the experiment with a variant by running these commands in the console:
p = Project.last # set this to the project your are viewing which meets the above mentioned conditions
variant = :banner # set this to one of [:control, :banner, :popover_light, :popover_dark]
include Gitlab::Experiment::Dsl
Feature.enable(:sast_entry_points, experiment(:sast_entry_points, variant, namespace: p.root_ancestor))
Screenshots (strongly suggested)
Variant | Screenshot |
---|---|
Control | |
Banner | |
Light Popover | |
Dark Popover |
Issue: gitlab-org/growth/team-tasks#376 (closed)
UX: gitlab-org/growth/team-tasks#374 (closed)
Experiment Tracking Issue: #334277 (closed)
Edited by Simon Knox