Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 (followup) #8069
Tighten validation for id fields (followup) #8069
Changes from 32 commits
0ff9e93
482b796
19937f0
7669403
df1e66f
fd771ce
1b580c3
3308546
7d6c4de
f08e4d8
946a07d
a230be1
4f85b61
0c9daaa
dcf84e8
393e17f
e3d6200
0ed63cc
bb8e533
9fbd0b9
18c19f5
09c00c9
6af7cd0
ea1d824
c48bc71
22e4cb5
8922684
24da1f1
3eca61b
5868a7b
920a8df
dc6bbad
d9968bb
48cde8e
0c7daf9
3758551
a7e16b1
bd720fd
517a8ee
dbbf0fa
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Not only deprecated, these won't be called at all any more even as a fall-back, right?
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.
(looks like ckanext-scheming uses the
validate
method ofIGroupForm
it won't be affected by the change)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.
Correct. I thought of leaving them for a version in case some plugin was using them but that's seems unlikely and maybe we can just remove them?
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.
The polite thing would be to have a version released with the methods deprecated and working as a fall-back then remove them next release.
Marking them deprecated but actually broken doesn't make sense. Better to remove them and raise an error when a plugin tries to use them.
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.
Just to make sure @wardi , you are suggesting that in the actions, if an
IGroupForm
does not have one of the new methods (egIGroupForm.create_group_schema()
it should try to call the old equivalent, egIGroupForm.form_to_db_schema()
right?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.
yes, with the deprecation warning and remove it the next release
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.
@wardi see bd720fd