Skip to content

Convert blueskyposts to LAVA @artifact_processor (+ feed bug fix)#850

Merged
abrignoni merged 1 commit into
mainfrom
lava-batch-95
Jun 22, 2026
Merged

Convert blueskyposts to LAVA @artifact_processor (+ feed bug fix)#850
abrignoni merged 1 commit into
mainfrom
lava-batch-95

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Converts blueskyposts.py (Bluesky feed/posts http-cache) to the decorated @artifact_processor pattern.

Bug fix: the feed loop read data['feed'][0]['post'] (hard-coded index 0) inside for items in value, so every feed entry was a copy of the first post and deduped down to a single row. Now reads each entry's own post. Verified with a 2-post fixture: yields 2 distinct rows (was 1).

Other

  • Consolidates the two identical-shape reports (feed + posts) into one table with a Collection column.
  • ISO timestamps → aware UTC datetime; langs list joined to a string.
  • Bare except: removed; each cache file read once. Reserved-word audit clean.

Own artifact; author and dates (2024-11-20) preserved.

Converts the Bluesky posts JSON-cache parser to the decorated pattern.
Fixes a bug where the feed loop always read data['feed'][0]['post'] (index
0) instead of the current loop item, so every feed entry was a duplicate
of the first post and collapsed to a single row. Now iterates each entry
correctly (verified: distinct feed posts yield distinct rows).
Consolidates the two identical-shape reports (feed and posts) into one
table with a 'Collection' column. ISO timestamps become aware UTC
datetimes. Replaces the bare except and reads each cache file once.
@abrignoni abrignoni merged commit 186bdc9 into main Jun 22, 2026
2 checks passed
@abrignoni abrignoni deleted the lava-batch-95 branch June 22, 2026 01:11
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