Skip to content

Convert teleguard to LAVA @artifact_processor (4-way split + media migration)#834

Merged
abrignoni merged 1 commit into
mainfrom
lava-batch-82
Jun 21, 2026
Merged

Convert teleguard to LAVA @artifact_processor (4-way split + media migration)#834
abrignoni merged 1 commit into
mainfrom
lava-batch-82

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Converts teleguard.py (Teleguard messenger) to the decorated @artifact_processor pattern — four artifacts (category Teleguard): Messages, Posts, Contacts, Channels.

Media migration

  • Messages: media files (referenced by key in the message metadata JSON, stored under cache/) move from media_to_html to a ('Media','media') column via check_in_media — a list of refs per message so multiple attachments render. The raw metadata, previously crammed into the same Media column, gets its own Metadata column.
  • Contacts: avatar JPEG BLOBs move from an inline base64 <img> to ('Avatar','media') via check_in_embedded_media.

Other

  • All timestamps (createDate, userTime, lastActivityTime, lastVisitTime) → aware UTC datetime.
  • Channels keeps SELECT * (positional, sliced to 12) to match the original's schema assumption rather than guessing column names.
  • Reserved-word column audit run — clean.

Original dates (2024-01-09) preserved.

…gration)

Splits the Teleguard messenger parser into four decorated artifacts:
Messages, Posts, Contacts, and Channels. Message media (referenced by key
in the metadata JSON) migrates from media_to_html to a ('Media','media')
column backed by check_in_media (a list of refs per message); the
conflated raw metadata is split into its own 'Metadata' column. Contact
avatars (JPEG BLOBs) move from an inline base64 <img> to ('Avatar','media')
via check_in_embedded_media. All timestamps become aware UTC datetimes.
Channels keeps SELECT * (positional) to match the original schema
assumption. Reserved-word column audit run (clean).
@abrignoni abrignoni merged commit 219a4eb into main Jun 21, 2026
1 check passed
@abrignoni abrignoni deleted the lava-batch-82 branch June 21, 2026 20:14
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