Skip to content

Resolve Google Drive iOS DriveKit joins within one container - #2004

Merged
abrignoni merged 1 commit into
mainfrom
fix/drivekit-per-container-joins
Aug 20, 2026
Merged

Resolve Google Drive iOS DriveKit joins within one container#2004
abrignoni merged 1 commit into
mainfrom
fix/drivekit-per-container-joins

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Resolves the DriveKit metadata joins within the container the file sits in.

  • Local files, thumbnails, items and comments all looked up Drive metadata by account and item id, so on a device carrying several DriveKit stores one container's cache could answer for another's. All four now key on container, account and item id.

Correctness by construction rather than a repair: an account appears in more than one container on each tested image, but where a pair was cached twice the containers agreed on title, mime type and trash state, so a before and after across eight images shows the same rows and the same values. Before trusting that, the comparison was shown to fire by injecting one wrong title into a copy of a real output.

Baseline is the current main behaviour, which is byte identical to the merged commit, so only the eight fix side sweeps were run. Attribution is untouched.

The local file, thumbnail, item and comment artifacts looked up Drive
metadata by account and item id. One device carries several DriveKit
stores, an account appeared in more than one container on each tested
image, and a Drive item id is the same string wherever it is cached, so
that key let one container's cache answer for another's. All four
lookups now key on container, account and item id.

This prevents a mix rather than repairing an observed one: where a pair
was cached in two containers the values agreed, so a before and after
across eight images shows the same rows and the same values.

Attribution is untouched.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@abrignoni
abrignoni merged commit 2ef69ef into main Aug 20, 2026
8 checks passed
@abrignoni
abrignoni deleted the fix/drivekit-per-container-joins branch August 20, 2026 00:28
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