Bound PR Queue background reads as submission history grows

Aperta
#3 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github, react, typescript
Ambito
performance

Direzione di ricerca

Start with src/prQueue.ts and src/PullRequestQueue.tsx, especially the submission collection, observer creation, timestamp filtering, and five-minute polling paths. Run the existing request-count tests to establish current fetches, then add coverage for expired merges and closed-unmerged PRs. Done means large histories use a bounded initial-read policy with unknown status, open PRs remain refreshable, and Matrix submission history is retained.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Problem

At c8d3972a244ffaa96ffee86fa1b8e5a656d82905, the queue collects every valid submission from joined rooms (src/prQueue.ts:92–98, src/PullRequestQueue.tsx:243–261) and creates summary observers for the full deduplicated set (src/PullRequestQueue.tsx:316–320). The 12-hour cutoff filters rendered rows, not observers (src/PullRequestQueue.tsx:292–307). Known merges with a valid timestamp do not interval-poll, but expired merges can still be fetched on load or eligible refetch triggers. Closed-unmerged PRs remain in Active and can poll every five minutes when the panel is visible, auto-refresh is enabled by authenticated GitHub access, and the query is not refused (src/PullRequestQueue.tsx:35,50–68,128–146,228–233).

Impact

Historical submissions can increase background GitHub traffic even when they add no visible queue items or are no longer open.

Done when

Request-count tests demonstrate that known expired merges are not automatically re-fetched and that closed-unmerged PRs do not poll on the active five-minute interval. Document and test a bounded initial-read policy for large histories with unknown status. Keep open PRs refreshable and retain Matrix submission history.

Lingua principale
TypeScript
Stelle
0
Fork
0
Merge medio
1m
PR unite (30g)
2

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bketelsen/pr-queue-chat

Tutte le issue di bketelsen/pr-queue-chat

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.