Classify: submitted alerts leave the queue but don't show up in Done
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
Direzione di ricerca
Start by tracing the GET /sequences/classify-queue and GET /sequences/classify-done handlers and the ClassifyAlertPage submit flow described in the issue. Check how alerts with unannotated or legacy-stage lanes are handled, then reproduce the queue/Done mismatch and add coverage for the case. Done means every alert leaving the queue after submission is either visible in Done or submission is blocked with a clear explanation.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happens
In Classify, when I classify an alert and click Submit:
- the alert leaves the queue and the queue total goes down, as expected;
- but the Done list / Done count does not go up accordingly. After classifying many alerts, Done only listed 4 alerts, then 5, without a clear reason.
So some submitted alerts end up in neither the queue nor Done.
Steps to reproduce
- Log in as an annotator, open Classify (no filter).
- Note the queue total and the Done total.
- Classify and submit N alerts.
- Queue total = previous − N. Done total ≠ previous + N (it barely moves).
Observed on 2026-10-23 on the production instance.
Why this looks like a bug (code at main, 40ddd18)
The two lists don't use complementary rules:
- Queue (
GET /sequences/classify-queue): alert has at least one lane inready_to_annotate. - Done (
GET /sequences/classify-done): every lane of the alert has an annotation inseq_annotation_doneorannotated(HAVING count() == sum(lane_done), outer join, so a lane without annotation counts as not done).
Any alert where the submitted lanes are done but at least one other lane is neither ready_to_annotate nor done falls between the two lists. Candidates:
- a lane with no
SequenceAnnotationrow:ClassifyAlertPageshows it locked ("not yet imported") and leaves it out of the submit payload (isLaneLocked), yet submit is allowed. Afterwards the alert has no ready lane (out of the queue) and is not fully done (out of Done); - a lane in the legacy
importedstage; - a lane removed or added while the alert was open (concurrent import).
This is a lead, not a confirmed cause.
Diagnostic query
SELECT s.source_api, s.platform_alert_id,
count(*) AS lanes,
count(sa.id) AS with_annotation,
sum(CASE WHEN sa.processing_stage IN ('seq_annotation_done','annotated') THEN 1 ELSE 0 END) AS done,
sum(CASE WHEN sa.processing_stage = 'ready_to_annotate' THEN 1 ELSE 0 END) AS ready,
array_agg(DISTINCT sa.processing_stage) AS stages
FROM sequences s
LEFT JOIN sequences_annotations sa ON sa.sequence_id = s.id
GROUP BY 1, 2
HAVING sum(CASE WHEN sa.processing_stage IN ('seq_annotation_done','annotated') THEN 1 ELSE 0 END) > 0
AND sum(CASE WHEN sa.processing_stage = 'ready_to_annotate' THEN 1 ELSE 0 END) = 0
AND sum(CASE WHEN sa.processing_stage IN ('seq_annotation_done','annotated') THEN 1 ELSE 0 END) < count(*);
Every row is an alert visible in neither list. with_annotation < lanes points to the missing-annotation lead, and stages shows any other stray stage.
Expected
- An alert that leaves the classify queue after a submit appears in Done: queue decrease = Done increase.
- No alert can be in neither list. Either the submit is blocked while a lane can't be classified, or Done/queue membership covers that case.
Side notes (not the bug, but they make it harder to see)
- Done is sorted by alert date (
recorded_at), not by classification date, so a freshly classified alert is not necessarily on page 1. - Done filters are saved in the browser (
filters-classify-done) and shared across users on the same machine.
- Lingua principale
- TypeScript
- Stelle
- 0
- Fork
- 1
- Merge medio
- 2g 22h
- PR unite (30g)
- 3
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di pyronear/pyro-annotator
-
hackathon-theodo P2-medium T4-26 topic: frontend type: enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
pyronear/pyro-annotator#409 ·
-
type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
pyronear/pyro-annotator#397 ·
-
type: enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
pyronear/pyro-annotator#322 ·
-
feat(scripts): read-only clone mode — add --skip-source-stage-update to import.py (pull-sequences)Forse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
pyronear/pyro-annotator#152 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
pyronear/pyro-annotator#68 · 1 commento ·
Tutte le issue di pyronear/pyro-annotator
Issue simili
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaForse già presa @lijy91 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
libnativeapi/nativeapi#53 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
KilledByAPixel/LittleJS#188 ·
-
enhancement
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 88/100
stfc/goldilocks-agent#156 ·
I maintainer di solito rispondono entro 1 giorno
-
Add: BRIDGE Jazz SDApertastreams:add
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
[BUG] iOS - Share extension crashes when the shared page contains "%s" or "% s" (NSLog format string)Forse già presa @kexhest l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
achorein/expo-share-intent#244 ·