bland-fall-40636
08/09/2022, 9:24 PMON
in the preview env but OFF
in the production env, unless you have a specific user attribute (basically, when you are an employee of the company)
My setup
Enabled environnement: ✅ production ✅ preview
Default value: OFF
Override rules:
→ Preview
ifuser attribute equal `dev`then serveenv
(it would be perfect if I would not have to add any condition here)ON
→ Production
ifThis setup is working fine but it’s strange to me to have to “hack” the served value and to have to activate both env with a served valueuser attribute equalemployee
then servetrue
ON
OFF
by default
Am I missing something?
Thanks !proud-family-69484
08/10/2022, 5:40 PMincalculable-breakfast-2720
08/16/2022, 2:23 PMlemon-car-88589
08/24/2022, 3:05 PMlate-teacher-86348
08/25/2022, 4:29 PMmost-finland-34024
08/26/2022, 12:12 PMmicroscopic-queen-6171
08/30/2022, 7:04 AMnice-airline-943
08/31/2022, 4:35 AMfresh-nightfall-26542
08/31/2022, 7:21 AMfresh-football-47124
boundless-autumn-39685
09/04/2022, 1:42 PMnice-airline-943
09/05/2022, 3:28 AMboundless-autumn-39685
09/06/2022, 2:13 AMwide-stone-93283
09/06/2022, 7:33 PMflaky-church-68788
09/08/2022, 3:20 PMcalm-engineer-80052
09/12/2022, 8:53 AMtrackFeatureUsage
https://github.com/growthbook/growthbook/blob/main/packages/sdk-js/src/GrowthBook.ts#L164 works and what the request it makes to <http://growthbook.io|growthbook.io>
https://github.com/growthbook/growthbook/blob/main/packages/sdk-js/src/GrowthBook.ts#L200 do.microscopic-queen-6171
09/13/2022, 5:19 PMworried-gpu-71540
09/20/2022, 1:08 PMworried-gpu-71540
09/20/2022, 1:08 PMcool-apple-97384
09/22/2022, 4:47 AMhostUrl
, it's dashboard url for self hosted growthbook?
• attributes
, it's user attributes or sdk attributes? If user attributes, we need to instance SDK after login to give experiments in specific user?cool-apple-97384
09/23/2022, 9:25 AMbillions-arm-13894
09/23/2022, 1:00 PMgrowthbook_1 | | /usr/local/src/app/packages/back-end/dist/util/secrets.js:49
growthbook_1 | | throw new Error("Cannot use JWT_SECRET=dev in production. Please set to a long random string.");
growthbook_1 | | ^
growthbook_1 | |
growthbook_1 | | Error: Cannot use JWT_SECRET=dev in production. Please set to a long random string.
I haven't notice it before and currently that is the only thing that I found weird. Do you know if this could be a reason for not being able to access api.
Here is the screenshot from UI also:magnificent-vr-83716
09/23/2022, 3:02 PMrapid-ghost-5775
09/27/2022, 7:47 AMmicroscopic-queen-6171
09/27/2022, 7:56 AMcool-apple-97384
09/28/2022, 4:53 AMnarrow-printer-24953
09/28/2022, 6:01 PM// Load feature definitions from API
// In production, we recommend putting a CDN in front of the API endpoint
fetch('api-endpoint')
.then((res) => res.json())
.then((json) => {
growthbook.setFeatures(json.features);
});
What I’d like to know is why are putting a CDN in front of the API endpoint recommended in this instance? Is the API endpoint private?breezy-xylophone-59782
09/28/2022, 8:29 PMworried-planet-2191
09/30/2022, 10:53 AMdazzling-quill-18166
10/04/2022, 10:11 AMguestId
and passing it to setAttributes
2. in growthbook GUI I've got 1 feature created test-feature
with override rule set to experiment
and 1 experiment corresponding with the feature
3. guestId
was generated for the user when I had traffic set to 100%
and traffic split set to old-view: 1
and new-view: 0
4. After some tests I wanted to manipulate traffic split
parameters so that I put 100%
to old-view: 0
and new-view: 1
5. Unfortunately for the same guestId
I'm still receiving old-view
variation
My question is whether this behaviour is expected according to this piece of documentation
In the vast majority of cases, you want to split traffic based on either a logged-in user id or some sort of anonymous identifier like a device id or session cookie. As long as the user has the same value for this attribute, they will always get assigned the same variation.
Only if I delete guestId
and generate new one it seems that I receive proper variation.
Thanks for your answer.