Skip to content

Convert imagemngCache to LAVA @artifact_processor (+ media migration)#816

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

Convert imagemngCache to LAVA @artifact_processor (+ media migration)#816
abrignoni merged 1 commit into
mainfrom
lava-batch-64

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Converts imagemngCache.py (Glide image_manager_disk_cache and .cnt image caches) to the decorated @artifact_processor pattern.

Changes

  • Media migration: the media column moves from media_to_html to ('Media','media') backed by check_in_media. These cache files are raw image bytes stored under hash names, so check_in_media auto-detects the MIME/extension from the bytes (no PIL needed).
  • Timestamp Last Modified is now an aware UTC datetime.
  • Replaces the junk name (ImagemngCache) and description (else:, a stray code comment) with real values.

Original creation_date/last_update_date (2022-03-05) preserved.

Converts the Glide image_manager_disk_cache / .cnt cache parser to the
decorated single-return pattern. Migrates the media column from
media_to_html to ('Media','media') backed by check_in_media (the cache
files are raw image bytes under hash names; check_in_media auto-detects
the MIME from the bytes). Timestamp Last Modified is now an aware UTC
datetime. Replaces the junk name 'ImagemngCache' / description 'else:'
with proper values.
@abrignoni abrignoni merged commit f10c3b3 into main Jun 21, 2026
1 check passed
@abrignoni abrignoni deleted the lava-batch-64 branch June 21, 2026 13:35
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