Commit b06cdbd
committed
Address PR review: fix existing-group save, auth, and race
- Frontend sends groupName (not groupId UUID) as targetName so
mode=existing resolves to the right registry directory.
- Remove silent exception swallow in _compute_next_version so
transient ls() errors no longer fall through to v1 and overwrite
existing versions.
- Add auth dependencies to save_model_to_registry to match the
dataset endpoint.
- Eagerly create the destination vN directory as a reservation to
close the TOCTOU race between version computation and the
background copy; return 409 on collision.1 parent e7bc1b8 commit b06cdbd
3 files changed
Lines changed: 30 additions & 11 deletions
File tree
- api/transformerlab/routers/experiment
- src/renderer/components/Experiment/Tasks/JobArtifacts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1529 | 1529 | | |
1530 | 1530 | | |
1531 | 1531 | | |
1532 | | - | |
1533 | | - | |
1534 | | - | |
1535 | | - | |
1536 | | - | |
1537 | | - | |
1538 | | - | |
1539 | | - | |
1540 | | - | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
1541 | 1538 | | |
1542 | 1539 | | |
1543 | 1540 | | |
| |||
1597 | 1594 | | |
1598 | 1595 | | |
1599 | 1596 | | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
1600 | 1607 | | |
1601 | 1608 | | |
1602 | 1609 | | |
| |||
1659 | 1666 | | |
1660 | 1667 | | |
1661 | 1668 | | |
| 1669 | + | |
| 1670 | + | |
1662 | 1671 | | |
1663 | 1672 | | |
1664 | 1673 | | |
| |||
1704 | 1713 | | |
1705 | 1714 | | |
1706 | 1715 | | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
1707 | 1726 | | |
1708 | 1727 | | |
1709 | 1728 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
0 commit comments