Skip to content

fix: include invited coaches who never RSVPed in feedback dropdown#2686

Closed
mroderick wants to merge 1 commit into
masterfrom
feature/2633-feedback-coach-dropdown
Closed

fix: include invited coaches who never RSVPed in feedback dropdown#2686
mroderick wants to merge 1 commit into
masterfrom
feature/2633-feedback-coach-dropdown

Conversation

@mroderick

Copy link
Copy Markdown
Collaborator

Closes #2633

Problem

The feedback form dropdown only showed coaches with attending=true or attended=true. This excluded new coaches who were invited to a workshop but never RSVPed (attending=nil) and then showed up anyway.

Because these coaches are invisible in the admin attendance UI (which only renders @attending_coaches, i.e. attending=true), organisers often could not mark them as attended. Students were then unable to submit feedback when their coach was missing from the required dropdown.

Fix

FeedbackController#set_coaches now also includes coaches with attending=nil, so any invited coach can be selected for feedback.

What changed

  • app/controllers/feedback_controller.rb: broadened the coach query from accepted_or_attended to attending IS NULL OR attending = true OR attended = true
  • spec/features/member_feedback_spec.rb: added a feature test covering the walk-in coach scenario (Issue coach name missing in the feedback form #2633)

Test evidence

bundle exec rspec spec/features/member_feedback_spec.rb
# 10 examples, 0 failures

bundle exec rspec spec/controllers/feedback_controller_spec.rb
# 5 examples, 0 failures

Closes #2633

The feedback form was only showing coaches with attending=true or
attended=true. This excluded new coaches who were invited but never
RSVPed (attending=nil) and then showed up to coach. Since these coaches
are invisible in the admin attendance UI (which only shows attending=true),
organisers often could not mark them as attended, leaving students unable
to submit feedback for them.

Now the feedback dropdown also includes coaches with attending=nil,
so students can always select a coach who was invited to the workshop.
@mroderick mroderick closed this Jul 3, 2026
@mroderick mroderick deleted the feature/2633-feedback-coach-dropdown branch July 3, 2026 04:59
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

Successfully merging this pull request may close these issues.

coach name missing in the feedback form

1 participant