gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commita6ddccd2a6ddccd2re-vendor Hybriel 6f8a0689 (int 6–11: streaming cursors, #203 index heal + close() fix, fd403 listDir/cursor fds, hl:time browser side, hl:web batches 5+6)mrea6ddccd2/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

  • a6ddccd2re-vendor Hybriel 6f8a0689 (int 6–11: streaming cursors, #203 index heal + close() fix, fd403 listDir/cursor fds, hl:time browser side, hl:web batches 5+6)mre
  • 81e036b7docker-compose: nofile 65536 (Hybriel int 6+ boot opened >1024 files in the tracker)mre
  • 5d8d2cf6deploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre
  • 58e8c02cmission 024: report, LOG, STATUS, e2e fixmre
  • 50778073tests/e2e-route-marker.mjs: first paint marker, comments post/edit redrawmre
  • c5203298mission 024: MainMenu marks the page from the route (layouts 0bcc629 main-menu.hl); browser-side marker removed; gate: marker in the server HTMLmre
  • b1a4c270re-vendor Hybriel master f9614007: bin/ (git-ignored) and plugins wholemre
  • 866397a0mission 023: theme from layouts 76f99f6 (current marker, menu count badge), components from 3794c59 (MdEditor keys); Inbox count as badge, current by address; gates and E2E; reportmre
  • 7ed2e5e5deploy.sh: a gate without a 'passed,' line (check-theme) no longer ends the script silently (grep under pipefail), as gitoria/layoutsmre
  • bf9064a3mission 022: tickets on the layouts theme (step 1): shell, styles, gates, audit, E2E; reportmre
  • f3d61711mission 022 WIP: tickets on the layouts theme (dbe3de7): AppHeader/MainMenu/UserMenu/Sidebar/ContentFirst shell, styles reduced to the app's own, check-theme in the gates, 390 audit + real-Chrome walk scriptmre
  • 31cabfccmission 021: E2E script, report, LOG, STATUSmre
  • 6aea8683editor look: .empty rule only for p.empty, files off where tickets has no upload, state note one line, events test scrolls the editor into view; synced md-editor (components d702d76+6f27ad3); gate 377/0, events 52/0mre
  • dce6ffa6Merge branch 'w28-deflake'mre
  • 536092a1tickets (mission 019): de-flake the m016 comment clicks (B: unliked) — calmClick waits until the button stops moving; test only, no app changemre
  • 9c5fd42amission 020: attachments E2E proof (lisbeth Chrome, real-data copy), reportmre
  • 1206404fREADME attachments, report 018, LOG/STATUSmre
  • 3d9e7f3ctests: m017 gate fixes (list count, waits before delete clicks); gate 373/0mre
  • dd41d5bcre-sync components 15be2ac; mission 018mre
  • 420ad1bbtickets (mission 017 WIP, tickets#27): comment attachments — lib/attachments.hl (storage/attachments, limits, type by content, members-only GET /api/attachments/:id, delete drops, edit keeps), multipart POST …/comments (lib/multipart.hl), Respond block in FilesUpload (blocks verbatim from components w27c 1f8d79d), gate m017 checks written (not yet run); report, LOG, STATUSmre