gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit6f6e57976f6e5797Tickets conductor: STATUS wordingmre6f6e5797/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

  • 6f6e5797Tickets conductor: STATUS wordingmre
  • 957de51fTickets conductor: T36 live, #36 review, #50 donemre
  • bc2fde32Merge branch 'main' into t36-stylemre
  • b7ca093atests: wait for the new row and normalize editor marker spacesmre
  • 41da3525Tickets conductor: flake cause, T36 deploy stepmre
  • 64c477e6Tickets conductor: deploy waits for Arachnemre
  • 467d7286Tickets conductor: T36 done, deploy questionmre
  • fed5ca81ticket_list: remove repeated selected-state coloursmre
  • 8542fc8aTickets conductor: T36 proof reviewedmre
  • 35980936inbox: preserve desktop columns after list styles were scopedmre
  • 2a5b8b91Tickets conductor: T36 cap stop, resumed for proofmre
  • c077a5cbstyles: format Style with nested language rulesmre
  • ccdde2beticket: format Style with nested language rulesmre
  • d083535bticket_list: nest Style rules and bare media queriesmre
  • c24608ebmarkdown: format Style with nested language rulesmre
  • de964b3bsettings: format Style with nested language rulesmre
  • 03c1de05new_project: format Style with nested language rulesmre
  • bd76cfa6connect: format Style with nested language rulesmre
  • 01fad593inbox: format Style with nested language rulesmre
  • 79dc9392you: format Style with nested language rulesmre