Skip to content

feat(ui): report annotation-stream variants the server could not annotate - #713

Merged
bencap merged 1 commit into
feature/bencap/447/gnomad-allele-frequencyfrom
chore/bencap/export-hardening
Aug 12, 2026
Merged

feat(ui): report annotation-stream variants the server could not annotate#713
bencap merged 1 commit into
feature/bencap/447/gnomad-allele-frequencyfrom
chore/bencap/export-hardening

Conversation

@bencap

@bencap bencap commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

UI support to leverage VariantEffect/mavedb-api#838.

The API now reports a variant it cannot annotate as a record carrying an error object instead of letting the exception truncate the body. A download containing those records is complete and worth saving, but treating it as a clean export would misrepresent it.

Tally error records as the stream arrives and raise a warning toast naming the count. Each chunk is decoded to scan its lines and then dropped, so only one chunk plus a partial line is ever live and the body is still retained as bytes. Detection prefilters on a substring and parses only candidates, since these records nest deeply and parsing every one of a large stream is slow.

@coveralls

coveralls commented Aug 11, 2026

Copy link
Copy Markdown

Coverage Status

Coverage is 10.274%chore/bencap/export-hardening into feature/bencap/447/gnomad-allele-frequency. No base build found for feature/bencap/447/gnomad-allele-frequency.

…tate

The API now reports a variant it cannot annotate as a record carrying an error object instead of
letting the exception truncate the body. A download containing those records is complete and worth
saving, but treating it as a clean export would misrepresent it.

Tally error records as the stream arrives and raise a warning toast naming the count. Each chunk is
decoded to scan its lines and then dropped, so only one chunk plus a partial line is ever live and the
body is still retained as bytes -- decoding the whole payload is what previously ran the tab out of
memory. Detection prefilters on a substring and parses only candidates, since these records nest
deeply and parsing every one of a large stream is slow.
@bencap
bencap force-pushed the chore/bencap/export-hardening branch from 07b14c6 to 9d0eba7 Compare August 12, 2026 18:39
@bencap
bencap merged commit 6d80c90 into release-2026.2.4.1 Aug 12, 2026
1 check passed
@bencap
bencap deleted the chore/bencap/export-hardening branch August 12, 2026 19:02
@bencap bencap mentioned this pull request Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Harden VA-Spec annotation exports against shape-dependent failure

2 participants