Skip to content

shreds: flag lagging publishers on the shred publishers page#666

Open
SinaVafadar wants to merge 4 commits into
mainfrom
sv/publisher-lagging-status
Open

shreds: flag lagging publishers on the shred publishers page#666
SinaVafadar wants to merge 4 commits into
mainfrom
sv/publisher-lagging-status

Conversation

@SinaVafadar

Copy link
Copy Markdown
Contributor

Summary

  • Adds a Lagging column to the Shred Publishers page (/dz/shreds/publishers) that flags validators reported as not Healthy in dzf_data.lagged_validators.
  • The lagging status text (the non-Healthy value from the table) is shown in the cell and on hover, and the column is sortable.
  • Wires up the dzf_data ClickHouse database (config default, CLICKHOUSE_DZF_DATA_DB env override, and API plumbing) so the handler can read the table.

Details

FetchPublisherCheckData now joins publishers against dzf_data.lagged_validators by validator_vote_public_key, selecting rows where status != 'Healthy'. Matching publishers are annotated with lagging and lagging_status. The lookup is non-fatal — if the table is unavailable the page still renders without lagging annotations. Because the logic lives in FetchPublisherCheckData, the background page cache picks up the new fields automatically.

Testing Verification

  • Existing PublisherCheck handler tests pass; the lagged-validators lookup degrades gracefully when the table is absent in the test DB (logged warning, publishers returned unannotated).

Pulls validators reported as not Healthy from dzf_data.lagged_validators
and annotates matching shred publishers with a new Lagging column. Adds
dzf_data database plumbing (config, env var, API wiring) and a non-fatal
lookup in FetchPublisherCheckData so the page still renders if the table
is unavailable.
@github-actions

github-actions Bot commented Jun 20, 2026

Copy link
Copy Markdown

🔗 Preview: https://pr-666.data.malbeclabs.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant