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

fix: Dataset search when creating a chart #19065

Merged

Conversation

michael-s-molina
Copy link
Member

SUMMARY

Fixes dataset search when creating a chart. Previously, when we typed "b" for example, the option "channels" was appearing in the results. That happened because the value for the dataset is in the form "table_" and since the default optionFilterProps is ['label', 'value'], the "b" was being matched with the "b" in "table". This PR fixes this by introducing an id prop and configuring optionFilterProps. Now the search is correct and we preserve the ability to search by id.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screen.Recording.2022-03-08.at.10.51.37.AM.mov
Screen.Recording.2022-03-08.at.10.55.13.AM.mov

TESTING INSTRUCTIONS

Check the videos for instructions.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@codecov
Copy link

codecov bot commented Mar 8, 2022

Codecov Report

Merging #19065 (8eff827) into master (2cc5678) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #19065   +/-   ##
=======================================
  Coverage   66.52%   66.52%           
=======================================
  Files        1641     1641           
  Lines       63476    63476           
  Branches     6444     6444           
=======================================
  Hits        42228    42228           
  Misses      19584    19584           
  Partials     1664     1664           
Flag Coverage Δ
javascript 51.28% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...perset-frontend/src/addSlice/AddSliceContainer.tsx 61.76% <ø> (ø)
...t-frontend/src/dashboard/actions/dashboardState.js 35.95% <0.00%> (ø)
superset-frontend/src/chart/chartReducer.ts
superset-frontend/src/chart/Chart.jsx
superset-frontend/src/chart/ChartErrorMessage.tsx
superset-frontend/src/chart/ChartRenderer.jsx
superset-frontend/src/chart/ChartContainer.jsx
superset-frontend/src/chart/chartAction.js
...rontend/src/components/Chart/ChartErrorMessage.tsx 75.00% <0.00%> (ø)
...t-frontend/src/components/Chart/ChartContainer.jsx 100.00% <0.00%> (ø)
... and 4 more

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 2cc5678...8eff827. Read the comment docs.

Copy link
Member

@kgabryje kgabryje left a comment

Choose a reason for hiding this comment

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

LGTM

@michael-s-molina michael-s-molina merged commit fd154f7 into apache:master Mar 9, 2022
villebro pushed a commit that referenced this pull request Apr 3, 2022
@mistercrunch mistercrunch added 🍒 1.5.0 🍒 1.5.1 🍒 1.5.2 🍒 1.5.3 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.0.0 labels Mar 13, 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 lts-v1 size/XS 🍒 1.5.0 🍒 1.5.1 🍒 1.5.2 🍒 1.5.3 🚢 2.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants