You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dashboard: name the files that did not read as a pull record #2666
Today.read_records (crates/cli/src/commands/activity.rs) skips a file in ~/.decdn/activity/pulls/ that does not parse as a PullRecord, logs why at debug only ("{path} is no pull record: {e}"), and adds one to unreadable. The page (crates/cli/dashboard/src/App.tsx) shows only "⚠ N file(s) in the directory did not read as a record." It names no file and no reason, and says nothing about how to find them. A truncated or hand-edited record shows this banner on every poll, and the user has no next step unless they know to rerun decdn dashboard with RUST_LOG=debug. A warn! in read_records is not the fix as it stands, because the dashboard calls read_records on every poll (dashboard/sources.rs), so the warning would repeat.
Ask. Make an unreadable record findable from the page. Options:
carry the unreadable paths (or the first one and its serde error) in the /_status payload and show them under the banner, or
warn once per path per process, and point the banner at the log.
Done when
A user who sees the banner can tell which file(s) failed and why without RUST_LOG.
A test covers an unreadable record's path (and reason, if carried) reaching the page.
Activity