Commit 98a4fa8
fix: address review — add missing syncReadHooks in Mongo and tenant guards in batch writes
- Mongo adapter: add syncReadHooks() before applyReadFilters() in
updateDocument, updateDocuments, deleteDocument, deleteDocuments, and
increaseDocumentAttribute to ensure tenant/permission hooks are
initialized on update/delete paths
- Documents trait: add shared-table tenant guard to createDocuments()
and upsertDocumentsWithIncrease() matching the existing guard in
createDocument() to prevent writes without a tenant partition
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 582d2cb commit 98a4fa8
2 files changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1425 | 1425 | | |
1426 | 1426 | | |
1427 | 1427 | | |
| 1428 | + | |
| 1429 | + | |
1428 | 1430 | | |
1429 | 1431 | | |
1430 | 1432 | | |
| |||
1462 | 1464 | | |
1463 | 1465 | | |
1464 | 1466 | | |
| 1467 | + | |
| 1468 | + | |
1465 | 1469 | | |
1466 | 1470 | | |
1467 | 1471 | | |
| |||
1601 | 1605 | | |
1602 | 1606 | | |
1603 | 1607 | | |
| 1608 | + | |
| 1609 | + | |
1604 | 1610 | | |
1605 | 1611 | | |
1606 | 1612 | | |
| |||
1627 | 1633 | | |
1628 | 1634 | | |
1629 | 1635 | | |
| 1636 | + | |
| 1637 | + | |
1630 | 1638 | | |
1631 | 1639 | | |
1632 | 1640 | | |
| |||
1656 | 1664 | | |
1657 | 1665 | | |
1658 | 1666 | | |
| 1667 | + | |
| 1668 | + | |
1659 | 1669 | | |
1660 | 1670 | | |
1661 | 1671 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
473 | 481 | | |
474 | 482 | | |
475 | 483 | | |
| |||
1207 | 1215 | | |
1208 | 1216 | | |
1209 | 1217 | | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
1210 | 1230 | | |
1211 | 1231 | | |
1212 | 1232 | | |
| |||
0 commit comments