Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Attendees can sign up on the waiting list more than once

Đang mở
#1,915 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
rails, ruby
Lĩnh vực
backend

Hướng nghiên cứu

Bắt đầu trong phương thức rsvp của workshops_controller và kiểm tra điều kiện user_attending_or_waitlisted? cùng luồng if/else xung quanh nó. Tái hiện hoặc theo dõi các lần gửi lặp lại vào danh sách chờ, bao gồm cả những lần nhấp nhanh, sau đó đảm bảo rằng một người tham dự không thể được thêm vào danh sách chờ của cùng một workshop quá một lần.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Ruby
Star
104
Fork
205
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
67

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của codebar/planner

Tất cả issue của codebar/planner

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.