Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNTOR-3380 - pass nimbus_preview param to Cirrus #5307

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

rhelmer
Copy link
Collaborator

@rhelmer rhelmer commented Nov 13, 2024

References:

Jira: MNTOR-3380/

Description

The Nimbus team came up with an ADR to support enabling preview mode on specific page loads. We previously had a workaround in place that would simply enable all experiments when an HTTP parameter like ?nimbus_web_preview=true was passed, this change really just removes that and does two things:

  1. change the param name to nimbus_preview
  2. pass the param on to the Cirrus sidecar

This will instruct Cirrus to check which experiments are in preview mode on the server, and only enable these.

How to test

See ticket. It's probably easiest to merge this to stage and test there, but we can at least verify locally that nimbus_preview=true is appended to the URL set in process.env.NIMBUS_SIDECAR_URL.

Checklist (Definition of Done)

  • Commits in this PR are minimal and have descriptive commit messages.
  • Jira ticket has been updated (if needed) to match changes made during the development process.
  • Jira ticket has been updated (if needed) with suggestions for QA when this PR is deployed to stage.

@rhelmer rhelmer requested a review from flozia November 13, 2024 19:24
@rhelmer rhelmer self-assigned this Nov 13, 2024
Copy link

Copy link
Collaborator

@flozia flozia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

src/app/functions/server/getExperiments.ts Outdated Show resolved Hide resolved
Copy link

Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants