Skip to content

fix: filter clinical control options to current mapped variants only#701

Open
bencap wants to merge 1 commit intorelease-2026.1.3from
bugfix/bencap/700/clinical-control-options-generated-incorrectly
Open

fix: filter clinical control options to current mapped variants only#701
bencap wants to merge 1 commit intorelease-2026.1.3from
bugfix/bencap/700/clinical-control-options-generated-incorrectly

Conversation

@bencap
Copy link
Copy Markdown
Collaborator

@bencap bencap commented Apr 7, 2026

The /score-sets/{urn}/clinical-controls/options endpoint was returning options derived from all mapped variants, including stale (non-current) ones. The sibling /clinical-controls endpoint already applied MappedVariant.current.is_(True); this endpoint simply missed it.

Adds a regression test that marks all mapped variants as non-current and asserts the options endpoint returns 404, directly proving the filter is enforced.

The /score-sets/{urn}/clinical-controls/options endpoint was returning
options derived from all mapped variants, including stale (non-current)
ones. The sibling /clinical-controls endpoint already applied
MappedVariant.current.is_(True); this endpoint simply missed it.

Adds a regression test that marks all mapped variants as non-current
and asserts the options endpoint returns 404, directly proving the
filter is enforced.
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.

Histogram clinical control options list generated incorrectly for mapped variants

1 participant