silly-crayon-99948
12/17/2023, 3:50 PMfuture-teacher-7046
stale
mark is just something we show if a flag hasn't been updated in a while. Just a reminder to check and see if it's still something you need or not. It doesn't affect anything else. You can click the warning icon to disable staleness checks for a specific feature if you want.silly-crayon-99948
12/17/2023, 4:04 PMfuture-teacher-7046
dev
environment. Is your application using a dev client key? If it's using any of the other environments instead, the feature will be evaluated to null
silly-crayon-99948
12/17/2023, 4:06 PMsilly-crayon-99948
12/17/2023, 4:09 PMapi::2022-12-26::release::use-new-feature
I noticed colons were not listed as acceptable characters in your docs, so I replaced with underscores, but no luck.future-teacher-7046
silly-crayon-99948
12/17/2023, 4:19 PMimport omit from "lodash/omit";
import {getFeatureValue} from "@blackowl/feature-client";
export const handleSaveBasedOnLeaseStatus = async ({}) => {
console.log(
"getfromhandleSaveBasedOnLeaseStatus",
getFeatureValue(
"platform::2023-05-02::release::working-flag",
),
);
console.log(
"getNewFlag",
getFeatureValue(
"api::2023-12-17::release::not-working",
),
);
console.log(
"getNewFlagWithUnderscores",
getFeatureValue(
"api_2023-12-17_release_not_working",
),
);
I had to delete some code for security, but this is where I am console logging flags 2,3, and 4 from the logs screen shot. The first flag is an older flag and is working properly. The other two I created an hour ago or so.silly-crayon-99948
12/17/2023, 4:19 PMfuture-teacher-7046
api_2023-12-17_release_not_working
in your account at all for example.silly-crayon-99948
12/17/2023, 4:22 PMsilly-crayon-99948
12/17/2023, 4:23 PMsilly-crayon-99948
12/17/2023, 4:24 PMsilly-crayon-99948
12/17/2023, 4:24 PMfuture-teacher-7046
getFeatures()
method you can call and console.log it:
console.log(growthbook.getFeatures())
You can check if the feature is listed theresilly-crayon-99948
12/17/2023, 4:25 PMfuture-teacher-7046
{
"api_2023-...": {
"defaultValue": true
}
}
silly-crayon-99948
12/17/2023, 4:42 PM'api::2023-12-16::backend-validations-costs-standards-interconnections': { defaultValue: true },
'api::2023-12-17::release::be-validations-costs-all-standards': { defaultValue: true },
'api_2023-12-17_release_be-validations-costs-all-standards': { defaultValue: true }
silly-crayon-99948
12/17/2023, 4:42 PMsilly-crayon-99948
12/17/2023, 4:43 PMsilly-crayon-99948
12/17/2023, 4:46 PM