diff options
author | Stan Hu <stanhu@gmail.com> | 2019-03-21 15:18:05 +0000 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-03-21 15:18:05 +0000 |
commit | 0e5bdc2cb07a6d0091b3f409d61e0841e4c3bd39 (patch) | |
tree | 3490282a1d2b9040aedc77be4b72b6f9674ee7b1 /doc | |
parent | 7629421bbc02e4f064fe8cf2fc2bf7e903927c74 (diff) | |
parent | 7a5aca1e3241c639a8e77b037918606b5386e864 (diff) | |
download | gitlab-ce-0e5bdc2cb07a6d0091b3f409d61e0841e4c3bd39.tar.gz |
Merge branch 'ek-clarify-creating-feature-flags' into 'master'
docs: Adds information and links to clarify how to create feature flags
See merge request gitlab-org/gitlab-ce!26349
Diffstat (limited to 'doc')
-rw-r--r-- | doc/development/new_fe_guide/tips.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/development/new_fe_guide/tips.md b/doc/development/new_fe_guide/tips.md index 881ad1662ae..889a5aab2b7 100644 --- a/doc/development/new_fe_guide/tips.md +++ b/doc/development/new_fe_guide/tips.md @@ -7,3 +7,19 @@ To clear production compiled assets created with `yarn webpack-prod` you can run ``` yarn clean ``` + +## Creating feature flags in development + +The process for creating a feature flag is the same as [enabling a feature flag in development](https://docs.gitlab.com/ee/development/feature_flags.html#enabling-a-feature-flag-in-development). + +Your feature flag can now be: + +- [made available to the frontend](https://docs.gitlab.com/ee/development/feature_flags.html#frontend) via the `gon` +- queried in [tests](https://docs.gitlab.com/ee/development/feature_flags.html#specs) +- queried in HAML templates and ruby files via the `Feature.enabled?(:my_shiny_new_feature_flag)` method + +### More on feature flags + +- [Deleting a feature flag](https://docs.gitlab.com/ee/api/features.html#delete-a-feature) +- [Manage feature flags](https://docs.gitlab.com/ee/development/feature_flags.html) +- [Feature flags API](https://docs.gitlab.com/ee/api/features.html) |