lightdash
lightdash copied to clipboard
I should not be able to deploy a model with duplicate metric names
Description
If user copies and pastes a metric definition from one field to other fields without renaming the metrics, the first metric definition takes precedence. The validator does not flag the duplicate metric names, causing only the first defined metric to be displayed in the UI.
Either the model should not be deployable with duplicate metric names, or the validator should catch this issue before deployment (or both!)
Steps to Reproduce the Bug or Issue
version
No response
Cloud or self-hosting
None
This issue was mentioned by a user in slack: https://lightdash.slack.com/archives/C07HVETNTM0/p1729176381597229?thread_ts=1729176381.597229&cid=C07HVETNTM0