Timeseries: Time regions migration (#66998)

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
Adela Almasan
2023-04-26 21:28:58 -05:00
committed by GitHub
parent 5c4ecf7a86
commit 2beee35567
9 changed files with 234 additions and 15 deletions

View File

@@ -49,6 +49,7 @@ export const Pages = {
},
Dashboard: {
url: (uid: string) => `/d/${uid}`,
wrapper: 'data-testid dashboard-page-wrapper',
DashNav: {
/**
* @deprecated use navV2 from Grafana 8.3 instead

View File

@@ -237,7 +237,7 @@ function overrideFeatureTogglesFromUrl(config: GrafanaBootConfig) {
if (key.startsWith('__feature.')) {
const featureToggles = config.featureToggles as Record<string, boolean>;
const featureName = key.substring(10);
const toggleState = value === 'true';
const toggleState = value === 'true' || value === ''; // browser rewrites true as ''
if (toggleState !== featureToggles[key]) {
featureToggles[featureName] = toggleState;
console.log(`Setting feature toggle ${featureName} = ${toggleState}`);