Repository navigation
feat: drop a Drive folder to import and match faces (no review step) - #99
Merged
Merged
Conversation
Folder imports can now walk subfolders (recursive) and, when auto_approve is set, the upload-group worker approves the group right after the import completes so photos are promoted and queued for face matching. Both default to off, so the existing flow is unchanged.
Admin-only endpoint that takes a Drive folder link, picks or creates an
event, and starts a recursive, auto-approved folder import. Progress is
read from the existing /staff/uploads/groups/{id} endpoint.
New /multi/drop page: paste a Drive folder link, pick or create an event, choose visibility, and watch the import progress until the photos are queued for face matching.
This was referenced Nov 27, 2026
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.
Why
The events already happened and the multi team's review workflow isn't validated yet. Admins need one place to drop a Drive folder and have every photo run through the normal pipeline (single face → match + notify, multi-face → group approval), without the team-lead review.
What
list_folder_files(recursive=True)walks subfolders (cycle-safe). Default stays non-recursive.recursiveandauto_approve; the worker approves the group right after a successful import, so photos are promoted to final storage and queued for face matching. Both default off.POST /staff/drive/drop(admin only): folder link + existingevent_idornew_event+ visibility. Returnsgroup_id; progress via the existingGET /staff/uploads/groups/{id}.EventService.create_event, and a Drive folder-link parser (folder links,?id=, bare ids; file links rejected)./multi/droppage with the form and a polling progress view.Notes
/multi/dropdirectly, or add a nav item once those land.Test
tscandeslintclean for the new files.