tracker
All repositories: gitoria
4.0 KB
// tests/seed-adult.hl — GATE FIXTURE for mission 054 (adult titles): written by tests/browser.mjs into the gate's storage// while the app is STOPPED (one process per storage, hybriel#21), late in the gate. Self-assigned ids, one put() each.//// Adult Gate Movie adult = true (known), followed by alice (TRACKER_SEED_USER) → only on her /my/movies + its page// Flagless Gate Movie adult unknown, TMDB (fake 1012) says not adult → listed once the backfill asked// Flagless Adult Movie adult unknown, TMDB (fake 1013) says adult → never listed// Flagless Gate Series adult unknown, TMDB (fake tv 1014) not adult → on /shows once asked (a released episode)// Backfill Movie 01…10 adult unknown, TMDB 1101…1110 not adult → the backfill's bulk (resume + latency checks)// Gone Gate Movie adult unknown, TMDB answers 404 (1120) → marked, stays hidden, never asked again// All carry `tmdbSync` (tracker#33): they stand for synced titles — the backfill's subject, not the details repair's.import { MPackDB } from 'hl:mpackdb'import { env } from 'hl:proc'import { now } from 'hl:time'storageDir = env('TRACKER_STORAGE')if (storageDir == null || !storageDir.startsWith('/')) { hlError('set TRACKER_STORAGE, absolute') }userId = env('TRACKER_SEED_USER')showsTable = new MPackDB(file = storageDir + '/shows.db', primaryKey = '@id', indexes = ['!oldId'])seasonsTable = new MPackDB(file = storageDir + '/seasons.db', primaryKey = '@id', indexes = ['!oldId'])episodesTable = new MPackDB(file = storageDir + '/episodes.db', primaryKey = '@id', indexes = ['!oldId'])followsTable = new MPackDB(file = storageDir + '/follows.db', primaryKey = '@id', indexes = ['!oldId'])movie = (key, title, tmdbId, release, adult, slug) => {return { id = 'ad0000000000' + key title = title summary = null tmdbSummary = null tmdbId = tmdbIdlanguage = 'en' type = 'movie' release = release year = toNumber(release.slice(0, 4)) image = null urlSegment = slugepisodesCount = null homepage = null imdbId = null seasonsCount = null status = null tagline = nulltvdbId = null tvmzId = null genres = [] cast = [] seasons = [] oldId = 'ad' + key adult = adult tmdbSync = 1 }}showsTable.put(movie('mvad', 'Adult Gate Movie', 1011, '2001-02-01', true, 'adult-gate-movie'))showsTable.put(movie('mvfl', 'Flagless Gate Movie', 1012, '2001-02-02', null, 'flagless-gate-movie'))showsTable.put(movie('mvfa', 'Flagless Adult Movie', 1013, '2001-02-03', null, 'flagless-adult-movie'))let i = 1while (i <= 10) {let nn = i < 10 ? '0' + i : '' + ishowsTable.put(movie('bf' + nn, 'Backfill Movie ' + nn, 1100 + i, '1990-01-' + nn, null, 'backfill-movie-' + nn))i = i + 1}showsTable.put(movie('mvgo', 'Gone Gate Movie', 1120, '2001-02-04', null, 'gone-gate-movie'))seasonsTable.put({ id = 'ad00000000sefl' seasonNumber = 1 title = null release = null summary = null show = 'ad0000000000srfl' episodes = ['ad00000000epfl'] oldId = 'adsefl' })episodesTable.put({ id = 'ad00000000epfl' episodeNumber = 1 seasonNumber = 1 title = 'Flagless Pilot' summary = null release = '2001-03-03' show = 'ad0000000000srfl' season = 'ad00000000sefl' oldId = 'adepfl' })showsTable.put({ id = 'ad0000000000srfl' title = 'Flagless Gate Series' summary = null tmdbSummary = null tmdbId = 1014language = 'en' type = 'series' release = '2001-03-03' year = 2001 image = null urlSegment = 'flagless-gate-series'episodesCount = 1 homepage = null imdbId = null seasonsCount = 1 status = 'Ended' tagline = nulltvdbId = null tvmzId = null genres = [] cast = [] seasons = ['ad00000000sefl'] oldId = 'adsrfl' adult = null tmdbSync = 1 })if (userId != null && userId != '') {followsTable.put({ id = 'adf00000000000f1' show = 'ad0000000000mvad' user = userId at = now() oldId = 'gate-follow-adult' })}showsTable.persist()seasonsTable.persist()episodesTable.persist()followsTable.persist()console.log('seed-adult: 15 titles (1 adult, 14 unknown)' + (userId != null && userId != '' ? ', ' + userId + ' follows Adult Gate Movie' : ''))
Branches
Latest commits
- 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
- b9c7c3c8Merge branch 'records-dp74' into mainTracker
- 85cfb4ae|||PR records: AP61 day61, DP74 liveTracker