Mark Active Session History settings as an experiment

What does this MR do and why?

Active session history is an experiment, but its settings in Admin > Settings > Metrics and profiling don't say so. This MR:

  • Adds an Experiment badge next to the settings heading, the way the dependency firewall settings show a Beta badge (ee/app/views/admin/application_settings/security_and_compliance.html.haml).
  • Says under Turn on session sampling that turning it on accepts the GitLab Testing Agreement. Pajamas asks for this text next to the setting that turns on an experiment, and the virtual registry setting shows it the same way.

The badge is a plain Pajamas::BadgeComponent, not Pajamas::ExperimentBadgeComponent. That one is a link, and a click anywhere in a settings heading toggles the section.

The sentence is the Pajamas text with "turn on sampling" in place of "enable this feature", to match the checkbox label. The help text moves to the help_text slot because it now holds a link.

References

Screenshots or screen recordings

Before After
Settings before Settings with the Experiment badge and the Testing Agreement

How to set up and validate locally

  1. Go to Admin > Settings > Metrics and profiling.
  2. Expand Active session history.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Imanpal Singh

Merge request reports

Loading
Loading