Skip to content

Added name validation to query & dashboard#297

Open
pandu-49-zz wants to merge 3 commits into
ankane:masterfrom
clearstackio:name_validator
Open

Added name validation to query & dashboard#297
pandu-49-zz wants to merge 3 commits into
ankane:masterfrom
clearstackio:name_validator

Conversation

@pandu-49-zz

Copy link
Copy Markdown
Contributor

Added presence and uniqueness validation to queries and dashboards. Uniqueness validation score creator_id so that a user can have unique name which makes easy to identify and it avoids confusion.

@ankane

ankane commented Oct 7, 2020

Copy link
Copy Markdown
Owner

Hey @pandu-49, thanks for another PR! I like the idea. It should probably only run the uniqueness validation when the name changes, so existing queries and dashboards that have duplicate names won't be affected. Also, an empty string in the name of query indicates a private query, so it'll need to support that. Let's keep the validations inline for each of the models, even if there's a small bit of duplication.

@pandu-49-zz

pandu-49-zz commented Dec 29, 2020

Copy link
Copy Markdown
Contributor Author

@ankane Thanks for the response. Could you explain me more about private queries? Any example!

Are these are storing into database from any other place?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants