-
Notifications
You must be signed in to change notification settings - Fork 492
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
NAS-132813 / 25.04 / Convert pool.snapshottask
to new API
#15164
Conversation
pool.snapshottask
to new APIpool.snapshottask
to new API
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.
Also I don't understand why do you want to use that validator module (it'll be eventually removed) and change it so massively. Let's just re-implement that field type like we did with LocalUsername
, LocalGID
. Also, let's put it into base types since other classes will also use it.
I was under the impression that we wanted to bring our old validators into the new API so I'll correct this. |
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.
Thank you!
This PR has been merged and conversations have been locked. |
When using
AfterValidator
, the passed callable's return value is assigned to the field. For this reason, our validators should return the value that is passed to them or some modified version of the value. This change should not cause any issues since we have not been using the validators' return values until now.Tests: http://jenkins.eng.ixsystems.net:8080/job/tests/job/api_tests/2157/