Convert googlePhotos to LAVA @artifact_processor (consolidate + media migration)#832
Merged
Conversation
… migration)
Converts the Google Photos parser (441 lines, ~7 reports with per-DB
dynamic titles and schema variants) to six decorated artifacts: Local
Media, Remote Media, Shared Media, Backed Up Folders, Cache, and Local
Trash. The gphotos0/gphotos-1 dynamic report titles are consolidated into
a 'Source' column. Schema variants (purge_timestamp, inferred lat/long,
folder_name/media_store_id/trash_timestamp, upload_status) are unified via
column-existence checks into one query each. Timestamps are converted to
aware UTC by parsing the SQLite datetime strings (no SQL rewrites). Local
and Remote Media keep KML output for their coordinates. Cache and Local
Trash media migrate from shutil-copy + media_to_html to ('Image','media')
via check_in_media. Reserved-word column audit run (clean).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Converts
googlePhotos.py(441 lines, ~7 reports) to the decorated@artifact_processorpattern — six artifacts (category Google Photos):get_googlePhotosget_googlePhotos_remoteget_googlePhotos_sharedget_googlePhotos_foldersget_googlePhotos_cacheget_googlePhotos_trashChanges
(gphotos0)/(gphotos-1)report titles become aSourcecolumn.purge_timestamp,inferred_latitude/longitude,folder_name/media_store_id/trash_timestamp,upload_statusare handled via column-existence checks producing a single query each (no more duplicated if/else query blocks).datetime()strings (no SQL rewrites — lowest risk).output_types: all).shutil.copy2+media_to_htmlto('Image','media')viacheck_in_media.Original dates (2021-04-14) preserved.