fix(assets): reactivate merge targets that FMP reports as trading #91

Merged
gertjan merged 1 commit from fix/reactivate-merge-target into main 2026-07-17 11:56:13 +00:00
Owner

The rename backfill exposed a dead-series failure mode: a merge target
that had earlier been deactivated for staleness (its bars were stranded
under the old symbol) stayed inactive after the merge, so batch EOD
ingest dropped its rows under BOTH symbols and the series silently died
(e.g. ECHO/EchoStar: no bars since 2026-06-29 despite actively trading;
12 of 17 inactive merge targets affected in production).

The merge path now checks an inactive target's FMP profile and marks it
active when isActivelyTrading is set; genuinely dead listings (profile
missing or not trading) stay inactive. Idempotent — re-running the
backfill repairs the already-merged pairs.

Adds AssetRepository.mark_active as the symmetric twin of mark_inactive.

Co-Authored-By: Claude Fable 5 noreply@anthropic.com

The rename backfill exposed a dead-series failure mode: a merge target that had earlier been deactivated for staleness (its bars were stranded under the old symbol) stayed inactive after the merge, so batch EOD ingest dropped its rows under BOTH symbols and the series silently died (e.g. ECHO/EchoStar: no bars since 2026-06-29 despite actively trading; 12 of 17 inactive merge targets affected in production). The merge path now checks an inactive target's FMP profile and marks it active when isActivelyTrading is set; genuinely dead listings (profile missing or not trading) stay inactive. Idempotent — re-running the backfill repairs the already-merged pairs. Adds AssetRepository.mark_active as the symmetric twin of mark_inactive. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
fix(assets): reactivate merge targets that FMP reports as trading
All checks were successful
Deploy / check (pull_request) Successful in 3m33s
Deploy / deploy (pull_request) Has been skipped
81b0b91159
The rename backfill exposed a dead-series failure mode: a merge target
that had earlier been deactivated for staleness (its bars were stranded
under the old symbol) stayed inactive after the merge, so batch EOD
ingest dropped its rows under BOTH symbols and the series silently died
(e.g. ECHO/EchoStar: no bars since 2026-06-29 despite actively trading;
12 of 17 inactive merge targets affected in production).

The merge path now checks an inactive target's FMP profile and marks it
active when isActivelyTrading is set; genuinely dead listings (profile
missing or not trading) stay inactive. Idempotent — re-running the
backfill repairs the already-merged pairs.

Adds AssetRepository.mark_active as the symmetric twin of mark_inactive.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
gertjan deleted branch fix/reactivate-merge-target 2026-07-17 11:56:14 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
gertjan/bodega!91
No description provided.