mirror of
https://github.com/baserow/baserow.git
synced 2026-12-06 09:18:47 +00:00
* fix(agent): small Agent Builder fixes from the launch review Imported actions ask first, SECRET_KEY_FALLBACKS is read, signed links keep their query, Gemini retries transient errors, approval cards stop saying 'by you', and agent-builder turns identities on. * test(assistant): turn identities off by having no flags The agent-builder flag now turns identities on as well. * fix(agent): address review of the launch quick fixes Key fallbacks are JSON arrays, Gemini retries once per Kuma call, and an imported action must carry the service its type runs.
2.4 KiB
2.4 KiB
Feature flags
Baserow uses basic feature flags currently to allow unfinished features to be merged and/or released.
Available Feature Flags
Add/remove features flags to the list below:
identities— workspace identity creation; enable only after all old backends and workers have drained, as described in ADR 013.dashboard-filters— creation of dashboard filter widgets (existing widgets remain available).user_templates— template marketplace: the new template browser and user templates.agent-builder— Agent application creation. Turns onidentitiestoo, as agents run as identities, so the same rule applies: enable it only after all old backends and workers have drained.
Enabling feature flags
To enable specific feature flags set the environment variable
FEATURE_FLAGS=feature1,feature2,feature3. Using just this would look like:
FEATURE_FLAGS=feature1,feature2,feature3 just dc-dev up -d
You could also add the variable to your .env.docker-dev file (for Docker development)
or .env.local file (for local development).
Enabling all feature flags
Use the * feature flag to enable every single feature flag without having to specify
each one.
FEATURE_FLAGS=* just dc-dev up -d
Naming convention
Feature flags should be:
- Alphanumeric with dashes.
- Not start or end with spaces (flags from the env variable will be trimmed for ease of use).
- Unique per feature.
Creating a feature flag
In the Backend
# Add variable with feature flag to baserow.core.feature_flag in format
# FF_<FEATURE_NAME> = "feature_name"
# i.e.
FF_FEATURE1 = "feature1"
# In your feature file import flag you need and feature flag function
from baserow.core.feature_flag import FF_FEATURE1, feature_flag_is_enabled
# Use to check if feature is enabled
if feature_flag_is_enabled(FF_FEATURE1):
# do the feature
# or if you want to raise exception if the feature is not enabled
feature_flag_is_enabled(FF_FEATURE1, raise_if_disabled=True)
In the Web-frontend
// add feature flag variable in @core/plugins/featureFlags.js in format
// FF_<FEATURE_NAME> = "feature_name"
// i.e.
export const FF_FEATURE1 = "feature1";
methods: {
someComponentMethod();
{
if (this.$featureFlagIsEnabled(FF_FEATURE1)) {
// do the feature
}
}
}