rusackas opened a new pull request, #36762:
URL: https://github.com/apache/superset/pull/36762
## Summary
Adds a new CLI command `superset export-example` that exports a dashboard to
the example format used by `load_examples_from_configs()`.
### Features
- **Multi-dataset support** - auto-detects and creates `datasets/` folder
structure
- **Native filters** - proper ID→UUID remapping for portability
- **Cross-filter configuration** - remaps chart IDs to UUIDs
- **Apache license headers** - added to all generated YAML files
- **Data export** - extracts table data to Parquet format
### Usage
```bash
# Export by dashboard ID
superset export-example -d 123 -n my_example
# Export by slug, limit to 1000 rows
superset export-example -s dashboard-slug -n my_example --sample-rows 1000
# Export metadata only (no data)
superset export-example -d 1 -n my_example --no-export-data
```
### Output Structure
**Single dataset:**
```
my_example/
├── data.parquet
├── dataset.yaml
├── dashboard.yaml
└── charts/
└── *.yaml
```
**Multiple datasets:**
```
my_example/
├── data/
│ ├── table1.parquet
│ └── table2.parquet
├── datasets/
│ ├── table1.yaml
│ └── table2.yaml
├── dashboard.yaml
└── charts/
└── *.yaml
```
## Test plan
- [ ] Run `superset export-example -s births -n test_export` against a
running instance
- [ ] Compare output with existing `superset/examples/birth_names/`
- [ ] Verify round-trip: export → load → re-export produces identical YAML
## Related
This is extracted from #36538 to enable testing independently.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
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]