tracker
All repositories: gitoria
1.8 KB
// HM61: stable ties, repeated physical rows, paging, updates, and the photo snapshot.import { personsTable } from '../lib/shows.hl'import { noteViewRow, finishPeopleView, peoplePage, personTouched, peopleCount, photoQueueStart, photoQueueStep } from '../lib/people.hl'static seed = () => {let i = 0while (i < 63) {id = 'order-person-' + ip = { id = id name = 'Order ' + i urlSegment = 'order-' + i updatedAt = i < 30 ? 0 : (i < 50 ? 100 : 200) tmdbId = 70000000 + i oldId = id }personsTable.put(p)noteViewRow(&p)if (i == 5) { noteViewRow(&p) }i = i + 1}finishPeopleView()return true}static dump = (String label) => {if (peopleCount() != 64) { hlError(label + ': expected 64 entries') }console.log(label + ' count=' + peopleCount())for (page of ['1', '2', '3', '4', '0', '-1', 'bad']) {r = peoplePage(&page)out = []for (t of r.tiles) { out.push(t.href) }if (r.pages != 3 || r.tiles.length != (r.page == 3 ? 16 : 24)) { hlError(label + ': incorrect paging') }if (r.page == 1 && r.tiles[0].href != (label == 'initial' ? '/person/order-62' : '/person/order-new')) { hlError(label + ': incorrect first entry') }console.log(label + ' raw=' + page + ' page=' + r.page + ' pages=' + r.pages + ' ' + JSON.stringify(out))}return true}static run = () => {seed()dump('initial')c = photoQueueStart()personTouched('order-person-5')personTouched('order-person-12')personTouched('order-person-5')p = { id = 'new-order-person' name = 'New' urlSegment = 'order-new' tmdbId = 70009999 oldId = 'new-order-person' }personsTable.put(p)personTouched(&p.id)dump('updated')dump('revisit')while (!photoQueueStep(&c)) { }if (c.out.length != 64 || c.out[0] != 'order-person-62' || c.out[57] != 'order-person-5' || c.out[58] != 'order-person-5') { hlError('photo snapshot changed') }console.log('snapshot ' + JSON.stringify(c.out))return true}run()
Branches
Latest commits
- 40439456Merge hm63-searchtext: tracker#63 packed search textmre
- b7e6b48ePack normalized search text behind numeric offsetsmre
- b35f53e1log: DP62 stale runtime decisionmre
- f9593602log: Apollo deploy rule correctionmre
- 3c95f7f3log: DP62 and HM63 startedmre
- 9c4397c9mission HM63mre
- 8dfe42c8mission DP62mre
- e347fef4Merge rv44: tracker#61 #62 on Hybriel day44mre
- 8274bcf1log: RV44 done, deploy held for the usage windowmre
- 1ef7a3b1RV44: report day44 gates and migration/restart proofsmre
- a5f62f6cRV44: re-vendor Hybriel set day44 (source 222edef7, bin 4f0f263e)mre
- 6159a248Merge branch 'hm62-personindex' into rv44mre
- a8923d93log: RV44 startedmre
- cf28cf77mission RV44mre
- 585782dfLog: tracker#60 Chrome look, STATUS rewrittenmre
- 147d0172conductor: caramboleyo is the user, not owner/creatorApollo
- 21dd0cfblog: #60 live measurement, reviewmre
- 7793cf94HM62b report: person indexes with fixed mpackdbmre
- b4c8d3a9Document tracker#62 fixed-index migration and GC proofmre
- 09d66ed5status: #60 livemre