-
Notifications
You must be signed in to change notification settings - Fork 460
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
Experiment from Feature Flags should pick an Assignment Query based on hash attribute (or ask for one to be set) #1943
Comments
The above issue #2105 has a good example of how the status quo manifests in unclear errors. I've also written more about this in a community PR here, copied below:
|
The main way i think of this is an “Onboarding Guide” for errors. Your error should kick off a Step by Step way to solve any error. This can be re-used for any issue, and or if someone deletes an experiment assignment you would hit this error as well. "Unknown experiment assignment table - anonymous_id" currently provides no info, and doesn't even show you where to click to solve the issue. Suggested: "No Experiment Assignment Table was selected for this Analysis -> [Click Here] to set it up. [Click Here] to learn more about it / a video guide on it etc.." |
Summary
When you create an experiment rule in a feature flag, it spins up a linked Experiment, but it comes with no selected experiment assignment query. So every time you do this you need to select the experiment assignment query that maps to the
attribute
you used for hashing in the feature.We should consider one of two options:
b. Automatically use that mapping to set the exposure query in the experiment (or, if no mapping, prompt experimenters to pick an exposure query)
Specifically, in here:
growthbook/packages/front-end/components/Features/RuleModal.tsx
Lines 296 to 297 in 27198a9
We should pass down the
values.hashAttribute
and hopefully have the experiment assignment queries know whichhashAttribute
values map to them so we can easily set this when the experiment is created.The text was updated successfully, but these errors were encountered: