feat: adding notebook flag to backend (#19013)

pull/19022/head
Alex Boatwright 2020-07-22 09:27:11 -07:00 committed by GitHub
parent 5ba4f4da7b
commit 437b35b869
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View File

@ -142,3 +142,11 @@
default: false
contact: Query Team
lifetime: temporary
- name: Notebooks
description: Determine if the notebook feature's route and navbar icon are visible to the user
key: notebooks
default: false
contact: Monitoring Team
lifetime: temporary
expose: true

View File

@ -268,6 +268,20 @@ func MergedFiltersRule() BoolFlag {
return mergeFiltersRule
}
var notebooks = MakeBoolFlag(
"Notebooks",
"notebooks",
"Monitoring Team",
false,
Temporary,
true,
)
// Notebooks - Determine if the notebook feature's route and navbar icon are visible to the user
func Notebooks() BoolFlag {
return notebooks
}
var all = []Flag{
appMetrics,
backendExample,
@ -288,6 +302,7 @@ var all = []Flag{
simpleTaskOptionsExtraction,
useUserPermission,
mergeFiltersRule,
notebooks,
}
var byKey = map[string]Flag{
@ -310,4 +325,5 @@ var byKey = map[string]Flag{
"simpleTaskOptionsExtraction": simpleTaskOptionsExtraction,
"useUserPermission": useUserPermission,
"mergeFiltersRule": mergeFiltersRule,
"notebooks": notebooks,
}