codeant-ai-for-open-source[bot] commented on PR #36538:
URL: https://github.com/apache/superset/pull/36538#issuecomment-3775519267
## **Sequence Diagram**
Shows the new "Export as Example" flow added in this PR where the frontend
requests an example bundle and the backend builds a ZIP containing Parquet data
and YAML configs for dashboard, datasets, and charts, then the browser
downloads it.
```mermaid
sequenceDiagram
participant User
participant Frontend as Browser/DownloadMenu
participant API as Superset API
participant ExportCmd as ExportExampleCommand
participant Bundle as ZIP (data.parquet + *.yaml)
User->>Frontend: Click "Export as Example"
Frontend->>API: GET /api/v1/dashboard/{id}/export_as_example/ (Accept:
application/zip)
API->>ExportCmd: Run export (gather dashboard, charts, datasets;
export_dataset_yaml + export_dataset_data -> Parquet)
ExportCmd-->>Bundle: Assemble files (dashboard.yaml, dataset.yaml,
charts/, data.parquet) and stream ZIP
API-->>Frontend: 200 OK (application/zip stream + Content-Disposition)
Frontend->>Frontend: Create blob, trigger download, show success toast
Frontend-->>User: Browser downloads ZIP (example bundle)
```
---
*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]