gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitbc3bdecebc3bdecerecords: day38b live, #94 purgedmrebc3bdece/reports/w6-events.md

2.4 KB

  1. # w6 — tickets#26 event stream for programs (branch w6-events, worktree ../tickets-w6) — not deployed, not pushed
  2. - Commit 0e8a41c `w6 (ticket #26): event stream for programs — GET /api/events (Server-Sent Events)` on w6-events (base main bb64d57).
  3. - Tests: tests/events.mjs **48/48** (browser comment + state change by real clicks/keys arrive in 14–21 ms; filters; key = own project only; Last-Event-ID / ?after= resume exactly once; 2-min idle stream: 25 keep-alives, gap ≤ 6 s, still delivers; Python + Hybriel clients); the same through nginx 1.27 with Byrodin's tickets.conf `location /` block **48/48**; gate tests/browser.mjs **315/315**. connect.mjs not run (Chrome ports 8703–8709 hardcoded).
  4. - Endpoint: `curl -N -H "Authorization: Bearer $TOKEN" 'https://tickets.worldapi.org/api/events?project=routger&notMine=1'` (+ `assignee=<name|id|me>`, `after=<id>` or header `Last-Event-ID`). Frames `data: {id,at,project,ticket,ref,number,kind,actor,state,assignee,text≤300,href}` + `id: n`. 401 no/bad token, 400 bad filter, 403 key outside its project.
  5. - Byrodin nginx vhost: nothing to change — `proxy_http_version 1.1` is already there, the app sends `X-Accel-Buffering: no` (no buffering for this response) and a `:` comment every 5 s (< proxy_read_timeout 60 s). Optional: `location = /api/events { …; proxy_buffering off; proxy_read_timeout 1h; proxy_set_header Connection ""; }` (README).
  6. - Missing: no stream ids for history before the deploy (no backfill; ticket GETs have it). "User without access" = only project keys today: reading is public (CONCEPT 1), so every user token sees every project; `stream.hl subscriptionOf` is where private projects would plug in.
  7. - Hybriel issues (for Anton): hl:http1's SSE family (sse_start / sse_send / sse_alive) works but has no .hl wrapper; a static cannot call `__native`, and hl:web's browser build compiles what a component's server face reaches, so a lib class method with `__native` breaks the page ("hlJs … UnsupportedJsConstruct"). Repro: Loreana `/media/STORAGE/projects/tickets.worldapi.org/.scratch/w6/repro-native-browser/` (README inside; control without the line → 200). Workaround: project.hl root passes the 3 calls into `useTransport`. Also: `from` is reserved, `"\n"` is no escape (known).
  8. - Deploy note: the first start creates `storage/mpackdb/stream.*` empty; no migration. This report file is NOT in the branch (it would block the merge as an untracked file).

Branches

Latest commits

  • bc3bdecerecords: day38b live, #94 purgedmre
  • f6c5aa0dMerge main (records)mre
  • e23d42acconnect gate: wait for hydration before clicking Disconnectmre
  • a5d45d00records: D38 cause, GOmre
  • 19eeb938records: D38 gates, two day38b failuresmre
  • f8e42a85Re-vendor tickets to Hybriel set day38b (1e554d7)mre
  • 51645016Merge purge-94 (#94, identity rule)mre
  • 94d6ca2arecords: D38 startedmre
  • 9df09aacmission 029: day38b re-vendor + deploymre
  • d2834f65records: #94 backup planmre
  • 4467d8cbrecords: #94 purge readymre
  • aa2d124eREADME: the #94 purge gatemre
  • e843ff7cOne-time purge of miserit-anthar#94 (#94, identity rule): idempotent step in lib/migrate.hl, fixture gate tests/purge94.mjsmre
  • 506a4efdmission 028: #94, identity rulemre
  • 78c7f48eRefine mpackdb holdmre
  • 3d7d89c8Record mpackdb hold until day38mre
  • f1bf7195#51 done; my subscription idmre
  • 9870b945status: #51 proof greenmre
  • e92173c6log: #51 live push proofmre
  • 72d87041log: Hermes push livemre