Commit aedd820
committed
docs(diagram): document restrict is downstream-only; no part->master walk-up
Make explicit (docstring + inline comment) that Diagram.restrict never walks upward from a Part to its Master — that walk is exclusive to cascade delete, which must be compositionally atomic under mutation. restrict is a read-only, seed-at-roots, downstream-only export: a Master is always included with its Parts before its Parts, so no Part FK dangles; use trace for upstream/ancestor closure. No behavior change (the mode==cascade guard already enforced this); the comment guards against accidentally enabling it for restrict later.1 parent 29ce695 commit aedd820
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
666 | 673 | | |
667 | 674 | | |
668 | 675 | | |
| |||
796 | 803 | | |
797 | 804 | | |
798 | 805 | | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
799 | 814 | | |
800 | 815 | | |
801 | 816 | | |
| |||
0 commit comments