Skip to content

Wrap saving operations in a transaction#42

Open
ykiu wants to merge 3 commits intoocadotechnology:masterfrom
ykiu:Reject-dirty-parent
Open

Wrap saving operations in a transaction#42
ykiu wants to merge 3 commits intoocadotechnology:masterfrom
ykiu:Reject-dirty-parent

Conversation

@ykiu
Copy link
Copy Markdown
Contributor

@ykiu ykiu commented Nov 14, 2017

The current implementation seems to break the closure tree when we try to save an instance with dirty parent value (i.e. referencing self or child). This causes db constraint failure, so I suggest we wrap the saving operation in a transaction to detect and reject dirty data.

ykiu added 3 commits November 14, 2017 19:57
Wrap saving operations in a transaction to prevent inconsistency between main model and closure model
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.

1 participant