-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
make _validate respect silent option #3884
make _validate respect silent option #3884
Conversation
👍 |
👍, someone else want to weigh in? |
I'm 👍 anytime we can move towards fewer side effects, but aren't we trying to get rid of the |
I'm happy to implement |
The only place I know of where we require
Most cases where we have a I mostly don't like that the name |
That everyone hates... Trigger by default. |
For sure. I think it's the wrong default in that instance. In my idea scenario, |
Both of these were addressed with options being considered in _validate. |
👍 lgtm |
I think there's a reason why For example — you want to set a model's attributes silently, but you do not want to set an invalid model. Probably not worth the breaking change. Edit: The better breaking change would be to kill off "silent" altogether. |
A very good point |
This is useful both for `isValid` - where the validity of a model can easily be gleaned without sounding the invalid alarm - as well as for `set` where silence is respected even when validating.
5397e08
to
7514054
Compare
Yeah, though I think That said, I'd be really happy to kill the silent option if that was not meant tongue in cheek. Lastly, a specific use case that started this was to find a way for |
What is the status of this PR as a candidate for 1.4? I think it is the right step until (hopefully) removing the silent option altogether in 2.0 :fingers-crossed: 😄 |
Closing in favor of #3906. |
This is useful both for
isValid
- where the validity of a model can easily be ascertained without sounding the invalid alarm - as well as forset
where silence is respected even when validating.