Skip to content

Add performer CSV importer with S3 photo pipeline#201

Open
dconnenc wants to merge 1 commit into
mainfrom
performers-csv-import
Open

Add performer CSV importer with S3 photo pipeline#201
dconnenc wants to merge 1 commit into
mainfrom
performers-csv-import

Conversation

@dconnenc

Copy link
Copy Markdown
Owner

Import performers from a Google-Form CSV export: find-or-create User by email, upsert Performer, and attach the photo via ActiveStorage. Two photo sources are supported — public URLs (DrivePhotoDownloader, handling Google Drive share links) and a local directory (LocalPhotoResolver, matching downloaded files to performers by normalized name). Exposed as rake performers:import[path]; STORAGE_SERVICE pins the ActiveStorage service so the import can push to S3 from an environment defaulting to disk.

Import performers from a Google-Form CSV export: find-or-create User by
email, upsert Performer, and attach the photo via ActiveStorage. Two photo
sources are supported — public URLs (DrivePhotoDownloader, handling Google
Drive share links) and a local directory (LocalPhotoResolver, matching
downloaded files to performers by normalized name). Exposed as
`rake performers:import[path]`; STORAGE_SERVICE pins the ActiveStorage
service so the import can push to S3 from an environment defaulting to disk.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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