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(native-filters): Reset column field for removed dataset #12519
fix(native-filters): Reset column field for removed dataset #12519
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12519 +/- ##
==========================================
- Coverage 66.85% 63.22% -3.64%
==========================================
Files 1018 486 -532
Lines 49776 29982 -19794
Branches 4869 0 -4869
==========================================
- Hits 33280 18956 -14324
+ Misses 16373 11026 -5347
+ Partials 123 0 -123
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
First issue: |
Thanks a lot Adam, I think these issues are connected with each other. I am working on them now! |
ddfaa68
to
9ed7c78
Compare
Retest for your fixes -> it is ok 🟢 |
@adam-stasiak you are really the QA KING. thanks for taking care of the project while i was gone... 🙏👑 |
Thank you so much for the PR! @agatapst for some reasons, I'm not seeing changes described above. but a spinning sign for the filter with deleted dataset.. not sure if I tested correctly? @adam-stasiak |
@junlincc I saw this spinner in situation od removed dataset - > I consulted this with Agata and good idea is to raise new issue for this as it needs design for not available filters. I left this on Friday and forgot to raise : | I will create an issue for this. |
cad78d6
to
6141130
Compare
@junlincc yes, actually @adam-stasiak asked me about that spinner and at first I thought about making separate issue - but if this PR is still not merged, let's improve it in this PR. |
@agatapst @adam-stasiak @junlincc This might be a bit of a heavy treatment, but here's the standard error component in the Superset design system - |
Thanks @mihir174 🙂 cc @junlincc Update: I have implemented the design. The copy is as above (but of course it can be changed). |
6141130
to
5226b9a
Compare
Issue: After I fixed filter (Change dataset to existing one) I can see error remains :( fil.mov |
Thanks a lot Adam! @adam-stasiak |
b50e1f3
to
0e2d4dc
Compare
@rusackas @mistercrunch please help merge this PR, LGTM with code reviews and few rounds of changes... |
thank you everyone for the PR, testing, design input, reviewing and merging. @agatapst @mihir174 @adam-stasiak @zhaoyongjie @villebro 🙏 @mistercrunch Max, just want to use this PR as an example to show how much work the team put into each single PR before merging. |
SUMMARY
After removing dataset, which is used in some native filter, it was still possible to see field from this dataset. Dataset was removed, but field value was not removed from Filter Config Modal.
Described in #12457
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:
First we set some native filter
Then we remove used dataset and come back to native filter config
After:
TEST PLAN
Set
"DASHBOARD_NATIVE_FILTERS": True
Create new native filter with given dataset
Go to datasets and remove this dataset
Come back to native filter you have just created and check if you see 'Select' placeholder instead of field value from removed dataset
ADDITIONAL INFORMATION
@junlincc @rusackas @adam-stasiak