plain-jordan-57405
07/22/2024, 2:37 PMsource
value and found that experiments forced using a query parameter are evaluated here and returned with an experiment
source here, which is somewhat unexpected. The same happens with variations forced through the browser extension here.
Is this the intended behavior?rhythmic-agent-34208
07/22/2024, 3:26 PMplain-jordan-57405
07/22/2024, 4:01 PMexport type FeatureResultSource =
| "unknownFeature"
| "defaultValue"
| "force"
| "override"
| "experiment"
| "prerequisite"
| "cyclicPrerequisite";
Without looking at the implementation, I would've expected query parameters or overrides through the extension to result in `force`/`override` valuesstrong-mouse-55694
07/22/2024, 6:35 PMsource
param on the getFeaturedResult
method. But there's also the getResult
method. When using the SDK have you found that it returns unexpected results?plain-jordan-57405
07/22/2024, 8:51 PMgetFeaturedResult
returns the value defined in the code. However, I found it unexpected that forcing a value through a query string does not result in an override
or force
but on an experiment
source value.
Should we change this on getFeaturedResult
? What about including the source for the experiment variant here?
I could open a PR with the required changes if you think we should implement one.rhythmic-agent-34208
07/23/2024, 12:52 PM