diff options
author | Ezekiel Kigbo <ekigbo@gitlab.com> | 2019-03-20 09:10:47 +0000 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-03-21 06:57:37 -0700 |
commit | 7a5aca1e3241c639a8e77b037918606b5386e864 (patch) | |
tree | 2f5d6a8ec1d562d7445706df42318296faedb833 /doc/development/new_fe_guide | |
parent | 134df14c1c327a53668eb5b6c1ece9fb33a00caa (diff) | |
download | gitlab-ce-7a5aca1e3241c639a8e77b037918606b5386e864.tar.gz |
Adds info and links on creating feature flags
Adds A short summary of the steps to create and use feature flags
in development for frontend developers who might be unfamiliar
with `rails` and or `flipper`. Adds links to further reading
in the development guide.
Diffstat (limited to 'doc/development/new_fe_guide')
-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) |