Convert recentactivity to artifact_processor#857
Merged
Conversation
- Single LAVA table (was a per-uid ArtifactHtmlReport with a custom key/value + image layout); all system_ce/<uid> profiles consolidated into one table with a 'CE Profile' discriminator column, one row per recent task/activity. - Dropped the scratch RecentAct_<uid>.db buffer; build rows directly. - Snapshot and recent-image media migrated from shutil.copy2 + inline <img> to check_in_media; added explicit glob paths for the snapshots/ recent_images subfolders so the seeker tracks them (required for check_in_media resolution). - first/last_active_time and last_time_moved (ms) -> aware UTC. - Retained raw task/activity attribute dicts as JSON columns.
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 Recent Activity artifact (Android
system_ce/<user>/recent_taskssnapshots & images) to LAVA@artifact_processor.What changed
ArtifactHtmlReportrendering a custom vertical key/value table plus two images per task. Now a single flat LAVA table, one row per recent task/activity, with allsystem_ce/<uid>profiles consolidated and a CE Profile discriminator column (avoids dynamic per-uid report names).RecentAct_<uid>.dbSQLite buffer entirely — rows are built directly in Python (the temp DB only ever existed to re-rundatetime()conversions).snapshots/<task_id>.jpg) and recent image (recent_images/...) moved fromshutil.copy2+ inline<img>tocheck_in_media. Added explicit glob paths for thesnapshots/andrecent_images/subfolders so the seeker indexes those files —check_in_mediaresolves only against the current artifact'sfiles_found.first_active_time/last_active_time/last_time_moved(epoch ms) → timezone-aware UTCdatetimecolumns (wasdatetime(x/1000,'UNIXEPOCH')).Verification
-d C,R); PluginLoader loads 492 incl.get_recentactivity.actionis a non-reserved SQLite keyword via a liveCREATE TABLE).system_ce/0with an XML task + snapshot + icon): yields 1 row, 16 cols matching headers, timestamps as aware UTC, both media refs resolved.