Hey Growthbook team, need some help clarifying wha...
# give-feedback
f
Hey Growthbook team, need some help clarifying what might be an edge case bug. In one of our configurations we left an experiment rule with a 0% inclusion and a
0/100% ON
Split. The default value is serving OFF, and this is the only rule. See image Our expectation: The flag should evaluate to
false
to all users because the experiment has 0% user inclusion and the default value is OFF. Actual result: The flag evaluated to this:
Copy code
{
  "value": true,
  "on": true,
  "off": false,
  "source": "experiment",
  "ruleId": "",
  "experiment": {
    "variations": [
      false,
      true
    ],
    "key": "flag",
    "coverage": 0,
    "weights": [
      0,
      1
    ],
    "hashAttribute": "id"
  },
  "experimentResult": {
    "inExperiment": true,
    "variationId": 1,
    "value": true,
    "hashAttribute": "id",
    "hashValue": "inPNbLwltv0"
  }
}
d
Following. Thanks Marco
👍 1
f
hi Marco - looking into it
🙏 2
what SDK are you using?
and what version of the SDK are you using?
We fixed this bug in the JS/React SDK last week - if you’re using JS, make sure you’re using 0.20.1
1
f
We're using
@growthbook/growthbnook-react@^0.8.1
Seems like latest version of that one is
0.10.1
published
a month ago
though
Should the fix be included in a newer version or is it in 0.10.1 too? 🙏
f
Yes, if you update
It will pick up the fix
f
Awesome! Thank you Graham 🙌
d
Much appreciated! We’ll target this for Jan
We had a fun little hiccup this morning where an incomplete feature went live due to this bug. Thankfully the team caught it quickly and now we have the long-term fix as wel
f
sorry about that
just running
npm install @growthbook/growthbook
will also pick up the fix
d
No worries. It was a quick one. Glad y’all already have a fix too