Skip to content

Add confirmation reminder and parameterized Slack invite endpoints#331

Closed
Copilot wants to merge 2 commits intointegrationfrom
copilot/add-new-endpoints
Closed

Add confirmation reminder and parameterized Slack invite endpoints#331
Copilot wants to merge 2 commits intointegrationfrom
copilot/add-new-endpoints

Conversation

Copy link
Contributor

Copilot AI commented Nov 16, 2025

Adds two admin endpoints to facilitate event communication: one to remind accepted hackers to confirm attendance, and another to send Slack invitations with a configurable URL.

Changes

  • New endpoint POST /v1/event/{event_id}/send_confirmation_reminder/

    • Sends reminders only to accepted hackers who haven't confirmed (confirmed_assistance = false)
    • Auto-generates confirmation tokens if missing
    • Returns count of emails queued
  • New endpoint POST /v1/event/{event_id}/send_slack_invite/

    • Accepts slack_url in request body instead of hardcoded value
    • Sends to all accepted hackers
    • Returns count of emails queued
  • Email template EVENT_CONFIRMATION_REMINDER added to InternalTemplate enum

Usage

# Send confirmation reminders
POST /v1/event/123/send_confirmation_reminder/
Authorization: Bearer <admin_token>
→ {"success": true, "sent": 15}

# Send Slack invites
POST /v1/event/123/send_slack_invite/
Authorization: Bearer <admin_token>
Body: {"slack_url": "https://join.slack.com/t/..."}
→ {"success": true, "sent": 50}

Both require LLEIDAHACKER role. The existing send_slack_mail endpoint remains for backward compatibility.

Original prompt

This section details on the original issue you should resolve

<issue_title>New enponts</issue_title>
<issue_description>Create two new endpoints. First to remember to the participants to confirm assistence and second endpoint to send slack url</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI self-assigned this Nov 16, 2025
Co-authored-by: Big-Lolo <95545807+Big-Lolo@users.noreply.github.com>
Copilot AI changed the title [WIP] Add two new endpoints for participant confirmation and Slack URL Add confirmation reminder and parameterized Slack invite endpoints Nov 16, 2025
Copilot AI requested a review from Big-Lolo November 16, 2025 22:14
@Big-Lolo Big-Lolo closed this Nov 17, 2025
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.

2 participants