tracker
All repositories: gitoria
1.8 KB
// tracker#62: native lookups preserve map winners and creation conflict suffixes.import { personsTable, showsTable } from '../lib/shows.hl'import { personBySlug, personIdByTmdb, castPersonId, guestPersonId } from '../lib/people.hl'static check = (Boolean ok, String message) => { if (!ok) { hlError(message) } }static run = () => {for (p of [{ id = 'index-first' oldId = 'index-first' name = 'Same Name' urlSegment = 'Same-Name' tmdbId = 87650001 }{ id = 'index-last' oldId = 'index-last' name = 'Same Name' urlSegment = 'Same-Name' tmdbId = 87650001 }{ id = 'index-suffix' oldId = 'index-suffix' name = 'Same Name' urlSegment = 'Same-Name-2' tmdbId = 87650002 }]) { check(personsTable.put(p) != null, 'seed') }check(personBySlug('Same-Name').id == 'index-last', 'last slug winner')check(personIdByTmdb(87650001) == 'index-last', 'last TMDB winner')check(personIdByTmdb('87650001') == 'index-last', 'TMDB string coercion')check(personBySlug('missing') == null && personBySlug('') == null && personBySlug(null) == null, 'absent slug')check(personIdByTmdb(87659999) == null, 'absent TMDB')c = { tmdbId = 87650003 name = 'Same Name' character = 'Role' }id = castPersonId(&c, null)check(id != null && personBySlug('Same-Name-3').id == id, 'conflict suffix')check(castPersonId(&c, null) == id, 'repeat cast import')check(guestPersonId(87650003, null).created == false, 'known guest')s = { id = 'index-show' oldId = 'index-show' cast = [{ tmdbId = 87650004 actor = 'Same Name' character = 'Guest' }] }check(showsTable.put(s) != null, 'guest show')g = guestPersonId(87650004, 'index-show')check(g.created && personBySlug('Same-Name-4').id == g.id, 'new guest')check(guestPersonId(87650004, 'index-show').created == false, 'guest revisit')check(personIdByTmdb(87650004) == g.id, 'new guest TMDB lookup')personsTable.persist()console.log('person-index: passed')return true}run()
Branches
Latest commits
- d2e6d26bMerge branch 'records-park55' into mainTracker
- f567f025|||PR records: park #55, no Claude workers ruleTracker
- c21aff6bMerge branch 'records-hm55c' into mainTracker
- 9ba258d3|||PR records: HM55b resultTracker
- 64f2d300Merge branch 'records-hm55b2' into mainTracker
- ae3b80dc|||PR records: HM55b briefTracker
- 7ef3cb3bMerge branch 'records-st55' into mainTracker
- fec2e080|||PR records: STATUS HM55Tracker
- 8e174918Merge branch 'records-hm55b' into mainTracker
- b1ecee57|||PR records: HM55 stateTracker
- 28eab08cMerge branch 'records-hm55' into mainTracker
- d3edaa05|||PR records: HM55 start, PROCEDURES.mdTracker
- 3059f86cMerge branch 'records-design-rule' into mainTracker
- 421a4809|||PR records: his-design rule (Apollo 2026-11-13)Tracker
- d1390692Merge branch 'records-dp75b' into mainTracker
- a4d1a7d2|||PR records: later steps checked, branch auditTracker
- e070e16fMerge branch 'records-dp75' into mainTracker
- 642b4fa8|||PR records: DP75 day62 live, AP62 briefTracker
- bfc4ea4dMerge branch 'ap62' into mainTracker
- 2c95ac46|||PR AP62: re-vendor Hybriel set day62 (source 70341ad2, bin a54f5f08)Tracker