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

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

Merged
merged 2 commits into from
Jun 19, 2019

Conversation

khtruong
Copy link
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

@codecov-io
Copy link

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
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 labels Feb 28, 2024
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants