Attendees can sign up on the waiting list more than once
まだ誰も着手していません。
評価
調査の方向性
workshops_controller の rsvp メソッドから始め、user_attending_or_waitlisted? チェックとその周囲の if/else フローを調査します。連続したクリックを含む、待機リストへの重複した送信を再現または追跡し、その後、同じワークショップの待機リストに同じ参加者が複数回追加されないことを確認します。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Ruby
- スター
- 104
- フォーク
- 205
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 67
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
codebar/planner のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
good first issue performance
難易度 3/5 1〜2日 初心者へのやさしさ 78/100
codebar/planner の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
googleapis/google-api-ruby-client#28001 · リアクション 5 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100