gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit2f391aa92f391aa9Log: HM50 startedmre2f391aa9/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

  • 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
  • 385904eaReport HM67 matched heap measurements and gate proofmre
  • e5c9b659Pack retained search IDs into UTF-8 bytesmre
  • 62a5f6c7HM67 brief, HM66 mergedmre
  • b32b8440Merge hm66-catalogindex: packed catalog indexmre
  • 2db0f7adReport HM66 heap measurements and validationmre
  • 6ce15623Pack catalog lists and membership maps in UTF-8 bytesmre
  • 71134e21HM66 briefmre