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(explore): make clicked dnd filters unique #16700

Merged
merged 2 commits into from
Sep 14, 2021

Conversation

villebro
Copy link
Member

SUMMARY

This applies the fix in #16632 to the DnD filter control.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING 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

kgabryje
kgabryje previously approved these changes Sep 14, 2021
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!

@@ -31,3 +31,7 @@ export function isDatasourcePanelDndItem(
): item is DatasourcePanelDndItem {
return item?.value && item?.type;
}

export function isDndItemValue(item: any): item is DndItemValue {
return item?.value && item?.type;
Copy link
Member

Choose a reason for hiding this comment

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

Is that correct? DndItemValue is ColumnMeta | Metric

@kgabryje kgabryje dismissed their stale review September 14, 2021 12:07

Added a comment

@codecov
Copy link

codecov bot commented Sep 14, 2021

Codecov Report

Merging #16700 (a742149) into master (5ac8ac0) will increase coverage by 0.00%.
The diff coverage is 83.33%.

❗ Current head a742149 differs from pull request most recent head 7e6e93a. Consider uploading reports for the commit 7e6e93a to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##           master   #16700   +/-   ##
=======================================
  Coverage   76.93%   76.94%           
=======================================
  Files        1007     1007           
  Lines       54112    54116    +4     
  Branches     7346     7347    +1     
=======================================
+ Hits        41633    41637    +4     
  Misses      12239    12239           
  Partials      240      240           
Flag Coverage Δ
javascript 71.26% <83.33%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
...ontrols/DndColumnSelectControl/DndFilterSelect.tsx 51.97% <75.00%> (+0.64%) ⬆️
...nd/src/explore/components/DatasourcePanel/types.ts 100.00% <100.00%> (ø)

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 5ac8ac0...7e6e93a. 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.

Looks great! 🙂

@villebro villebro merged commit 1d890f8 into apache:master Sep 14, 2021
stevenuray pushed a commit to preset-io/superset that referenced this pull request Sep 14, 2021
stevenuray pushed a commit to preset-io/superset that referenced this pull request Sep 14, 2021
@rosemarie-chiu
Copy link
Contributor

🏷 2021.34

@villebro villebro added v1.3 and removed v1.3 labels Sep 22, 2021
opus-42 pushed a commit to opus-42/incubator-superset that referenced this pull request Nov 14, 2021
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 28, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.4.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 preset:2021.34 preset-io size/S 🚢 1.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants