Skip to content

fix(distributions): keep the full SSGA distribution history per fund - #81

Merged
daggerok merged 6 commits into
mainfrom
fix/dist-output
Oct 13, 2026
Merged

daggerok merged 6 commits into
mainfrom
fix/dist-output

Conversation

@daggerok

Copy link
Copy Markdown
Owner

What changed

  • feat(output): apply the canonical updater console output spec
  • fix(distributions): keep the full SSGA distribution history per fund
  • chore(data): update SPDR ETF data
  • refactor(output): use the one shared console output block
  • style(output): treat TICKERS as a selection, print 1 fund in the singular
  • docs(ui): describe Ex-Date for the full distribution history

Why

Follow-up to the 2026-10-12 full data run (29 repos, CONCURRENCY=5): fixes the failures and data problems seen in that log and unifies the console output with the sibling updaters (one shared output block, honest [ done ] counts, one [ catalog ] line, no blank or interleaved lines, TICKERS=all, SEC_UA redacted)

How it was checked

  • bun test: 36 pass
  • bun build (scripts/update-data.ts, src/main.tsx), bun run build, git diff --check
  • etf-std check-readme, check-workflow, check-pages, check-scripts; tc/check.sh type check clean
  • live run TICKERS= CONCURRENCY=5 bun ./scripts/update-data.ts; data commits come from live runs

Print one [ catalog ] line, replace the [ summary ] line with two [ done ]
lines (reporter tallies with elapsed seconds, published counts with thousands
separators), print TICKERS=all when empty, redact SEC_UA, round div and sec to
2 decimals, read money from numeric values and strip a leading [label] from
failure reasons so a message is tagged once.
The lineup dividend-distribution feed lists only the latest row per fund, so
every meta.json held one distribution. Fetch the per-fund history from the same
endpoint with ticker= (the data behind SSGA's ETF Historical Distributions page)
and store all rows newest first, with the current frequency once per worksheet.
A failed history request fails the fund so its published files are kept.

Indicated dividend yields are rounded to 2 decimals like the official ones.
The output* block is now textually identical across the brand updaters (superset of the per-repo alias maps).
@daggerok
daggerok merged commit c1b2292 into main Oct 13, 2026
1 check passed
@daggerok
daggerok deleted the fix/dist-output branch October 13, 2026 05:51
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.

1 participant