cezudas opened a new pull request, #37806: URL: https://github.com/apache/superset/pull/37806
### SUMMARY The auto-generated uuid was missing from the POST creation response for datasets, charts, and dashboards, making it impossible for API consumers to reference newly created resources by UUID without a subsequent GET request. The database endpoint already returns uuid in its POST response (via `item["uuid"] = new_model.uuid`). This change brings the other three resource types in line with that precedent by adding `uuid=new_model.uuid` to the `self.response()` call in each endpoint. This is needed for programmatic workflows such as cross-environment dashboard imports that use `dataset_mapping` and `database_mapping` parameters, which require UUIDs to map resources across instances. Closes #15456 (Issue is was marked as closed due to inactivity) ### TESTING INSTRUCTIONS For each of these following endpoints ensure uuid field exist in the response: - POST /api/v1/dataset/ -- Create a dataset <img width="923" height="567" alt="Screenshot 2026-02-09 at 16 57 44" src="https://github.com/user-attachments/assets/598ba024-c0d2-4b40-b1e9-3bfc627053ca" /> - POST /api/v1/chart/ -- Create a chart <img width="935" height="615" alt="Screenshot 2026-02-09 at 16 58 05" src="https://github.com/user-attachments/assets/9aecdb74-9a1d-46df-97a1-80bc55f32b58" /> - POST /api/v1/dashboard/ -- Create a dashboard <img width="914" height="545" alt="Screenshot 2026-02-09 at 16 58 51" src="https://github.com/user-attachments/assets/3659e316-85aa-443e-91e4-00cd838591f9" /> ### ADDITIONAL INFORMATION <!--- Check any relevant boxes with "x" --> <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue --> - [ ] Has associated issue: - [ ] Required feature flags: - [ ] 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]
