Skip to content

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

Merged
xtinec merged 1 commit into
apache:lyft-developfrom
bearcage:retarget-7461
May 15, 2019
Merged

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

Conversation

@bearcage
Copy link
Copy Markdown
Contributor

@bearcage bearcage commented May 15, 2019

RETARGET OF #7461 ON lyft-develop

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
@DiggidyDave
Copy link
Copy Markdown
Contributor

👍

@codecov-io
Copy link
Copy Markdown

codecov-io commented May 15, 2019

Codecov Report

Merging #7516 into lyft-develop will decrease coverage by 0.14%.
The diff coverage is 17.91%.

Impacted file tree graph

@@               Coverage Diff                @@
##           lyft-develop    #7516      +/-   ##
================================================
- 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...a137550. Read the comment docs.

@xtinec xtinec merged commit 66524c4 into apache:lyft-develop May 15, 2019
bearcage pushed a commit to bearcage/incubator-superset that referenced this pull request May 15, 2019
)

* [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
xtinec pushed a commit that referenced this pull request May 15, 2019
* [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
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.

4 participants