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
- 85153900AP52: re-vendor Hybriel set day52 (source 77cfca31, bin 0a8ed496)mre
- 7c051eddLog: hybriel#338 answermre
- d049b8b8Log: HM50 live, #52 donemre
- 6d05fa37Log: HM50 Part A mergedmre
- 1c7dab74HM50: the shell reads the framework's online state, netProbe removed (tracker#55)mre
- e8b91697HM50: search address follows the text via navigate(path, replace = true) (tracker#52)mre
- 6fe1896cHM50: re-vendor Hybriel set day50 (source 0ae38232, bin d3ef9d16)mre
- 2f391aa9Log: HM50 startedmre
- 4b59c03dHM50 mission: doc pathmre
- ed526d67HM50 missionmre
- 2f986ca3Log: RT50 passmre
- 1c4715a4RT50 mission: day50 repro retestmre
- 57d1c0dcLog: day50 retest requestmre
- 60b1f419Log: Anton #336 result, wake checkmre
- 919a18aalog: scratchmre
- 6b504440status tidymre
- 9332bd10log: DP70 livemre
- be11daa0DP70 brief fixmre
- 886a7028DP70 brief, HM67 mergedmre
- b41cdd6dMerge hm67-searchids: packed search IDsmre