Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added name validation to query & dashboard #297

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pandu-49-zz
Copy link
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
Copy link
Owner

ankane commented Oct 7, 2020

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
Copy link
Contributor Author

pandu-49-zz commented Dec 29, 2020

@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.

None yet

3 participants