lightdash icon indicating copy to clipboard operation
lightdash copied to clipboard

I should not be able to deploy a model with duplicate metric names

Open IrakliJani opened this issue 1 year ago • 1 comments

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

IrakliJani avatar Oct 17 '24 15:10 IrakliJani

This issue was mentioned by a user in slack: https://lightdash.slack.com/archives/C07HVETNTM0/p1729176381597229?thread_ts=1729176381.597229&cid=C07HVETNTM0

lightdash-bot avatar Oct 17 '24 15:10 lightdash-bot