Skip to content

feat: Live query validation in the SQL Lab UI (#7461) (#7516)#7518

Merged
xtinec merged 1 commit into
apache:masterfrom
bearcage:master-retarget-1
May 15, 2019
Merged

feat: Live query validation in the SQL Lab UI (#7461) (#7516)#7518
xtinec merged 1 commit into
apache:masterfrom
bearcage:master-retarget-1

Conversation

@bearcage
Copy link
Copy Markdown
Contributor

REGARGET TO MASTER (#7461 / #7516)

  • [WIP] Live query validation, where supported

This builds on #7422 to build check-as-you-type sql
query validation in Sql Lab. This closes #6707 too.

It adds a (debounced) call to the validate_sql_json
API endpoint with the querytext, and on Lyft infra is
able to return feedback to the user (end to end) in
$TBD seconds.

At present feedback is provided only through the
"annotations" mechanism build in to ACE, although
I'd be open to adding full text elsewhere on the
page if there's interest.

  • fix: Unbreak lints and tests

)

* [WIP] Live query validation, where supported

This builds on apache#7422 to build check-as-you-type sql
query validation in Sql Lab. This closes apache#6707 too.

It adds a (debounced) call to the validate_sql_json
API endpoint with the querytext, and on Lyft infra is
able to return feedback to the user (end to end) in
$TBD seconds.

At present feedback is provided only through the
"annotations" mechanism build in to ACE, although
I'd be open to adding full text elsewhere on the
page if there's interest.

* fix: Unbreak lints and tests
@codecov-io
Copy link
Copy Markdown

codecov-io commented May 15, 2019

Codecov Report

Merging #7518 into master will decrease coverage by 0.14%.
The diff coverage is 17.91%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7518      +/-   ##
==========================================
- Coverage   65.43%   65.29%   -0.15%     
==========================================
  Files         432      432              
  Lines       21319    21386      +67     
  Branches     2347     2357      +10     
==========================================
+ Hits        13951    13963      +12     
- Misses       7252     7303      +51     
- Partials      116      120       +4
Impacted Files Coverage Δ
...rset/assets/src/SqlLab/reducers/getInitialState.js 0% <ø> (ø) ⬆️
superset/views/core.py 72.92% <ø> (ø) ⬆️
superset/assets/src/SqlLab/reducers/sqlLab.js 50% <0%> (-6.61%) ⬇️
superset/assets/src/featureFlags.ts 90% <100%> (+1.11%) ⬆️
superset/assets/src/SqlLab/actions/sqlLab.js 64.73% <13.04%> (-5.92%) ⬇️
...uperset/assets/src/SqlLab/components/SqlEditor.jsx 54.7% <20%> (-5.11%) ⬇️
.../assets/src/SqlLab/components/AceEditorWrapper.jsx 58.33% <71.42%> (+1.41%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fda1002...2ccd62e. Read the comment docs.

@xtinec xtinec merged commit 156b0aa into apache:master May 15, 2019
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
) (apache#7518)

* [WIP] Live query validation, where supported

This builds on apache#7422 to build check-as-you-type sql
query validation in Sql Lab. This closes apache#6707 too.

It adds a (debounced) call to the validate_sql_json
API endpoint with the querytext, and on Lyft infra is
able to return feedback to the user (end to end) in
$TBD seconds.

At present feedback is provided only through the
"annotations" mechanism build in to ACE, although
I'd be open to adding full text elsewhere on the
page if there's interest.

* fix: Unbreak lints and tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Realtime syntax validation of queries in SQL lab

3 participants