Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web-console: ACE editor refactoring #16359

Merged
merged 5 commits into from Apr 30, 2024
Merged

Conversation

jgoz
Copy link
Contributor

@jgoz jgoz commented Apr 30, 2024

Description

Moves Druid SQL autocomplete information into the dsql mode itself and out of flexible-query-input to allow any AceEditor instance access to those completions via the mode.

Some other Ace-related changes:

  • Convert dsql and hjson modes to TypeScript
  • Avoid adding local completions to the global langTools extension in flexible-query-input — ensures that completions are scoped to a specific component instance and do not leak across instances
  • Change font size to 12 in all editors
  • Make theme configurable via static member

This PR has:

  • been self-reviewed.
  • added documentation for new or modified features or behaviors.
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
  • been tested in a test Druid cluster.

web-console/src/ace-modes/dsql.ts Fixed Show resolved Hide resolved
web-console/src/ace-modes/dsql.ts Fixed Show fixed Hide fixed
web-console/src/ace-modes/dsql.ts Fixed Show fixed Hide fixed
Copy link
Contributor

@vogievetsky vogievetsky left a comment

Choose a reason for hiding this comment

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

This is great. So much cleaner.

@vogievetsky vogievetsky merged commit 834b0ed into apache:master Apr 30, 2024
12 checks passed
@vogievetsky vogievetsky added this to the 30.0.0 milestone May 13, 2024
vogievetsky pushed a commit to vogievetsky/druid that referenced this pull request May 13, 2024
* Move druid-sql completions to dsql mode

* Use font-size 12

* Convert ace-modes to typescript

* Move aceCompleters to class member

* Use namespace imports
adarshsanjeev pushed a commit that referenced this pull request May 14, 2024
* Web console: surface more info on the supervisor view (#16318)

* add rate and stats

* better tabs

* detail

* add recent errors

* update tests

* don't let people hide the actions column because why

* don't sort on actions

* better way to agg

* add timeouts

* show error only once

* fix tests and Explain showing up

* only consider active tasks

* refresh

* fix tests

* better formatting

* web-console: ACE editor refactoring (#16359)

* Move druid-sql completions to dsql mode

* Use font-size 12

* Convert ace-modes to typescript

* Move aceCompleters to class member

* Use namespace imports

* Web console: concat data when doing a durable storage download (#16375)

* concat data

* fix silly console.error

---------

Co-authored-by: John Gozde <john@gozde.ca>
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.

None yet

2 participants