Skip to content

Run Schema validations after beforeSave #2672 #2677

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

Merged
merged 4 commits into from
Sep 9, 2016
Merged

Run Schema validations after beforeSave #2672 #2677

merged 4 commits into from
Sep 9, 2016

Conversation

flovilmart
Copy link
Contributor

@flovilmart flovilmart commented Sep 9, 2016

This proposal will run the schemaValidation after the beforeSave so rejected beforeSave would have no side effects on the schema (adding a key for example) as described in #2672

Fixes #2672

@codecov-io
Copy link

codecov-io commented Sep 9, 2016

Current coverage is 92.11% (diff: 100%)

Merging #2677 into master will decrease coverage by <.01%

@@             master      #2677   diff @@
==========================================
  Files           101        101          
  Lines         12304      12301     -3   
  Methods        1529       1529          
  Messages          0          0          
  Branches       2022       2022          
==========================================
- Hits          11334      11331     -3   
  Misses          970        970          
  Partials          0          0          

Powered by Codecov. Last update eb1cfcf...2ff4e25

@flovilmart
Copy link
Contributor Author

All is good with mongo, but PG is causing issues

@flovilmart flovilmart added this to the 2.2.19 milestone Sep 9, 2016
@flovilmart flovilmart merged commit 364604e into master Sep 9, 2016
@flovilmart flovilmart deleted the fix-2672 branch September 9, 2016 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants