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

Allowing withVerification to remove all options if none are valid #7652

Merged

Conversation

michellethomas
Copy link
Contributor

CATEGORY

Choose one

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

SUMMARY

Previously, I was only allowing options to be filtered if there were existing validOptions, but it was preventing filtering out all options if none are valid.

TEST PLAN

Set up control overrides to use one of the controls using withVerification
Call a getEndpoint with no valid options
Confirm that no options show up in the dropdown

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

REVIEWERS

@kristw @graceguo-supercat

@codecov-io
Copy link

codecov-io commented Jun 5, 2019

Codecov Report

Merging #7652 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #7652   +/-   ##
=======================================
  Coverage   65.57%   65.57%           
=======================================
  Files         435      435           
  Lines       21754    21754           
  Branches     2394     2394           
=======================================
  Hits        14266    14266           
  Misses       7367     7367           
  Partials      121      121
Impacted Files Coverage Δ
...c/explore/components/controls/withVerification.jsx 96.77% <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 1cd0e7f...ce82c97. Read the comment docs.

@michellethomas
Copy link
Contributor Author

ping @kristw @graceguo-supercat

Copy link
Member

@mistercrunch mistercrunch left a comment

Choose a reason for hiding this comment

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

LGTM

@michellethomas michellethomas merged commit 5864ddc into apache:master Jun 18, 2019
@michellethomas michellethomas deleted the fix_with_validation_empty branch June 18, 2019 21:06
michellethomas added a commit that referenced this pull request Jun 19, 2019
@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
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 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/S 🚢 0.34.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants