https://www.growthbook.io/ logo
#give-feedback
Title
# give-feedback
f

fresh-keyboard-9333

12/13/2022, 6:46 PM
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

dry-architect-15952

12/13/2022, 7:21 PM
Following. Thanks Marco
👍 1
f

fresh-football-47124

12/13/2022, 7:22 PM
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

fresh-keyboard-9333

12/13/2022, 8:00 PM
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

fresh-football-47124

12/13/2022, 8:41 PM
Yes, if you update
It will pick up the fix
f

fresh-keyboard-9333

12/13/2022, 8:41 PM
Awesome! Thank you Graham 🙌
d

dry-architect-15952

12/13/2022, 8:41 PM
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

fresh-football-47124

12/13/2022, 8:57 PM
sorry about that
just running
npm install @growthbook/growthbook
will also pick up the fix
d

dry-architect-15952

12/13/2022, 9:08 PM
No worries. It was a quick one. Glad y’all already have a fix too
18 Views