Skip to content

fix(worker): clear stale uniprot_id_from_mapped_metadata on remap - #849

Open
davereinhart wants to merge 1 commit into
release-2026.3.0from
fix/davereinhart/794/clear-stale-uniprot-id
Open

fix(worker): clear stale uniprot_id_from_mapped_metadata on remap#849
davereinhart wants to merge 1 commit into
release-2026.3.0from
fix/davereinhart/794/clear-stale-uniprot-id

Conversation

@davereinhart

Copy link
Copy Markdown
Collaborator

The UniProt polling job only writes target_gene.uniprot_id_from_mapped_metadata on a successful lookup. When a remap produced no UniProt ID (no results, ambiguous results, or the target gene was not found), the value from the previous mapping run survived and became mismatched against the freshly written pre/post mapped metadata — a state unreachable for a new target_gene record.

Clear the field alongside the other mapped metadata writes in map_variants_for_score_set, so it is reset before the downstream UniProt mapping jobs run.

Closes #794

The UniProt polling job only writes target_gene.uniprot_id_from_mapped_metadata
on a successful lookup. When a remap produced no UniProt ID (no results,
ambiguous results, or the target gene was not found), the value from the
previous mapping run survived and became mismatched against the freshly
written pre/post mapped metadata — a state unreachable for a new target_gene
record.

Clear the field alongside the other mapped metadata writes in
map_variants_for_score_set, so it is reset before the downstream UniProt
mapping jobs run.

Closes #794
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 32165591796

Warning

No base build found for commit b1c84da on release-2026.3.0.
Coverage changes can't be calculated without a base build.
If a base build is processing, this comment will update automatically when it completes.

Coverage: 89.001%

Details

  • Patch coverage: 1 of 1 lines across 1 file are fully covered (100%).

Uncovered Changes

No uncovered changes found.

Coverage Regressions

Requires a base build to compare against. How to fix this →


Coverage Stats

Coverage Status
Relevant Lines: 14338
Covered Lines: 12761
Line Coverage: 89.0%
Coverage Strength: 0.89 hits per line

💛 - Coveralls

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.

Clear existing uniprot_id_from_mapped_metadata value from target_gene prior to updating

2 participants