rabumaabraham opened a new pull request, #40683:
URL: https://github.com/apache/superset/pull/40683
### SUMMARY
This PR fixes a bug where the "View as Table" modal displays raw JSON
strings (e.g., `{"label": "..."}`) and raw suffixes (e.g., `__contribution`) in
column headers instead of clean, human-readable labels.
This builds directly on top of the previous autonomous attempt to resolve
Issue #17, ensuring data row values populate correctly without breaking AG Grid
field matching while fully cleaning up the header names.
### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
#### Before (Raw JSON)
<img width="1918" height="1012" alt="34"
src="https://github.com/user-attachments/assets/4e06d21b-e280-4568-8f2e-1b0b6da5e528"
/>
#### After (Clean Headers)
<img width="1907" height="1042" alt="45"
src="https://github.com/user-attachments/assets/9160c480-7b4b-4804-bc39-51711abfecc4"
/>
### TESTING INSTRUCTIONS
1. Open a dashboard containing a Pie Chart that uses custom metric labels.
2. Click the three dots (`...`) on the chart and select **View as table**.
3. Verify that the table headers show clean names and that the row data
populates numbers correctly instead of saying `undefined`.
### ADDITIONAL INFORMATION
- [x] Has associated issue: Fixes #17
- [ ] 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
--
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]