Commit e58987d
committed
Fixes to sync()
* Save/sync executor attempted to commit changes to pydantic objects
even when there was an exception inside its context manager
* Sync was writing changes to pydantic objects while the transaction was
still open
* Fix sync() to update single links properly and handle the case when a
linked object is replaced with a different one
* Drop BlockingClient.__save_debug__ method, it's quite outdated and
must be broken1 parent 1147606 commit e58987d
File tree
5 files changed
+227
-246
lines changed- gel
- _internal
- _qbmodel/_abstract
- tests
5 files changed
+227
-246
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
750 | 750 | | |
751 | 751 | | |
752 | 752 | | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | 753 | | |
757 | 754 | | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
758 | 760 | | |
759 | 761 | | |
760 | 762 | | |
| |||
771 | 773 | | |
772 | 774 | | |
773 | 775 | | |
| 776 | + | |
| 777 | + | |
774 | 778 | | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
| 779 | + | |
781 | 780 | | |
782 | | - | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
783 | 788 | | |
784 | 789 | | |
785 | 790 | | |
| |||
0 commit comments