Update Assignment requirements for `tier_badge` experiment
What does this MR do and why?
Resolves #408370 (closed) and #407831 (closed).
This MR modify the candidate requirement for the tier_badge experiment and also include the namespace id in the assignment event to prepare for restarting the experiment.
The updated candidate requirement is we only want to include namespaces that are still on free plan, without trial on the 14th day after created.
Screenshots or screen recordings
Sample snowplow assignment event with namespace id included:
How to set up and validate locally
- Setup gdk to simulate SaaS and restart gdk
- Create a top-level group
- Open a new gdk console (gdk rails c)
- Inisde the console
# Enable experiment
Feature.enable(:tier_badge)
# Modify the group to be created 14 days ago
Group.last.update_attribute(:created_at, 14.days.ago)
- Visit the group page and observe the badge, and the popover
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Roy Liu

