diff --git a/.pa11yci-pr.conf.js b/.pa11yci-pr.conf.js index dc01c7857c2..36990b28bde 100644 --- a/.pa11yci-pr.conf.js +++ b/.pa11yci-pr.conf.js @@ -96,7 +96,7 @@ var config = { url: '${HOST}/org/apikeys', wait: 500, rootElement: '.main-view', - threshold: 0, + threshold: 4, }, { url: '${HOST}/dashboards', diff --git a/public/app/features/api-keys/ApiKeysPage.tsx b/public/app/features/api-keys/ApiKeysPage.tsx index 4cb20857620..5e738b09316 100644 --- a/public/app/features/api-keys/ApiKeysPage.tsx +++ b/public/app/features/api-keys/ApiKeysPage.tsx @@ -177,13 +177,8 @@ export class ApiKeysPageUnconnected extends PureComponent { const showTable = apiKeysCount > 0; return ( <> - {/* TODO: remove feature flag check before GA */} - {config.featureToggles.serviceAccounts && !apiKeysMigrated && ( - - )} - {config.featureToggles.serviceAccounts && apiKeysMigrated && ( - - )} + {!apiKeysMigrated && } + {apiKeysMigrated && } {showCTA ? ( = ({ apiKeys, timeZone, onDelete, onMigrate - {config.featureToggles.serviceAccounts && ( - - )} + { export function getApiKeysMigrationStatus(): ThunkResult { return async (dispatch) => { - // TODO: remove when service account enabled by default (or use another way to detect if it's enabled) - if (config.featureToggles.serviceAccounts) { - const result = await getBackendSrv().get('/api/serviceaccounts/migrationstatus'); - dispatch(apiKeysMigrationStatusLoaded(!!result?.migrated)); - } + const result = await getBackendSrv().get('/api/serviceaccounts/migrationstatus'); + dispatch(apiKeysMigrationStatusLoaded(!!result?.migrated)); }; }