codeant-ai-for-open-source[bot] commented on PR #38513:
URL: https://github.com/apache/superset/pull/38513#issuecomment-4051282360
## **Sequence Diagram**
This PR fixes legacy chart exports by building relative explore URLs before
submitting the export request, preventing double-host request failures. It also
adds legacy xlsx handling on the backend with shared export permission checks
for both csv and xlsx.
```mermaid
sequenceDiagram
participant User
participant Frontend
participant URLBuilder
participant Backend
User->>Frontend: Click Download as CSV or Excel
Frontend->>URLBuilder: Build legacy export URL with relative true
URLBuilder-->>Frontend: Return relative explore_json URL with csv or
xlsx flag
Frontend->>Backend: Submit postForm export request
Backend->>Backend: Validate export permission and route csv or xlsx
response
Backend-->>User: Return downloadable file response
```
---
*Generated by [CodeAnt AI](https://codeant.ai)*
--
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]