tracker
All repositories: gitoria
1.4 KB
// tools/count-migrated.hl — mission 070: how many records keep a migrated value the sync replaced (`migratedSummary`, `migratedTitle`,// `migratedGenres`, `migratedHomepage`, `migratedTagline`; seasons/episodes `migratedTitle`/`migratedSummary`) + a few examples.// ONLY on a COPY or the stopped app: TRACKER_STORAGE=$PWD/.scratch/realdata/storage/mpackdb ./bin/hybriel tools/count-migrated.hlimport { showsTable, seasonsTable, episodesTable } from '../lib/shows.hl'c = { summary = 0 title = 0 genres = 0 homepage = 0 tagline = 0 seasonTitle = 0 seasonSummary = 0 episodeTitle = 0 episodeSummary = 0 }ex = []for (s of showsTable.find(null, null)) {if (s.migratedSummary != null) { c.summary = c.summary + 1 }if (s.migratedTitle != null) { c.title = c.title + 1 if (ex.length < 8) { ex.push(s.migratedTitle + ' → ' + s.title) } }if (s.migratedGenres != null) { c.genres = c.genres + 1 }if (s.migratedHomepage != null) { c.homepage = c.homepage + 1 }if (s.migratedTagline != null) { c.tagline = c.tagline + 1 }}for (s of seasonsTable.find(null, null)) {if (s.migratedTitle != null) { c.seasonTitle = c.seasonTitle + 1 }if (s.migratedSummary != null) { c.seasonSummary = c.seasonSummary + 1 }}for (e of episodesTable.find(null, null)) {if (e.migratedTitle != null) { c.episodeTitle = c.episodeTitle + 1 }if (e.migratedSummary != null) { c.episodeSummary = c.episodeSummary + 1 }}console.log('migrated kept: ' + JSON.stringify(c))for (x of ex) { console.log(' title: ' + x) }
Branches
Latest commits
- 6da612fclog: T36A tool defectmre
- 08e55255log: HM56 done, T36A startedmre
- 5fd2ac75status: #36 GOmre
- 0d253b45mission: T36Amre
- 2aa22d23log: #36 GOmre
- 833aee2flog: #50 closed, HM56 startedmre
- ac58c1e5mission: HM56mre
- 58979c0clog: HM54 held for decision, DP65 startedmre
- bb2ebc67log: #64 live, #53 mergedmre
- 27cde42fMerge hm53-dom: tracker#53 inputs bound to membersmre
- 2156cc7flog: HM54 reviewmre
- 9fb82efclog: HM54 gap, fill continuesmre
- b632eb8dlog: HM53 done, HM54 startedmre
- ccb1a263tracker#53: bind editor drafts and use key event focus targetmre
- 3356fcfclog: #52 blocked, HM53 startedmre
- 833dcfc9Merge hm52-search: report only, tracker#52 blocked by framework gapmre
- 73010cc0HM52: report replace-navigation search draft regressionmre
- 1742e92bstatus: DP64 and HM52 runningmre
- 29ad5b58log: #64 merged, DP64 and HM52 startedmre
- fafddbf9Merge hm64-catalog: tracker#64 catalog from packed entriesmre