-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Tighten validation for id fields #7868
Tighten validation for id fields #7868
Conversation
ckan/logic/validators.py
Outdated
entities_map = { | ||
'resource_view': model.ResourceView, | ||
'group': model.Group |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shashigharti I think in this case it's safer to have individual validators for each entity type even if that means many different functions. Relying on the keys to determine the entity type won't always be safe. And it will make overriding specific validators easier for plugins.
So let's go for resource_view_id_does_not_exist
, group_id_does_not_exist
, etc
6bd95eb
to
946a07d
Compare
Closed in favour of #8069 |
Fixes #7604
Proposed fixes:
Features:
Please [X] all the boxes above that apply