kgabryje opened a new pull request, #32900:
URL: https://github.com/apache/superset/pull/32900
### SUMMARY
In `/v1/dashboard/<pk>/cache_dashboard_screenshot/` endpoint, user could
pass dashboard state as a payload, which was later used to generate a permalink
to be used by Selenium. This PR allows the users to pass a permalink key in the
payload instead of the dashboard state.
### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
<!--- Skip this if not applicable -->
### TESTING INSTRUCTIONS
1. Enable `THUMBNAILS` and `ENABLE_DASHBOARD_SCREENSHOT_ENDPOINTS` feature
flags
2. Generate a permalink key
3. Send a POST request to `/v1/dashboard/<pk>/cache_dashboard_screenshot/`
endpoint with payload `{ permalinkKey: <your permalink key> }`
4. Verify that the screenshot is generated correctly
### ADDITIONAL INFORMATION
<!--- Check any relevant boxes with "x" -->
<!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
- [ ] Has associated issue:
- [ ] Required feature flags:
- [ ] Changes UI
- [ ] Includes DB Migration (follow approval process in
[SIP-59](https://github.com/apache/superset/issues/13351))
- [ ] 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
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]