gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitbfc4ea4dbfc4ea4dMerge branch 'ap62' into mainTrackerbfc4ea4d/tests/hm56-upsert-order.hl

781 B

  1. // tracker#56: new season episodes must precede the next season, and @ keys must retain row identity.
  2. // Run with bin/hybriel tests/hm56-upsert-order.hl. This is a framework repro, not an app workaround.
  3. import ViewReader from '../plugins/web/view.hl'
  4. reader = new ViewReader()
  5. rows = [{ @id = 's2' label = 'Season 2' }, { @id = 's1' label = 'Season 1' }]
  6. console.log('initial keys: ' + JSON.stringify(reader.listKeys(&rows)))
  7. rows.upsert({ @id = 's2' label = 'Season 2 expanded' })
  8. rows.upsert({ @id = 's2e1' label = 'Season 2 episode 1' })
  9. console.log('expected order: s2,s2e1,s1')
  10. console.log('actual order: ' + JSON.stringify(rows))
  11. rows.remove('s2')
  12. console.log('keys after removing s2: ' + JSON.stringify(reader.listKeys(&rows)))
  13. console.log('expected stable keys: s1,s2e1')

Branches

Latest commits

  • 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
  • b1496147Merge branch 'ap61' into mainTracker
  • 2047955bMerge branch 'u12-gateports' into mainTracker
  • c8da40f3|||PR AP61: re-vendor Hybriel set day61 (source a05af47c, bin a11042e5)Tracker
  • 4e018678|||PR deploy.sh: gates use Tracker's ports 8716-8719 and LC_ALL=C; README: 2 backups keptTracker
  • 0b86324aMerge branch 'records-dp73' into mainTracker
  • 9ce5f59b|||PR records: DP73 live 613ae0e; deploy.sh keeps 2 backupsTracker
  • 613ae0ecMerge branch 'bs3' into mainTracker
  • 1383264b|||PR BS3: keep shared synchronous sorting fastTracker
  • 63e5ba1a|||PR BS3: guard boot imports and share resumable sort buffersTracker
  • 310613f1Merge branch 'records-dp72' into mainTracker
  • 6f7b61ba|||PR records: deploy-swap fix live, Kunibert findingsTracker
  • c41587d2Merge branch 'bs2' into mainTracker
  • 0dd538a6|||PR BS2: finish the boot index in slices so a booting instance keeps answeringTracker
  • 019d5cedMerge branch 'records-1110' into mainTracker
  • f88ae8b9|||PR records: day56 toggle live, reviewTracker
  • b6b3bb4dMerge branch 'ap56e' into mainTracker