Repository navigation
Commit eb9dafd
- Migration m20260923_000200_canonicalize_import_repo_paths rewrites every
git_repo row whose repo_path is not canonical (pre-TP-08 double or
trailing slashes, `.` segments) to the canonical path, keeping repo_id.
Rows are judged on their own path, independent of monorepo.import_dir.
- One transaction; LOCK TABLE git_repo IN SHARE ROW EXCLUSIVE MODE before
the scan so a concurrent insert is either seen or waits.
- A canonical path already taken by another row (split identity) leaves
the alias untouched; uncanonicalizable paths are left too. Both are
counted, with WARNs carrying only repo_id (and the canonical path);
startup logs one summary line.
- docs/deploy-trunk.md 9.2: the migration, the counts, and handling of
collisions and invalid rows (DEFER-FU-10).
- Plan: ADR-FU-10 item 3 child check excludes rows whose canonical form
equals the target; FU-16/FU-17 carry the test obligation.
Plan: docs/plan/plan-20260923.md (FU-15).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Eli Ma <eli@patch.sh>
1 parent 3f9553a commit eb9dafd
7 files changed
Lines changed: 690 additions & 15 deletions
File tree
- docs
- plan
- src/jupiter/migration
- tests
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
278 | 324 | | |
279 | 325 | | |
280 | 326 | | |
| |||
0 commit comments