feat(annotations): add feature flag for annotations (#21220)
* feat(annotations): add feature flag for annotationspull/21235/head
parent
cd39440e3f
commit
de1d8dc2d6
|
@ -153,3 +153,11 @@
|
|||
contact: Monitoring Team
|
||||
expose: true
|
||||
lifetime: temporary
|
||||
|
||||
- name: Annotations UI
|
||||
description: Management, display, and manual addition of Annotations from the UI
|
||||
key: annotations
|
||||
default: false
|
||||
contact: Monitoring Team
|
||||
lifetime: temporary
|
||||
expose: true
|
||||
|
|
|
@ -268,6 +268,20 @@ func TypeAheadDropdownsForVariables() BoolFlag {
|
|||
return typeAheadVariableDropdown
|
||||
}
|
||||
|
||||
var annotations = MakeBoolFlag(
|
||||
"Annotations UI",
|
||||
"annotations",
|
||||
"Monitoring Team",
|
||||
false,
|
||||
Temporary,
|
||||
true,
|
||||
)
|
||||
|
||||
// AnnotationsUi - Management, display, and manual addition of Annotations from the UI
|
||||
func AnnotationsUi() BoolFlag {
|
||||
return annotations
|
||||
}
|
||||
|
||||
var all = []Flag{
|
||||
appMetrics,
|
||||
groupWindowAggregateTranspose,
|
||||
|
@ -288,6 +302,7 @@ var all = []Flag{
|
|||
cursorAtEOF,
|
||||
refreshSingleCell,
|
||||
typeAheadVariableDropdown,
|
||||
annotations,
|
||||
}
|
||||
|
||||
var byKey = map[string]Flag{
|
||||
|
@ -310,4 +325,5 @@ var byKey = map[string]Flag{
|
|||
"cursorAtEOF": cursorAtEOF,
|
||||
"refreshSingleCell": refreshSingleCell,
|
||||
"typeAheadVariableDropdown": typeAheadVariableDropdown,
|
||||
"annotations": annotations,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue