Files
baserow/docs/development/feature-flags.md
T
Davide Silvestri aba67743e2 feat(agent-builder): scaffold Agent workspace applications (#6343)
* feat: scaffold Agent Builder applications and empty agents

* chore: defer Agent Builder changelog until feature flag removal

* refactor: represent each agent as a workspace application

* fix: complete Agent application rollout safeguards

* fix: use the designed robot icon for Agent applications

* refactor: gate only Agent application creation

* refactor: keep Agent scaffold on standard shared behavior

* fix(agent): load workspace access before opening from overview

* refactor(agent): align enterprise feature naming

* refactor(agent): retain application stylesheet name

* refactor(agent): move application scaffold into open source

* fix(agent): hide the empty Agents sidebar group while creation is disabled

* test(agent): keep only Agent-specific scaffold tests

Generic application behaviour is already covered by core tests, and the
branch has no enterprise code, so the enterprise tests are removed.

* refactor(agent): define the agent-builder flag with the other flags

* chore(agent): type Agent application hooks and tidy flag docs

* fix(agent): support the purple item icon color

* fix(agent): use the shared application type keys for Agent names

The export and import dialogs read `applicationType.<type>s`, so Agent
groups showed the raw key.

* fix(agent): hide the Agent type filter while creation is disabled

All workspaces now only offers the application types that can be
created, so Agent stays out of the filter while the flag is off.

* fix(agent): use a singular Agent search subtitle

* test(agent): cover Agent creation with the flag enabled

* refactor(agent): match the Agent search type to Dashboard

The backend already filters results by read permission, and the Agent
route checks access when it opens.

* refactor(agent): drop the unreachable sidebar creation check

The only link that opens the modal already checks `canBeCreated()`.

* fix(agent): drop the Enterprise-only hint from the empty Agent page

Managing access needs Enterprise, so the text was wrong elsewhere.

* refactor(agent): drop the default allowed_fields from the Agent type

* feat(agent): track when Agents were last viewed

Opening an Agent now loads it from `GET /api/agent/<id>/`, which marks it
viewed like the load endpoints of the other application types.
2026-10-20 10:41:14 +02:00

2.0 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:

  • agents — workspace Agent management and Agent creation.
  • user_templates — template marketplace: the new template browser and user templates.
  • agent-builder — Agent application creation.

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:

  1. Alphanumeric with dashes.
  2. Not start or end with spaces (flags from the env variable will be trimmed for ease of use).
  3. 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
        }
    }
}