Skip to content

fix(catalog): use upstream timestamp from index.json as content-change date#121

Merged
carlosatta merged 1 commit into
developfrom
fix/catalog-upstream-timestamp
Jul 10, 2026
Merged

fix(catalog): use upstream timestamp from index.json as content-change date#121
carlosatta merged 1 commit into
developfrom
fix/catalog-upstream-timestamp

Conversation

@carlosatta

Copy link
Copy Markdown
Contributor

Problem

updatedAt was set to local checkedAt time on every download, making it identical to lastChecked. Dashboard showed the same date for both columns.

Fix

Use upstreamMeta.upstreamUpdatedAt from index.json as updatedAt when available. This is the remote catalog's own modification timestamp — the actual date the content changed, not when Routerly checked it.

Logic:

  • index signals change (upstreamUpdatedAt differs) → download, set updatedAt = upstream timestamp
  • no change → keep existing updatedAt
  • always update lastChecked

Tests

18/18 passing. Updated assertion to expect upstream timestamp (not checkedAt) on first download.

🤖 Generated with Claude Code

…e date

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@carlosatta carlosatta merged commit 307c5ab into develop Jul 10, 2026
2 checks passed
@carlosatta carlosatta deleted the fix/catalog-upstream-timestamp branch July 10, 2026 07:15
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