Skip to content

Commit 5dac673

Browse files
authored
Docs: Add note for how to enable a feature toggle in development (#108404)
add note for how to enable a feature toggle in development
1 parent 1bd9541 commit 5dac673

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

contribute/feature-toggles.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,12 @@ Examples:
1515

1616
- [Backend](https://github.com/grafana/grafana/blob/feb2b5878b3e3ec551d64872c35edec2a0187812/pkg/services/authn/clients/session.go#L57): Use the `IsEnabled` function and pass in your feature toggle.
1717
- [Frontend](https://github.com/grafana/grafana/blob/feb2b5878b3e3ec551d64872c35edec2a0187812/public/app/features/search/service/folders.ts#L14): Check the config for your feature toggle.
18+
19+
## Enabling toggles in development
20+
21+
Add the feature toggle to the feature_toggle section in your custom.ini, for example:
22+
23+
```
24+
[feature_toggles]
25+
localeFormatPreference=true
26+
```

0 commit comments

Comments
 (0)