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

chore(Dashboard): Disable save button in Native Filters when an error is present #17037

Merged
merged 7 commits into from
Oct 21, 2021
Merged

chore(Dashboard): Disable save button in Native Filters when an error is present #17037

merged 7 commits into from
Oct 21, 2021

Conversation

geido
Copy link
Member

@geido geido commented Oct 8, 2021

SUMMARY

This PR disabled the save button when an error is present in the native filters as it was suggested in this comment #16940 (review)

AFTER

COVID.Vaccine.Da.mp4

TESTING INSTRUCTIONS

  1. Open a Dashboard
  2. Produce an error in the native filters form
  3. Make sure the save button is disabled

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 Oct 8, 2021

Codecov Report

Merging #17037 (f584fa6) into master (4c708af) will decrease coverage by 0.00%.
The diff coverage is 80.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #17037      +/-   ##
==========================================
- Coverage   76.91%   76.91%   -0.01%     
==========================================
  Files        1039     1039              
  Lines       55568    55572       +4     
  Branches     7570     7571       +1     
==========================================
+ Hits        42742    42744       +2     
- Misses      12576    12578       +2     
  Partials      250      250              
Flag Coverage Δ
javascript 70.93% <80.00%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
...nativeFilters/FiltersConfigModal/Footer/Footer.tsx 90.90% <0.00%> (-9.10%) ⬇️
...eFilters/FiltersConfigModal/FiltersConfigModal.tsx 87.13% <100.00%> (-0.37%) ⬇️

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 4c708af...f584fa6. Read the comment docs.

Copy link
Member

@michael-s-molina michael-s-molina left a comment

Choose a reason for hiding this comment

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

LGTM. Tested locally. Just needs a rebase.

@geido geido closed this Oct 21, 2021
@geido geido reopened this Oct 21, 2021
@geido geido merged commit e5a0342 into apache:master Oct 21, 2021
eschutho pushed a commit that referenced this pull request Oct 27, 2021
… is present (#17037)

* Disable save on error

* Remove removed erroredFilter

* Fix cdisabled check
opus-42 pushed a commit to opus-42/incubator-superset that referenced this pull request Nov 14, 2021
… is present (apache#17037)

* Disable save on error

* Remove removed erroredFilter

* Fix cdisabled check
@mistercrunch mistercrunch added 🍒 1.4.0 🍒 1.4.1 🍒 1.4.2 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.5.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 size/S v1.4 🍒 1.4.0 🍒 1.4.1 🍒 1.4.2 🚢 1.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants