Attendees can sign up on the waiting list more than once
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
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 📷
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
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của codebar/planner
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
Clean up historical duplicate invitation rows (one member, two invitations per event/workshop) Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
-
good first issue performance
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 78/100
Tất cả issue của codebar/planner
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Please Drop ruby 3.2 support Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
googleapis/google-api-ruby-client#28001 · 5 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100