Convert Cello (Google Drive metadata) to artifact_processor#874
Merged
Conversation
Single LAVA table of Google Drive cello.db item metadata. Offline files
migrated from shutil.copy2 + inline <a>/<i> HTML to a check_in_media
('Offline File') column -- the shiny_blobs blobs are already in the path
globs, so they resolve. Five date columns (epoch ms) -> aware UTC; folder/
owner/trashed CASE maps kept; dropped the data-feather icon HTML and the
dead get_offline_path helper; query guarded. The offlineStatus check is
affinity-robust (int or text). Consolidated to one static table name (no
per-account dynamic report) with a Source File column.
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 the Cello (Google Drive
cello.dbmetadata) artifact to LAVA@artifact_processor— a single consolidated table.Change
shutil.copy2into the report folder + inline<a>/<i data-feather>HTML to acheck_in_media('Offline File','media')column. Theshiny_blobs/blobs/*files are already in the artifact's path globs, socheck_in_mediaresolves them (matched byblobKey).datetime.data-feathericon HTML wrapping the filename and the deadget_offline_pathhelper; query wrapped intry/except sqlite3.Error.offlineStatuscompared affinity-robustly (str(...) == '1') since the value column's type affinity is uncertain.Verification
-d C,R); 14 column names pass a liveCREATE TABLE; name unique; PluginLoader 499 incl.get_Cello.items+item_properties+ a blob): an offline item resolves its blob to a media ref, a non-offline item gets a blank media cell (noNone), dates are aware-UTC.