From de1d8dc2d670fbe8f5368af6262f2f5379840183 Mon Sep 17 00:00:00 2001 From: William Baker <55118525+wbaker85@users.noreply.github.com> Date: Thu, 15 Apr 2021 09:53:55 -0400 Subject: [PATCH] feat(annotations): add feature flag for annotations (#21220) * feat(annotations): add feature flag for annotations --- flags.yml | 8 ++++++++ kit/feature/list.go | 16 ++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/flags.yml b/flags.yml index b88ac8c2fb..1f896b5610 100644 --- a/flags.yml +++ b/flags.yml @@ -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 diff --git a/kit/feature/list.go b/kit/feature/list.go index 610af0c413..809e816fc7 100644 --- a/kit/feature/list.go +++ b/kit/feature/list.go @@ -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, }