Skip to content

Test SAST entry points [RUN AS-IF-FOSS]

Alex Buijs requested to merge test-sast-entry-points into master

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 Screen_Shot_2021-07-14_at_15.55.26
Banner Screen_Shot_2021-07-14_at_15.56.10
Light Popover Screen_Shot_2021-07-14_at_15.56.36
Dark Popover Screen_Shot_2021-07-14_at_15.56.54

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

Merge request reports