Skip to content

Autocomplete in the table browser in SQL lab is broken#7736

Merged
betodealmeida merged 2 commits into
apache:masterfrom
lyft:VIZ-713
Jun 19, 2019
Merged

Autocomplete in the table browser in SQL lab is broken#7736
betodealmeida merged 2 commits into
apache:masterfrom
lyft:VIZ-713

Conversation

@khtruong
Copy link
Copy Markdown
Contributor

CATEGORY

Choose one

  • Bug Fix
  • Enhancement (new features, refinement)
  • Refactor
  • Add tests
  • Build / Development Environment
  • Documentation

SUMMARY

The autocomplete in the table browser in SQL lab does not work. We use the createFilterOptions API from the react-select-fast-filter-options library for autocomplete. The API expects a list of option objects where its properties value and label are strings. The bug is that we were passing objects to the property value, which caused the algorithm to not work properly. Now we explicitly pass strings to the API.

TEST PLAN

Manually verified

REVIEWERS

@betodealmeida @DiggidyDave @xtinec

Comment thread superset/assets/src/components/TableSelector.jsx Outdated
@codecov-io
Copy link
Copy Markdown

codecov-io commented Jun 19, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@7a575ce). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #7736   +/-   ##
=========================================
  Coverage          ?   65.78%           
=========================================
  Files             ?      459           
  Lines             ?    21925           
  Branches          ?     2410           
=========================================
  Hits              ?    14424           
  Misses            ?     7380           
  Partials          ?      121
Impacted Files Coverage Δ
superset/assets/src/components/TableSelector.jsx 84.8% <100%> (ø)

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 7a575ce...f764072. Read the comment docs.

@betodealmeida
Copy link
Copy Markdown
Member

Awesome!

@betodealmeida betodealmeida merged commit d1b81e0 into apache:master Jun 19, 2019
khtruong added a commit to lyft/incubator-superset that referenced this pull request Jun 20, 2019
betodealmeida pushed a commit that referenced this pull request Jun 21, 2019
…" (#7743)

* Revert "Autocomplete in the table browser in SQL lab is broken (#7736)"

This reverts commit d1b81e0.

* Kick off build
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.34.0 First shipped in 0.34.0 labels Feb 28, 2024
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
* fix: explicitly provide value and label strings

* fix: spacing
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
…e#7736)" (apache#7743)

* Revert "Autocomplete in the table browser in SQL lab is broken (apache#7736)"

This reverts commit 7139d8d.

* Kick off build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/XS 🚢 0.34.0 First shipped in 0.34.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants