Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attendees can sign up on the waiting list more than once #1915

Open
7 tasks
abbyhudson13 opened this issue Aug 29, 2023 · 2 comments
Open
7 tasks

Attendees can sign up on the waiting list more than once #1915

abbyhudson13 opened this issue Aug 29, 2023 · 2 comments

Comments

@abbyhudson13
Copy link

abbyhudson13 commented Aug 29, 2023

Description of the issue 📄

We have a coach who is on the waiting list for our next workshop 10 times. This has happened before where the student was on 3 times.

Screenshots 📷

Screenshot 2023-09-11 at 10 28 38 pm

Steps to fix 🛠

Check in the rsvp method in workshops_controller to see if the user is already waitlisted. I can see there is this code but it doesn't seem to always be working:

      if user_attending_or_waitlisted?(@workshop, current_user)
        return redirect_back fallback_location: root_path, notice: t('workshops.already_wish_to_attend')
      end

It is within an if/else statement so maybe it isn't hitting this part, or the user is clicking on rsvp too quickly before the previous waiting list addition has been complete.

To do 📋

  • Claim this issue (comment below, or assign yourself if you are part of the codebar org)
  • Fork and clone the repository
  • Update the relevant files. Follow the steps to fix section in this issue.
  • Commit your changes as one commit. Use the title of this issue as your commit message
  • Submit a pull request
  • Mention this issue in the PR description by including it's number
  • Have your pull request reviewed & merged by a codebar team member
@matyikriszta
Copy link
Contributor

For reference this London workshop also has this issue: https://codebar.io/workshops/2788.

@biggianteye
Copy link
Contributor

Another example: https://codebar.io/workshops/3188

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

No branches or pull requests

3 participants