-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Multiple fixes for cascade=True save issues #2615
Open
nickfrev
wants to merge
9
commits into
MongoEngine:master
Choose a base branch
from
nickfrev:save-with-cascade-include-nested
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Multiple fixes for cascade=True save issues #2615
nickfrev
wants to merge
9
commits into
MongoEngine:master
from
nickfrev:save-with-cascade-include-nested
Commits on Dec 14, 2021
-
Save the children documents first to avoid the issue where a parent cannot save due to having new children documents.
Configuration menu - View commit details
-
Copy full SHA for efca40d - Browse repository at this point
Copy the full SHA efca40dView commit details -
Configuration menu - View commit details
-
Copy full SHA for bb6f7d8 - Browse repository at this point
Copy the full SHA bb6f7d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for e9a9dba - Browse repository at this point
Copy the full SHA e9a9dbaView commit details -
Configuration menu - View commit details
-
Copy full SHA for e0cc779 - Browse repository at this point
Copy the full SHA e0cc779View commit details -
Configuration menu - View commit details
-
Copy full SHA for 979e491 - Browse repository at this point
Copy the full SHA 979e491View commit details
Commits on Dec 21, 2021
-
Modularize the cascade save event
- Created a new base field (SaveableBaseField) which allows a field to marked as savable during a cascade save. - Each SaveableBaseField defines a save method which describes how it will deal with a cascade save call this allows lists, dicts, and maps to be effected during a cascade save. - Added an _is_saving flag during Document save to avoid saving a document that is already in the process of being saved. (Caused if there is a circular reference.)
Configuration menu - View commit details
-
Copy full SHA for 7fbdf8b - Browse repository at this point
Copy the full SHA 7fbdf8bView commit details
Commits on Dec 22, 2021
-
Allowed ReferenceField cycles of unsaved documents
- Allows for users to cascade save unsaved documents even if a cycle exists.
Configuration menu - View commit details
-
Copy full SHA for 7672f2c - Browse repository at this point
Copy the full SHA 7672f2cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ba400b7 - Browse repository at this point
Copy the full SHA ba400b7View commit details
Commits on May 7, 2022
-
Configuration menu - View commit details
-
Copy full SHA for e6ef197 - Browse repository at this point
Copy the full SHA e6ef197View commit details
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.