gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Branchk40-lists9af8e780|||PR Use keyed list mutations for live ticket updatesmrek40-lists/tests/keyed-lists.mjs

883 B

  1. // Guard against the copying loops from tickets#43. Runtime ordering and pushes
  2. // are exercised by browser.mjs and events.mjs.
  3. import { readFileSync } from 'node:fs';
  4. import assert from 'node:assert/strict';
  5. import { execFileSync } from 'node:child_process';
  6. for (const name of ['ticket', 'ticket_list', 'inbox']) {
  7. const file = `components/${name}.hl`;
  8. const s = process.env.KEYED_OLD ? execFileSync('git', ['show', 'origin/main:'+file], {encoding:'utf8'}) : readFileSync(file,'utf8');
  9. const body = name === 'ticket' ? s.slice(s.indexOf('on client ticketEvent('),s.indexOf('// relations changed')) : s.slice(s.indexOf('place ='),s.indexOf('on client ticketCreated'));
  10. assert.doesNotMatch(body, /for\s*\([^)]*of (events|rows|pending|review)\)/, file+' must use keyed mutations rather than copying rows');
  11. }
  12. console.log('PASS: all three live list handlers avoid copying loops');

Branches

Latest commits

  • 9af8e780|||PR Use keyed list mutations for live ticket updatesmre
  • 610d8e8aMerge branch 'records-t39' into mainTickets
  • 32bcdf24|||PR records: GO P39 K40mre
  • 4123c6d1Merge branch 'records-t38' into mainTickets
  • cd3641a1|||PR records: day72 deploy live, tickets closedmre
  • 7d44d852Merge branch 'records-t37' into mainTickets
  • 926f7061|||PR records: merges, D36 deploymre
  • bf58534eMerge branch 'l33-final' into mainTickets
  • 759a9ac3|||PR thin login (tickets#46, #45): merge main, route entry cleanupmre
  • 239436d8Merge remote-tracking branch 'origin/main' into l33-finalmre
  • 5822cb3aMerge branch 'o34-clean' into mainTickets
  • 0870653c|||PR offline note from __hlOnline, no polling (tickets#41)mre
  • 14cf96b4Merge branch 'records-t36' into mainTickets
  • 07749fa1|||PR records: day72 + #40 mergedmre
  • ecd7e226|||PR Consolidate login and move handler logic into topic libraries (partial)mre
  • 6dea1c60Merge branch 'r35-day72' into mainTickets
  • 7bcfdc22|||PR drop worker edits to conductor recordsmre
  • 2617b6ee|||PR dialogs: host flag cleared on close, dialog gate (tickets#40)mre
  • 6e701371|||PR record partial day72 dialog validationmre
  • b9fb9a91|||PR bind ticket dialog visibility to member flagsmre