Add spreadsheet importer for event registrants - #2377
Draft
maebeale wants to merge 3 commits into
Draft
Conversation
Admins pick an event and upload an .xlsx/.csv roster; every row becomes an attended registration, matching existing people by email + last name so no duplicates are created. Organizations are matched by name and linked (never created). Preview interstitial (dry-run) before any writes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Scope the create-action rescue to file parsing so a non-admin still hits the policy redirect. Add service + request specs, a CSV fixture, the features.yml catalog entry, AGENTS.md service note, and page_bg_class mapping. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Keeps the importer service a plain-text file (git was treating it as binary), no behavior change. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
🤖 suggested review level: 5 Inspect 🔬 substantive logic — new importer service creating people + registrations from an upload
What
Admin-only importer that bulk-adds attended registrants to an event from a spreadsheet.
event_registrations/import(link on the registrants index): pick an event, upload.xlsx/.csv/.xls, preview, confirm.EventRegistrationImporterservice: oneattendedregistration per row.lower(email) + lower(last_name)(PublicRegistration's rule) — created only on a miss, never duplicated.dry_runthat rolls back the transaction, mirroring the WordPressStoryImporterflow (file stashed as an ActiveStorage blob between preview and confirm).Why
Staff have rosters of training attendees (e.g. the "2026 On-Demand Trainees" export) and need them in the portal as attended registrations without hand-entering each person or creating duplicates.
Notes
roogem for spreadsheet parsing (no parser existed).EventRegistrationPolicy#import?(admins only).