Skip to content

Web console: add a button to get out of restricted mode, make capability detection more robust#12503

Merged
vogievetsky merged 2 commits intoapache:masterfrom
vogievetsky:better-capability-detection
May 5, 2022
Merged

Web console: add a button to get out of restricted mode, make capability detection more robust#12503
vogievetsky merged 2 commits intoapache:masterfrom
vogievetsky:better-capability-detection

Conversation

@vogievetsky
Copy link
Contributor

Making the capability detection better and letting the user override it if needed.

image

Copy link
Member

@clintropolis clintropolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i guess the button is to avoid a page refresh if it fails to detect capabilities correctly?

try {
await Api.instance.post(
'/druid/v2/sql',
'/druid/v2/sql?capabilities',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the ?capabilities query parameter just for fun?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is mostly for being able to identify these bad boys in the Network tab:

image

@vogievetsky
Copy link
Contributor Author

i guess the button is to avoid a page refresh if it fails to detect capabilities correctly?

Or if the capabilities detection code fails in general for some reason and you want to override it.

@vogievetsky vogievetsky merged commit 2d8eb11 into apache:master May 5, 2022
@vogievetsky vogievetsky deleted the better-capability-detection branch May 5, 2022 22:07
vogievetsky added a commit to vogievetsky/druid that referenced this pull request May 13, 2022
…ity detection more robust (apache#12503)

* allow unrestrict

* update tests
@abhishekagarwal87 abhishekagarwal87 added this to the 0.23.0 milestone May 16, 2022
abhishekagarwal87 pushed a commit that referenced this pull request May 16, 2022
* Web console: Misc table fixes (#12489)

* Misc table fixes

* extract default className

* table spacing updates

* fix e2e action selector

* try more times

* make the web console exist again

* Web console: add a button to get out of restricted mode, make capability detection more robust (#12503)

* allow unrestrict

* update tests

* Add daily stats to console (#12329)

* cleanup

Co-authored-by: Atul Mohan <atulmohan.mec@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants