chore: adding rangeAnnotations feature flag (#21556)

pull/21570/head
Jill R. Pelavin 2021-05-25 15:25:05 -04:00 committed by GitHub
parent b0d62f0c72
commit 46fe0ee9d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View File

@ -122,6 +122,14 @@
expose: true expose: true
lifetime: temporary lifetime: temporary
- name: Range Annotations
description: Enables the creation of Range Annotations on Drag (if annotation write mode is activated)
key: rangeAnnotations
default: false
contact: Jill Pelavin/ Dumplings Team
lifetime: temporary
expose: true
- name: Annotations UI - name: Annotations UI
description: Management, display, and manual addition of Annotations from the UI description: Management, display, and manual addition of Annotations from the UI
key: annotations key: annotations

View File

@ -212,6 +212,20 @@ func RefreshSingleCell() BoolFlag {
return refreshSingleCell return refreshSingleCell
} }
var rangeAnnotations = MakeBoolFlag(
"Range Annotations",
"rangeAnnotations",
"Jill Pelavin/ Dumplings Team",
false,
Temporary,
true,
)
// RangeAnnotations - Enables the creation of Range Annotations on Drag (if annotation write mode is activated)
func RangeAnnotations() BoolFlag {
return rangeAnnotations
}
var annotations = MakeBoolFlag( var annotations = MakeBoolFlag(
"Annotations UI", "Annotations UI",
"annotations", "annotations",
@ -242,6 +256,7 @@ var all = []Flag{
editTelegrafs, editTelegrafs,
cursorAtEOF, cursorAtEOF,
refreshSingleCell, refreshSingleCell,
rangeAnnotations,
annotations, annotations,
} }
@ -261,5 +276,6 @@ var byKey = map[string]Flag{
"editTelegrafs": editTelegrafs, "editTelegrafs": editTelegrafs,
"cursorAtEOF": cursorAtEOF, "cursorAtEOF": cursorAtEOF,
"refreshSingleCell": refreshSingleCell, "refreshSingleCell": refreshSingleCell,
"rangeAnnotations": rangeAnnotations,
"annotations": annotations, "annotations": annotations,
} }