From 46fe0ee9d16b973d00c986f2a53d2368504e4dbe Mon Sep 17 00:00:00 2001 From: "Jill R. Pelavin" Date: Tue, 25 May 2021 15:25:05 -0400 Subject: [PATCH] chore: adding rangeAnnotations feature flag (#21556) --- flags.yml | 8 ++++++++ kit/feature/list.go | 16 ++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/flags.yml b/flags.yml index c04c27784d..df4f0855c5 100644 --- a/flags.yml +++ b/flags.yml @@ -122,6 +122,14 @@ expose: true 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 description: Management, display, and manual addition of Annotations from the UI key: annotations diff --git a/kit/feature/list.go b/kit/feature/list.go index 5e97d32454..e65f08b0f7 100644 --- a/kit/feature/list.go +++ b/kit/feature/list.go @@ -212,6 +212,20 @@ func RefreshSingleCell() BoolFlag { 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( "Annotations UI", "annotations", @@ -242,6 +256,7 @@ var all = []Flag{ editTelegrafs, cursorAtEOF, refreshSingleCell, + rangeAnnotations, annotations, } @@ -261,5 +276,6 @@ var byKey = map[string]Flag{ "editTelegrafs": editTelegrafs, "cursorAtEOF": cursorAtEOF, "refreshSingleCell": refreshSingleCell, + "rangeAnnotations": rangeAnnotations, "annotations": annotations, }