dosubot[bot] commented on issue #33964: URL: https://github.com/apache/superset/issues/33964#issuecomment-3015655950
<!-- Answer --> This issue is caused by a recent change where the metric currency field was migrated from a simple string to a nested JSON object with `symbol` and `symbolPosition`, and the backend now strictly validates these fields. The frontend UI for editing metrics in physical datasets does not fully support this new structure—when you edit and save a metric, the currency field can be lost or corrupted, leading to a schema validation error that blocks further saves unless you remove the problematic metric. This is a known gap after the recent "fix: Dataset currency" PR and related UI changes ([source](https://github.com/apache/superset/pull/33682), [source](https://github.com/apache/superset/blob/2e9939baf253e607a54722b1996baaf625e72133/superset/datasets/schemas.py)). There isn't a documented workaround yet, but you can unblock yourself by removing the affected metric and recreating it. Editing the dataset JSON directly via the API (ensuring the currency field is a valid object with both `symbol` and `symbolPosition`) may also work, but the UI will likely continue to drop or corrupt the field until a fix is released. This is not tracked in any existing issue or documentation, but it is a direct result of the recent schema and UI changes. If you need to keep using metric currencies, you may want to hold off on editing metrics in the UI until a fix lands. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/bfff3f9d-3d62-4170-9c85-4ea2156bd323?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/bfff3f9d-3d62-4170-9c85-4ea2156bd323?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/bfff3f9d-3d62-4170-9c85-4ea2156bd323?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/bfff3f9d-3d62-4170-9c85-4ea2156bd323?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/bfff3f9d-3d62-4170-9c85-4ea2156bd323?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/bfff3f9d-3d62-4170-9c85-4ea2156bd323?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/bfff3f9d-3d62-4170-9c85-4ea2156bd323?feedback_type=other)</sup> [](https://go.dosu.dev/discord-bot) [! [Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/33964) -- 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]
