Repository navigation
feat(validations) Partial rollback of datatype validation by hiding b… - #4604
Merged
Merged
Conversation
janmeier
force-pushed
the
validationsRollback
branch
from
October 3, 2015 10:15
b674f9f to
1d4535b
Compare
Member
Author
There was a problem hiding this comment.
Validator is more loose about boolean and decimal like strings
Contributor
|
/cc @defunctzombie |
Contributor
There was a problem hiding this comment.
perhaps typeValidation and perhaps allow it on model level aswell?
validation is perhaps slightly generic.
janmeier
force-pushed
the
validationsRollback
branch
from
October 8, 2015 18:39
1d4535b to
e45a2a0
Compare
Member
Author
There was a problem hiding this comment.
Option changed to typeValidation
…ehind a flag. Soften up some validation and restrict them to insert and create
…ate. Refactor bulk update for mysql, sqlite and pg into abstract qg
janmeier
force-pushed
the
validationsRollback
branch
from
October 8, 2015 20:18
e45a2a0 to
d84ae1f
Compare
janmeier
added a commit
that referenced
this pull request
Oct 8, 2015
feat(validations) Partial rollback of datatype validation by hiding b…
|
This could be better documented, it took me a long time to find this secret |
Member
|
@damien-git can you please open a new docs issue about this, and link to this PR in your issue description? Thanks! |
2 of 7 tasks
Member
I did it myself now - #11828 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
…ehind a flag. Soften up some validation and restrict them to insert and create
Adresses #4314
I've hidden the validations behind a flag
validations, which is false by default - which menas they are practically rolled back unless the user manually enables them.Furthermore, I've restricted the validations to only run on insert, bulkinsert and update, not findAll etc. I still believe there would be some merit to validation find query args, but there are also lots of complications, as the issues mentinoed in #4314 show - e.g $in array and $like str%, for uuid etc.
I also refactored bulkInsert into the abstract query generator, since the code was 90% the same for mysql, sqlite and pg