gianm commented on code in PR #16191:
URL: https://github.com/apache/druid/pull/16191#discussion_r1546830453
##########
web-console/src/components/header-bar/header-bar.tsx:
##########
@@ -495,7 +365,48 @@ export const HeaderBar = React.memo(function
HeaderBar(props: HeaderBarProps) {
</Popover2>
</NavbarGroup>
<NavbarGroup align={Alignment.RIGHT}>
- <RestrictedMode capabilities={capabilities}
onUnrestrict={onUnrestrict} />
+ <RestrictedMode
+ capabilities={capabilities}
+ onUnrestrict={onUnrestrict}
+ onUseAutomaticCapabilityDetection={
+ capabilitiesOverride ? () => setCapabilitiesOverride(undefined) :
undefined
+ }
+ />
+ {capabilitiesOverride && (
+ <Popover2
+ content={
+ <PopoverText>
+ <p>
+ The console is running in a manual capability setting mode
that assumes a limited
+ set of capabilities rather than detecting all capabilities
for the cluster.
+ </p>
+ <p>
+ Manual capability setting mode is an advanced feature used
for testing and for
+ working around issues with the automatic capability
detecting logic.
+ </p>
+ <p>
+ If you are unsure why the console is in ths mode mode,
revert to using automatic
Review Comment:
"ths mode mode" should be "this mode"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]