Skip to content

feat(fetchers): enhance HackerNewsFetcher with timestamp display#90

Merged
chaliy merged 1 commit intomainfrom
fix/issue-58-hackernews-fetcher
Apr 3, 2026
Merged

feat(fetchers): enhance HackerNewsFetcher with timestamp display#90
chaliy merged 1 commit intomainfrom
fix/issue-58-hackernews-fetcher

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Apr 3, 2026

What

Enhance HackerNewsFetcher with timestamp display and additional tests.

Why

Closes #58 — The HN Firebase API returns a time field (Unix timestamp) that was not being deserialized or displayed. This adds time information to the structured output.

How

  • Added time field to HNItem deserialization
  • Implemented format_unix_timestamp() for epoch-to-ISO8601 conversion (no external deps)
  • Display formatted time in item metadata
  • Added tests for: timestamp formatting, comment rendering, Ask HN text posts

Risk

  • Low
  • Additive change only, no existing behavior modified

Checklist

  • Unit tests are passed
  • Smoke tests are passed
  • Specs are up to date and not in conflict

- Add time field deserialization from HN Firebase API
- Display formatted UTC timestamp in item metadata
- Add format_unix_timestamp() for epoch-to-ISO8601 conversion
- Add tests: timestamp formatting, comments rendering, Ask HN posts

Closes #58
@chaliy chaliy merged commit 7a31792 into main Apr 3, 2026
11 checks passed
@chaliy chaliy deleted the fix/issue-58-hackernews-fetcher branch April 3, 2026 03:06
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.

feat(fetchers): HackerNewsFetcher — structured thread extraction

1 participant