diff --git a/conf/defaults.ini b/conf/defaults.ini index 306c625d980..9f2f186a4eb 100644 --- a/conf/defaults.ini +++ b/conf/defaults.ini @@ -246,6 +246,10 @@ disable_signout_menu = false # URL to redirect the user to after sign out signout_redirect_url = +# Set to true to attempt login with OAuth automatically, skipping the login screen. +# This setting is ignored if multiple OAuth providers are configured. +oauth_auto_login = false + #################################### Anonymous Auth ###################### [auth.anonymous] # enable anonymous access diff --git a/conf/sample.ini b/conf/sample.ini index c6b716a731d..455d32c06dc 100644 --- a/conf/sample.ini +++ b/conf/sample.ini @@ -223,6 +223,10 @@ log_queries = # URL to redirect the user to after sign out ;signout_redirect_url = +# Set to true to attempt login with OAuth automatically, skipping the login screen. +# This setting is ignored if multiple OAuth providers are configured. +;oauth_auto_login = false + #################################### Anonymous Auth ########################## [auth.anonymous] # enable anonymous access diff --git a/public/app/core/components/TagFilter/TagFilter.tsx b/public/app/core/components/TagFilter/TagFilter.tsx index 6a4203f8739..004221657ef 100644 --- a/public/app/core/components/TagFilter/TagFilter.tsx +++ b/public/app/core/components/TagFilter/TagFilter.tsx @@ -51,6 +51,10 @@ export class TagFilter extends React.Component { getOptionLabel: i => i.label, value: tags, styles: ResetStyles, + filterOption: (option, searchQuery) => { + const regex = RegExp(searchQuery, 'i'); + return regex.test(option.value); + }, components: { Option: TagOption, IndicatorsContainer, diff --git a/public/app/features/datasources/state/actions.ts b/public/app/features/datasources/state/actions.ts index bb8fce8424a..50296db9031 100644 --- a/public/app/features/datasources/state/actions.ts +++ b/public/app/features/datasources/state/actions.ts @@ -148,7 +148,7 @@ export function loadDataSourceTypes(): ThunkResult { export function nameExits(dataSources, name) { return ( dataSources.filter(dataSource => { - return dataSource.name === name; + return dataSource.name.toLowerCase() === name.toLowerCase(); }).length > 0 ); }