-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
feat: Improves key expiration handling in Explore #18624
feat: Improves key expiration handling in Explore #18624
Conversation
Codecov Report
@@ Coverage Diff @@
## master #18624 +/- ##
==========================================
- Coverage 66.30% 66.29% -0.02%
==========================================
Files 1595 1595
Lines 62632 62612 -20
Branches 6309 6306 -3
==========================================
- Hits 41529 41506 -23
- Misses 19453 19458 +5
+ Partials 1650 1648 -2
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.
One comment relating to making the fallback more transparent to the user. But beyond that, really great improvement! 🚀
superset-frontend/src/dashboard/components/menu/ShareMenuItems/ShareMenuItems.test.tsx
Outdated
Show resolved
Hide resolved
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.
Thanks for the fix. LGTM
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!
I'm wondering if we can encode the slice and dataset ids directly in the URL path. I.e., the explore URL becomes |
SUMMARY
The objective of this PR is to improve Explore handling when a
form_data_key
expires. Previously when a key expired, the user was presented with the following screen:To avoid this situation this PR introduces two new query parameters called
slice_id
anddataset_id
. These parameters are used when processing an Explore request in case theform_data_key
is expired. In this scenario, we recover with the minimal information necessary to present the chart, dealing with both saved and unsaved charts.In the video below I simulate a key expiration by disabling the cache and demonstrate the changes in the workflow:
Screen.Recording.2022-02-08.at.1.42.38.PM.mov
TESTING INSTRUCTIONS
Check the video for instructions.
ADDITIONAL INFORMATION