Repository navigation
Commit a770353
committed
fix(plugin-approvals): the batch lock read answers a line of a held master as the single read does
getRecordLocks asked only whether each row was held by a request of its
own; getRecordLock also asks the detail-row lock. Add the batch form
detailRowsHeldByLockingApproval (one FK read plus one lookup per
master_detail edge, never one per row), make the one-row form delegate to
it, and pin single/batch parity for a record held itself, a line of a held
master and an unheld record.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzeiHatzB4rRx1t4Php1 parent 517e415 commit a770353
3 files changed
Lines changed: 116 additions & 16 deletions
File tree
- packages/plugins/plugin-approvals/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
172 | 174 | | |
173 | 175 | | |
174 | 176 | | |
| |||
11303 | 11305 | | |
11304 | 11306 | | |
11305 | 11307 | | |
11306 | | - | |
11307 | | - | |
11308 | | - | |
11309 | | - | |
11310 | | - | |
| 11308 | + | |
| 11309 | + | |
| 11310 | + | |
| 11311 | + | |
| 11312 | + | |
| 11313 | + | |
| 11314 | + | |
| 11315 | + | |
| 11316 | + | |
11311 | 11317 | | |
11312 | 11318 | | |
11313 | 11319 | | |
| |||
11329 | 11335 | | |
11330 | 11336 | | |
11331 | 11337 | | |
11332 | | - | |
| 11338 | + | |
| 11339 | + | |
| 11340 | + | |
| 11341 | + | |
| 11342 | + | |
| 11343 | + | |
11333 | 11344 | | |
11334 | 11345 | | |
11335 | 11346 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
543 | | - | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
544 | 566 | | |
545 | | - | |
| 567 | + | |
546 | 568 | | |
547 | | - | |
| 569 | + | |
| 570 | + | |
548 | 571 | | |
549 | | - | |
| 572 | + | |
550 | 573 | | |
551 | 574 | | |
552 | 575 | | |
553 | | - | |
554 | | - | |
| 576 | + | |
| 577 | + | |
555 | 578 | | |
556 | | - | |
557 | | - | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
558 | 591 | | |
559 | | - | |
| 592 | + | |
560 | 593 | | |
561 | 594 | | |
562 | 595 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
338 | 394 | | |
339 | 395 | | |
340 | 396 | | |
| |||
0 commit comments