From 256fbfc180fc34ab1ae489429f7e11aefdce17ce Mon Sep 17 00:00:00 2001 From: Vishal Sharma Date: Fri, 7 Mar 2025 19:48:18 +0530 Subject: [PATCH] chore: add new user preferences for welcome checklist (#7239) --- pkg/query-service/app/preferences/map.go | 70 ++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/pkg/query-service/app/preferences/map.go b/pkg/query-service/app/preferences/map.go index d7cf76aec8..e7ff9e7a80 100644 --- a/pkg/query-service/app/preferences/map.go +++ b/pkg/query-service/app/preferences/map.go @@ -11,4 +11,74 @@ var preferenceMap = map[string]Preference{ IsDiscreteValues: true, AllowedScopes: []string{"org"}, }, + "WELCOME_CHECKLIST_DO_LATER": { + Key: "WELCOME_CHECKLIST_DO_LATER", + Name: "Welcome Checklist Do Later", + Description: "Welcome Checklist Do Later", + ValueType: "boolean", + DefaultValue: false, + AllowedValues: []interface{}{true, false}, + IsDiscreteValues: true, + AllowedScopes: []string{"user"}, + }, + "WELCOME_CHECKLIST_SEND_LOGS_SKIPPED": { + Key: "WELCOME_CHECKLIST_SEND_LOGS_SKIPPED", + Name: "Welcome Checklist Send Logs Skipped", + Description: "Welcome Checklist Send Logs Skipped", + ValueType: "boolean", + DefaultValue: false, + AllowedValues: []interface{}{true, false}, + IsDiscreteValues: true, + AllowedScopes: []string{"user"}, + }, + "WELCOME_CHECKLIST_SEND_TRACES_SKIPPED": { + Key: "WELCOME_CHECKLIST_SEND_TRACES_SKIPPED", + Name: "Welcome Checklist Send Traces Skipped", + Description: "Welcome Checklist Send Traces Skipped", + ValueType: "boolean", + DefaultValue: false, + AllowedValues: []interface{}{true, false}, + IsDiscreteValues: true, + AllowedScopes: []string{"user"}, + }, + "WELCOME_CHECKLIST_SEND_INFRA_METRICS_SKIPPED": { + Key: "WELCOME_CHECKLIST_SEND_INFRA_METRICS_SKIPPED", + Name: "Welcome Checklist Send Infra Metrics Skipped", + Description: "Welcome Checklist Send Infra Metrics Skipped", + ValueType: "boolean", + DefaultValue: false, + AllowedValues: []interface{}{true, false}, + IsDiscreteValues: true, + AllowedScopes: []string{"user"}, + }, + "WELCOME_CHECKLIST_SETUP_DASHBOARDS_SKIPPED": { + Key: "WELCOME_CHECKLIST_SETUP_DASHBOARDS_SKIPPED", + Name: "Welcome Checklist Setup Dashboards Skipped", + Description: "Welcome Checklist Setup Dashboards Skipped", + ValueType: "boolean", + DefaultValue: false, + AllowedValues: []interface{}{true, false}, + IsDiscreteValues: true, + AllowedScopes: []string{"user"}, + }, + "WELCOME_CHECKLIST_SETUP_ALERTS_SKIPPED": { + Key: "WELCOME_CHECKLIST_SETUP_ALERTS_SKIPPED", + Name: "Welcome Checklist Setup Alerts Skipped", + Description: "Welcome Checklist Setup Alerts Skipped", + ValueType: "boolean", + DefaultValue: false, + AllowedValues: []interface{}{true, false}, + IsDiscreteValues: true, + AllowedScopes: []string{"user"}, + }, + "WELCOME_CHECKLIST_SETUP_SAVED_VIEW_SKIPPED": { + Key: "WELCOME_CHECKLIST_SETUP_SAVED_VIEW_SKIPPED", + Name: "Welcome Checklist Setup Saved View Skipped", + Description: "Welcome Checklist Setup Saved View Skipped", + ValueType: "boolean", + DefaultValue: false, + AllowedValues: []interface{}{true, false}, + IsDiscreteValues: true, + AllowedScopes: []string{"user"}, + }, }