diff --git a/web-console/src/components/header-bar/__snapshots__/header-bar.spec.tsx.snap b/web-console/src/components/header-bar/__snapshots__/header-bar.spec.tsx.snap index bfd6aa4c3daa..b3943e556a92 100644 --- a/web-console/src/components/header-bar/__snapshots__/header-bar.spec.tsx.snap +++ b/web-console/src/components/header-bar/__snapshots__/header-bar.spec.tsx.snap @@ -76,6 +76,7 @@ exports[`HeaderBar matches snapshot 1`] = ` "queryType": "nativeAndSql", } } + onUnrestrict={[Function]} /> { it('matches snapshot', () => { - const headerBar = shallow(); + const headerBar = shallow( + {}} />, + ); expect(headerBar).toMatchSnapshot(); }); }); diff --git a/web-console/src/components/header-bar/header-bar.tsx b/web-console/src/components/header-bar/header-bar.tsx index 217ff807571f..53042d91a22d 100644 --- a/web-console/src/components/header-bar/header-bar.tsx +++ b/web-console/src/components/header-bar/header-bar.tsx @@ -85,10 +85,11 @@ const DruidLogo = React.memo(function DruidLogo() { interface RestrictedModeProps { capabilities: Capabilities; + onUnrestrict(capabilities: Capabilities): void; } const RestrictedMode = React.memo(function RestrictedMode(props: RestrictedModeProps) { - const { capabilities } = props; + const { capabilities, onUnrestrict } = props; const mode = capabilities.getModeExtended(); let label: string; @@ -136,7 +137,8 @@ const RestrictedMode = React.memo(function RestrictedMode(props: RestrictedModeP

It appears that you are accessing the console on the Coordinator/Overlord shared service. Due to the lack of access to some APIs on this service the console will operate in a - limited mode. The full version of the console can be accessed on the Router service. + limited mode. The unrestricted version of the console can be accessed on the Router + service.

); break; @@ -157,8 +159,8 @@ const RestrictedMode = React.memo(function RestrictedMode(props: RestrictedModeP message = (

It appears that you are accessing the console on the Overlord service. Due to the lack of - access to some APIs on this service the console will operate in a limited mode. The full - version of the console can be accessed on the Router service. + access to some APIs on this service the console will operate in a limited mode. The + unrestricted version of the console can be accessed on the Router service.

); break; @@ -168,7 +170,8 @@ const RestrictedMode = React.memo(function RestrictedMode(props: RestrictedModeP message = (

Due to the lack of access to some APIs on this service the console will operate in a - limited mode. The full version of the console can be accessed on the Router service. + limited mode. The unrestricted version of the console can be accessed on the Router + service.

); break; @@ -187,6 +190,27 @@ const RestrictedMode = React.memo(function RestrictedMode(props: RestrictedModeP .

+

+ It is possible that there is an issue with the capability detection. You can enable the + unrestricted console but certain features might not work if the underlying APIs are not + available. +

+

+