https://www.growthbook.io/ logo
Join Slack
Powered by
# feature-flags
  • f

    flat-advantage-68891

    08/21/2024, 12:04 PM
    I am looking for guidance in terms of what the best approach is for implementing unit tests with the latest SDKs. In general it seems there needs to be support for the following. • a flag or something to enable a local mode during initialization (where it doesn't go out over the network) • a way to explicitly override a specific feature flag with a unit test (used during the setting up initial state portion of the test) • a way to clear all feature flag overrides (used in a hook before each test case to make sure we don't have state bleeding across tests) I am particularly interested in the Javascript, Ruby, and Flutter SDKs. Reading through the Javascript docs, https://docs.growthbook.io/lib/js, I don't see anything that would address the above needed functionality. How are people writing test cases for the on & off cases when a feature toggle is in play. Please provide any information or guidance. Reading through the Ruby docs, https://docs.growthbook.io/lib/ruby#dev-and-qa-helpers, it seems to provide the
    gb.forced_features =
    assignment operation which seems like it would facilitate two of the 3 needed features listed above. But it doesn't indicate anything about having it not reach out to the network with a local mode setting. Again any guidance around how people are testing the on & off use cases when a feature flag is involved would be helpful. Reading through the Flutter docs, https://docs.growthbook.io/lib/flutter and https://github.com/growthbook/growthbook-flutter, it isn't clear how we should be writing our unit tests when a feature flag is in play either. Again please provide any guidance.
    w
    h
    • 3
    • 7
  • l

    late-ambulance-66508

    09/23/2024, 8:40 AM
    Hi! Is it possible to use variables (attributes) inside JSON type flag? Currently, we have own feature flags implementation, and it may be helpful to use i.e. $USER_ID variable to customize some links inside app.
    f
    • 2
    • 6
  • s

    shy-computer-11249

    09/23/2024, 9:50 AM
    Hi, any idea on the steps to implement feature flags on next js 14 especially wrapping the
    <GrowthBookProvider></GrowthBookProvider>
    tag on the app
    f
    • 2
    • 1
  • s

    square-alarm-95088

    10/02/2024, 6:29 AM
    Hi folks, I have one feature flag using the Experiment at Override Rule. My Experiment is split into 2 kinds: one is control, and one is treatment with the setting of 50-50 (I am using a list that has 5 IDs). But when I check in the list of IDs I see only one ID is in the treatment group. All of the 4 remaining IDs are in group control? How can I verify this issue?
    s
    e
    • 3
    • 2
  • e

    enough-dawn-67805

    10/04/2024, 9:21 AM
    Hi! Just wondering if there are any other BitBucket Pipelines users out there who've looked into setting up the GrowthBook's Code References CLI tool? Seems like something that a pipe could be set up for with (relative) ease and wanted to make sure there wasn't one floating around before I sank time into it...
  • a

    ambitious-daybreak-27260

    10/29/2024, 1:17 PM
    Hey team I’m not sure where to put this question. I’m adding new attribute
    country-code
    as per document https://docs.growthbook.io/features/targeting#country-code-targeting But I’m not able to get
    Change the String Format to ISO Country Code (2 digit)
    option. Is this included only in paid version of GrowthBook?
    s
    • 2
    • 2
  • a

    able-tent-93748

    11/21/2024, 5:03 PM
    Hi Growthbook Team, We have created a feature key ("dm_feature_key") of the feature type JSON. We are accessing it using the code below:
    Copy code
    function get_feature_values(){
        const value = window._growthbook?.getFeatureValue("dm_feature_key", {} );
        console.log(value)
        return value;
    }
    We have one control and one variation with a traffic split of 5% and 95%, respectively. Often we receive the JSON, but most of the time we get an empty dictionary instead of the JSON defined in variation 1.
  • f

    freezing-winter-79469

    12/03/2024, 4:11 PM
    Hi! My setup for feature toggles requires that I have quite a lot of environments. This is a POC that I've setup and it's great but I'm concerned that the environment list is going to grow and it's going to become unmanageable. Has anyone else had to do anything similar? Are there any plans to allow for creating different views for environments? I'd love to be able to filter environments just like I can filter/search features and tags.
  • r

    rhythmic-morning-61672

    12/16/2024, 5:41 PM
    Hey, all. Has anyone gotten this feature working? Each time I've enabled it, I've had my JS SDK up-to-date, but it doesn't work. The first time I tried, I had a constant stream of errors show up and no feature flags worked. I waited a month and now when I just tried, there are no errors, but the flags that should turn on for the group I'm in don't turn on. Once I turn the feature off and refresh my site, the features toggle as expected. Also, the payload from GB looks good with the groups broken out and given unique IDs.
    n
    • 2
    • 2
  • b

    breezy-bear-48694

    01/24/2025, 11:50 AM
    Hi GrowthBook Team 👋 I would like to use the Date format for a string attribute and I'm wondering which date format is expected. Can you please clarify? ☺️
    s
    • 2
    • 1
  • p

    powerful-grass-93468

    01/30/2025, 1:12 PM
    Hi GrowthBook Team, I am using Android Kotlin SDK. However, it is not returning any features. How can I confirm wherther SDK is connected properly or not?
    a
    • 2
    • 2
  • p

    polite-leather-21900

    02/12/2025, 5:12 AM
    Hello, I can't find any information. I'm using nextjs 15 and app routing. Should I create 2 growthbook instances for client and server?
    w
    s
    • 3
    • 9
  • c

    curved-cricket-51000

    02/28/2025, 12:40 PM
    Hi, I just set up GrowthBook with BigQuery successfully and tested a featureflag. A 50/50 boolean test and I verified two users got different values. But where can i actually see the data on how the featureflags and experiments are going? Like amount of users in that's seen/used the flag. Should I also be able to see the data from these in BigQuery? There are no rows in the data-set that I connected too.
    f
    • 2
    • 40
  • c

    curved-cricket-51000

    03/01/2025, 10:14 AM
    Anyone who could help me out? Pease
  • p

    plain-school-17796

    04/07/2025, 11:37 AM
    Hi. I want to use the same feature in 2 different experiments in parallel. But all time i receive the value from "the first" experiment. Is any option, to receive feature value specific to experiment_id or key, its so generic for me to have getFeatureValue("MainBtnColor") forExperimentKey("experiment_2")
    f
    • 2
    • 2
  • n

    narrow-spoon-14454

    06/09/2025, 9:42 AM
    Hello! I am just new to growthbook and trying something new in the feature-flags however, i feel struggled when using saved group, as the default 'id' is in string data type, i can use 'id' as attribute key for the saved group when i create a new id with integer type, it seems not work may I ask if this is a normal phenomenon?
  • d

    damp-shoe-15759

    07/07/2025, 6:56 PM
    Hello everyone! I'm hoping to get some help on a deployment issue I'm facing while setting up a self-hosted GrowthBook instance on AWS. High-Level Problem: The application deploys and the UI loads, but immediately shows an error, because the initial
    GET /api/init
    call consistently fails with a
    401 Unauthorized
    error. The crucial finding is from the request headers for `/api/init`: there is no
    Authorization: Bearer ...
    header present, but there is a
    cookie
    header containing a
    gb_session_id
    . My Environment: • Platform: AWS ECS (on Fargate). • Database: MongoDB running as a sidecar container in the same ECS task. • JWT_KEY: Defined a long random string • Networking: An Application Load Balancer (ALB) with HTTPS listeners. • Image:
    growthbook/growthbook:latest
    s
    m
    • 3
    • 8
  • s

    square-dog-17446

    07/14/2025, 6:32 PM
    When I clone the Growthbook feature flags example to Vercel and then set my
    GROWTHBOOK_CLIENT_KEY
    and
    FLAGS_SECRET
    then deploy I am seeing this error:
    h
    • 2
    • 18
  • c

    curved-machine-78995

    07/15/2025, 6:57 AM
    Hello everyone, I need some help on this - I'm facing an issue where when I click on any of the features I created, I'm getting an error. Kindly help me on this
    s
    • 2
    • 5
  • a

    adventurous-sugar-33309

    07/18/2025, 11:37 AM
    Hi dev team. Not a bug or question, just a casual suggestion to have something e.g. a confirmation popup before really toggling the flag, to prevent doing that by mistake/misclick. This happened to me yesterday, on production (fortunately no major impact). People asked me why I turned it ON but I had no idea, I just visited the page and maybe somehow clicked the toggle 😢. FYI, our company's version is Build: 3.5.0+4470a21 (2025-03-04) Thanks for your attention.
    b
    • 2
    • 2
  • a

    ambitious-planet-59426

    07/18/2025, 11:02 PM
    Will these two rollout rules in the same feature flag target the same 15% of users or different 15%s?
    g
    • 2
    • 1
  • b

    bland-forest-62263

    08/21/2025, 1:16 PM
    Hi, We recently started evaluating GrowthBook as a tool for our application and are facing some problems with managing the feature flags. We’re using the
    @flags-sdk/growthbook
    in a Next.js application. However, changes made in the GrowthBook Cloud are not reflected in the running application unless the app is restarted. Additionally, toggling override values in the GrowthBook dev tool does not seem to have any effect with or without restart of the app. Could you please advise if we are missing a configuration step or if there’s another reason why updates are not being applied?
    s
    h
    • 3
    • 5
  • l

    late-ambulance-66508

    08/21/2025, 5:03 PM
    Hi team, I'd like to know the status of this issue: https://github.com/growthbook/growthbook/issues/1461 During the migration from an internal tool, we discovered that this issue is blocking us. I see that the issue was recently reopened. Is there a chance that it will be taken up soon? Here is the copy of my message there: > I have another problem: due to legacy issues, we have identical feature names for different projects. > Now I can't create different combinations of feature+project, and I don't understand why. > Let's say we have Android and iOS, and we add new_feature. Now we need to create ios_new_feature + android_new_feature, instead of a convenient name and splitting by project.
  • b

    brash-afternoon-80519

    10/07/2025, 6:21 AM
    Hi team. We are mid evaluation of growthbook and we have encountered an issue in the swift SDK for feature flags. The
    backgroundSync
    setting does seem to trigger the refreshHandler, however subsequent checks of the feature flag show that the flag hasnt been updated. Details have been logged here. Any help you can give us would be greatly appreciated
    ☝️ 1
    v
    • 2
    • 2
  • g

    gray-belgium-34872

    10/30/2025, 10:12 PM
    Hi Team. I'm evaluating GrowthBook as a Feature Flag tool for our NextJs application on Vercel. I have self-hosted GrowhtBook locally and have set up Edge Config on Vercel. I'm using Vercel's Flags SDK to evaluate the flag values. The feature flags configured in my GrowthBook app is synced to edge config via the SDK webhook. My question is: if my NextJs code is unable to find the feature flag in Edge config (lets say i purposefully delete the flag in edge config for testing purpose), will the Flags SDK automatically fetch the value from GrowthBook API? Thanks in advance
    👀 1
    s
    • 2
    • 1
  • b

    best-machine-36672

    10/31/2025, 12:48 PM
    Hello! On staging environment, my experimentation always leads to "`false`".
    localhost
    I was also seeing only "`false`", but after removing
    .next
    folder I am able to see
    false/true
    values. We do fresh build on each deployment, so what can be the issue here?
    Copy code
    // staging    
    await growthbook.refreshFeatures();
    
    const isOn = growthbook.getFeatureValue('reduce-banner-height-v1', false);
    const isOn2 = growthbook.isOn('reduce-banner-height-v1');
    
    console.log('isOn', isOn); // false
    console.log('isOn2', isOn2); // false
    s
    • 2
    • 1
  • t

    thousands-alarm-48630

    11/12/2025, 5:58 AM
    In self hosted plans, can we restrict access to specific environments or do we need a pro plan in the self hosted plan as well?
    f
    • 2
    • 1
  • c

    chilly-activity-18099

    11/28/2025, 4:05 AM
    Hi everyone, we are evaluating growthbook for feature flags for our org and so far we like it. There are two questions I have: 1. Background sync in nodejs - seems to work well only in cloud version, what are the best practices to be followed for self hosted. 2. Is there a way to have pre defined segments in growthbook itself, something similar to flagsmith? ( pro plan)
    s
    • 2
    • 1