Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Attendees can sign up on the waiting list more than once

Aperta
#1,915 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
rails, ruby
Ambito
backend

Direzione di ricerca

Inizia nel metodo rsvp di workshops_controller ed esamina il controllo user_attending_or_waitlisted? e il flusso if/else circostante. Riproduci o traccia invii ripetuti alla lista d’attesa, inclusi i clic rapidi, quindi assicurati che un partecipante non possa essere aggiunto più di una volta alla lista d’attesa dello stesso workshop.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Ruby
Stelle
104
Fork
205
Merge medio
1g 6h
PR unite (30g)
71

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di codebar/planner

Tutte le issue di codebar/planner

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.