Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Visualizations with duplicated names can't be published #385

Open
dcabo opened this issue Feb 28, 2023 · 1 comment
Open

Visualizations with duplicated names can't be published #385

dcabo opened this issue Feb 28, 2023 · 1 comment

Comments

@dcabo
Copy link
Member

dcabo commented Feb 28, 2023

We got a support issue today, the user couldn't publish her visualization. I tried from the console, it rolled back when calling save on the Visualization object. After renaming it, saving worked.

Looking at the code very briefly, it seems the name must be unique for a given user's visualizations. But it wasn't a problem when they were unpublished. Why didn't validates_uniqueness_of API complain when the object was created? 🤔

@dcabo
Copy link
Member Author

dcabo commented Feb 28, 2023

How did she manage to create visualizations with the same name?! Because I tried and I couldn't: duplicating a viz adds a "Copy of" to the title, and if I try to rename it afterwards, the change just gets ignored. And the app doesn't let you create a visualization with a name that already exists. 🤷‍♂️

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant