Invite ticket buyers to the in-person event via Attend#65
Open
EDRipper wants to merge 1 commit into
Open
Conversation
Buying the "Ticket to beest" shop item now fires a best-effort call to Attend's participants API so the buyer gets an onboarding invite email, following the same fire-and-forget pattern as the existing Slack/Loops purchase side effects. Co-Authored-By: Claude Sonnet 5 <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.
Summary
1682f145-2f18-41f8-9267-7b3eb506b54a) now fires a best-effort call to Attend'sPOST /api/v1/events/beest/participantsso the buyer gets an onboarding invite email.AttendService(backend/src/attend/) follows the same config-driven, fail-silent pattern asSlackNotifyService/SiloService— degrades silently (with a startup warning log) if unconfigured, never throws, a 409 (already invited) counts as success.ShopService.purchase()'s existing post-commit side-effect block (same place the Slack DM and Loops date-sync already fire), gated on a newATTEND_TICKET_SHOP_ITEM_IDenv var so it only fires for the actual ticket item.New env vars (need to be set for this to activate)
ATTEND_BASE_URL(e.g.https://attend.hackclub.com)ATTEND_API_KEY(event-scoped API key, from attend admin → event → regenerate api key)ATTEND_EVENT_ID(beest)ATTEND_TICKET_SHOP_ITEM_ID(1682f145-2f18-41f8-9267-7b3eb506b54a)Test plan
attend.service.spec.ts— unit tests for the new service (config-missing no-op, success, 409-as-success, network failure swallowed)