Skip to content

[dashboard] Fix UI experiments #7103

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

Merged
merged 1 commit into from
Dec 7, 2021
Merged

[dashboard] Fix UI experiments #7103

merged 1 commit into from
Dec 7, 2021

Conversation

geropl
Copy link
Member

@geropl geropl commented Dec 7, 2021

Description

Fixes #7081 by:

  • properly JSON.parse 🙈
  • persists non-participation in an experiments (by using a shape { [e in Experiment]: boolean } instead of Experiment[] to allow for a random distribution (instead of slowly converging to participation in all experiments with every page load)
  • make Experiment methods more robust (and handle all failure cases)

Related Issue(s)

Context: #7081

How to test

Release Notes

NONE

Documentation

@roboquat roboquat added release-note-none team: webapp Issue belongs to the WebApp team labels Dec 7, 2021
@geropl geropl mentioned this pull request Dec 7, 2021
@roboquat roboquat added the size/M label Dec 7, 2021
@geropl geropl force-pushed the gpl/ui-experiments-2 branch from 9d0a5f0 to 56d03a2 Compare December 7, 2021 12:41
@geropl geropl force-pushed the gpl/ui-experiments-2 branch from 56d03a2 to 8ecaa79 Compare December 7, 2021 13:00
@laushinka
Copy link
Contributor

laushinka commented Dec 7, 2021

Nice! I tested it for the Login page and also changed the localStorage to login-from-context-6826: false and the page changed accordingly. 👏🏼

/lgtm

@roboquat
Copy link
Contributor

roboquat commented Dec 7, 2021

LGTM label has been added.

Git tree hash: 0f391e2017d5b595d216cfc68498f9099f3f2ad5

@roboquat
Copy link
Contributor

roboquat commented Dec 7, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: laushinka

Associated issue: #7081

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@roboquat roboquat merged commit b6f50e0 into main Dec 7, 2021
@roboquat roboquat deleted the gpl/ui-experiments-2 branch December 7, 2021 13:20
@laushinka
Copy link
Contributor

laushinka commented Dec 7, 2021

Looking forward to see this visualized in our analytics tools 🤗 @jakobhero

@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note-none size/M team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants