adimyth opened a new pull request, #29123: URL: https://github.com/apache/superset/pull/29123
### SUMMARY Enables `Export to .Pivoted CSV` option for pivot tables at the dashboard level. This option is already available at the chart level but was missing at the dashboard level. ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF #### Before  #### After  Note: The `Export to .Pivoted CSV` option is now available at the dashboard level. #### Screen Recording https://github.com/apache/superset/assets/26377913/9bb6d0b8-3830-4345-8365-eb4fed116181 ### TESTING INSTRUCTIONS 1. Create a sample dataset. Refer to this [sample dataset](https://gist.github.com/adimyth/fe7ea16dedbd337e6873846f92275edb) that I had created for testing. 2. Create a pivot table from the dataset. Refer attached screenshot above for reference. 3. Add the pivot table to a dashboard. 4. Click on the `Download` option in the dashboard and check if the `Export to .Pivoted CSV` option is available. 5. Click on the `Export to .Pivoted CSV` option and check if the file is downloaded in the `.pivoted.csv` format. 6. Open the downloaded file and check if the data is displayed correctly. For the sample dataset, the data should be displayed as shown below:  The pivot table was created as - 1. `Columns` - `color` 2. `Rows` - `region` 3. `Metrics` - `COUNT(*)` As per this the downloaded data is as expected. ### ADDITIONAL INFORMATION - [x] Has associated issue: - [ ] Required feature flags: - [x] 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 Massive thanks to @theshivthakur for contributing to this. The credit goes to him!! -- 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]
