RBAC: Add a feature toggle for primitives we provide to OnCall (#57289)

This commit is contained in:
Gabriel MABILLE 2022-10-19 18:10:09 +02:00 committed by GitHub
parent 09ab156480
commit 717bd4a6c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 0 deletions

View File

@ -77,4 +77,5 @@ export interface FeatureToggles {
queryLibrary?: boolean; queryLibrary?: boolean;
showDashboardValidationWarnings?: boolean; showDashboardValidationWarnings?: boolean;
mysqlAnsiQuotes?: boolean; mysqlAnsiQuotes?: boolean;
accessControlOnCall?: boolean;
} }

View File

@ -335,5 +335,11 @@ var (
Description: "Use double quote to escape keyword in Mysql query", Description: "Use double quote to escape keyword in Mysql query",
State: FeatureStateAlpha, State: FeatureStateAlpha,
}, },
{
Name: "accessControlOnCall",
Description: "Access control primitives for OnCall",
State: FeatureStateAlpha,
RequiresDevMode: true,
},
} }
) )

View File

@ -250,4 +250,8 @@ const (
// FlagMysqlAnsiQuotes // FlagMysqlAnsiQuotes
// Use double quote to escape keyword in Mysql query // Use double quote to escape keyword in Mysql query
FlagMysqlAnsiQuotes = "mysqlAnsiQuotes" FlagMysqlAnsiQuotes = "mysqlAnsiQuotes"
// FlagAccessControlOnCall
// Access control primitives for OnCall
FlagAccessControlOnCall = "accessControlOnCall"
) )