Baserow uses basic feature flags currently to allow unfinished features to be merged and/or released.
Add/remove features flags to the list below:
To enable specific feature flags set the environment variable
FEATURE_FLAGS=feature1,feature2,feature3
. Using dev.sh
this would look like:
FEATURE_FLAGS=feature1,feature2,feature3 ./dev.sh xyz
You could also use a docker-compose .env
file and set the FEATURE_FLAGS variable in
there.
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.
# In your feature file:
from django.conf import settings
if "feature1" in settings.FEATURE_FLAGS:
# do the feature
methods: {
someComponentMethod()
{
if (this.$featureFlags.includes("feature1"){
// do the feature
}
}
}