Skip to content

Exclude expired trial groups from tier badge experiment

What does this MR do and why?

Exclude the namespaces that have trialed in the past but are now free from the candidate experience. This could either be accomplished via a GLEX exclusion or an exclusion outside of GLEX.

We should aim for excluding via GLEX so that we don't track them at all for this exclusion

Screenshots or screen recordings

free group free group with expired trial
Screenshot_2023-07-28_at_13.19.04 Screenshot_2023-07-28_at_13.19.41

How to set up and validate locally

bin/rails c

Feature.enable(:tier_badge)
  • Sign in. Create group. Visit group page.
  • Make sure group has tier badge popup.
  • Create subgroup. Visit group page.
  • Make sure group has no tier badge popup.
  • Create new parent group. Visit group page.
bin/rails c

GitlabSubscription.find_or_initialize_by(namespace: Group.last).update(trial_ends_on: Date.yesterday)
  • Reload page. Make sure group has no tier badge popup.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #418962 (closed)

Edited by Serhii Yarynovskyi

Merge request reports