Skip to content

fix(registration): prevent duplicate event registrations#361

Open
mayurigade-hub wants to merge 2 commits into
anubhavxdev:mainfrom
mayurigade-hub:fix/prevent-duplicate-event-registration
Open

fix(registration): prevent duplicate event registrations#361
mayurigade-hub wants to merge 2 commits into
anubhavxdev:mainfrom
mayurigade-hub:fix/prevent-duplicate-event-registration

Conversation

@mayurigade-hub
Copy link
Copy Markdown

✦ Description

Prevents duplicate event registrations for the same user.

Added backend validation to check whether a user is already registered for an event before creating a new registration. Also added database-level protection to prevent duplicate user-event registrations and updated the frontend to avoid repeated registration attempts.

Closes #354


⟡ Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor

✦ Checklist

  • My code follows the project style guidelines.
  • I have tested my changes locally.
  • No new warnings or errors were introduced.

⟡ Screenshots / Screen Recordings

Not applicable.

Before After
Same user could register multiple times for the same event. Duplicate registrations are blocked.
Participant counts could become inaccurate. Each user can only have one registration per event.
Multiple API requests could create duplicate records. Backend validation and database constraints prevent duplicates.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

@mayurigade-hub is attempting to deploy a commit to the anubhav12302387's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

👋 Thanks for opening a PR, @mayurigade-hub!

Your PR has entered the 🎯 EventOne GSSoC PR Review Pipeline.

🟢 GSSoC PR detected — your PR will be routed to an approved GSSoC mentor for Stage 2 review.

What happens next

Stage Reviewer Checks
Stage 1 — Automated Validation 🤖 Bot Title format · Issue link · AI Slop · Branch check
Stage 2 — Mentor Review 🧑‍🏫 GSSoC Mentor Code + Quality Review
Stage 3 — Admin Final Gate 🔑 @anubhavxdev Label check + Final Merge Decision

A pipeline status comment will appear below and update automatically as your PR progresses.


While you wait

  • Sign all commits using git commit -s
  • Link your issue with Closes #123
  • Use a feature branch — not main
  • Avoid unrelated changes in the same PR
  • Write your own description — no AI-generated content

This comment is posted only once.

EventOne × GSSoC Automated Pipeline

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

✅ PR Format Check — Passed

Hi @mayurigade-hub! Your PR passed all automated checks and is now queued for mentor review. 🎉

⚠️ Warnings (recommended)

⚠️ No testing steps mentioned — Add how reviewers can verify your changes

✅ Checks Passed

  • Conventional Commits title format ✓
  • Issue linked ✓
  • Description length sufficient ✓
  • Valid feature branch ✓

📋 EventOne PR Guidelines (click to expand)

Title format — Conventional Commits:
feat: · fix: · docs: · style: · refactor: · test: · chore: · perf:

Always link an issue: Closes #number

Use a feature branch — never PR directly from main

Write your own description — AI-generated content = gssoc:ai-slop label

EventOne × GSSoC Pipeline — Stage 1 Automated Check

@github-actions github-actions Bot added gssoc:review GSSoC: Under review stage-1-approved Pipeline: Stage 1 automated checks passed labels Jun 1, 2026
@mayurigade-hub
Copy link
Copy Markdown
Author

Hello @anubhavxdev
Please review this
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:review GSSoC: Under review stage-1-approved Pipeline: Stage 1 automated checks passed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Same user can register multiple times for the same event

1 participant