-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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: Dashboard not loading with default first value in filter #23512
Conversation
Codecov Report
@@ Coverage Diff @@
## master #23512 +/- ##
===========================================
- Coverage 67.65% 56.44% -11.21%
===========================================
Files 1910 1910
Lines 73745 73743 -2
Branches 7987 7987
===========================================
- Hits 49891 41625 -8266
- Misses 21813 30077 +8264
Partials 2041 2041
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 302 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
I'm almost sure that that |
sure i can test |
@kgabryje if you look at line https://github.com/apache/superset/pull/23512/files#diff-b4d2de68c8a3b04879772237085ede1b49a6908b6f2890a9ab1aaeae9e18b854R265 there is another |
/testenv up |
@jinghua-qa Ephemeral environment spinning up at http://54.201.26.107:8080. Credentials are |
test PR locally have tried select with first default value by UI and dashboard properties, also have tried opening a dashboard with filters In URL, did not find any issue. LGTM |
Ephemeral environment shutdown and build artifacts deleted. |
SUMMARY
Users are able to configure a dashboard filter to automatically select the first value by default. However, when this function was used the dashboard didn't load properly.
The culprit was a redundant
useEffect
that caused the filter value to reset toundefined
. By removing the redundantuseEffect
the issue is resolved.AFTER
DEV.Unicode.Test.mp4
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION