codeant-ai-for-open-source[bot] commented on PR #38513:
URL: https://github.com/apache/superset/pull/38513#issuecomment-4053481343
## **Sequence Diagram**
This PR fixes legacy chart downloads by generating a relative explore
endpoint for CSV and XLSX exports, preventing double host URL construction in
postForm. It also extends backend legacy export handling and permission checks
so XLSX exports succeed alongside CSV.
```mermaid
sequenceDiagram
participant User
participant Frontend
participant ExploreUrlBuilder
participant Backend
User->>Frontend: Click Download as CSV or Excel
Frontend->>ExploreUrlBuilder: Build legacy explore URL with relative true
ExploreUrlBuilder-->>Frontend: Return relative explore_json URL with csv
or xlsx flag
Frontend->>Backend: Submit export form to relative URL
Backend->>Backend: Check export permission for csv and xlsx
Backend->>Backend: Generate csv file or xlsx file from query result
Backend-->>User: Return downloadable export file
```
---
*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]