Skip to content

Convert Cello (Google Drive metadata) to artifact_processor#874

Merged
abrignoni merged 1 commit into
mainfrom
convert-cello
Jun 22, 2026
Merged

Convert Cello (Google Drive metadata) to artifact_processor#874
abrignoni merged 1 commit into
mainfrom
convert-cello

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Converts the Cello (Google Drive cello.db metadata) artifact to LAVA @artifact_processor — a single consolidated table.

Change

  • Media: offline files moved from shutil.copy2 into the report folder + inline <a>/<i data-feather> HTML to a check_in_media ('Offline File','media') column. The shiny_blobs/blobs/* files are already in the artifact's path globs, so check_in_media resolves them (matched by blobKey).
  • Five date columns (epoch ms) → timezone-aware UTC datetime.
  • Kept the folder / owner / trashed CASE maps; dropped the data-feather icon HTML wrapping the filename and the dead get_offline_path helper; query wrapped in try/except sqlite3.Error.
  • offlineStatus compared affinity-robustly (str(...) == '1') since the value column's type affinity is uncertain.
  • Consolidated to one static table name (no per-account dynamic report) with a Source File column.

Verification

  • Compiles; pylint clean (-d C,R); 14 column names pass a live CREATE TABLE; name unique; PluginLoader 499 incl. get_Cello.
  • Fixture test (items + item_properties + a blob): an offline item resolves its blob to a media ref, a non-offline item gets a blank media cell (no None), dates are aware-UTC.

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.
@abrignoni abrignoni merged commit 17d1a0c into main Jun 22, 2026
2 checks passed
@abrignoni abrignoni deleted the convert-cello branch June 22, 2026 15:52
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