Repository navigation
Associate standalone survey submissions with their event so training feedback automatically tracks on the registrants roster (#2749) - #2768
Merged
Conversation
1steve78
marked this pull request as ready for review
October 21, 2026 07:30
maebeale
reviewed
Oct 22, 2026
| area: registration | ||
| display_status: admin_facing | ||
| released_on: 2026-10-21 | ||
| pr_number: 2749 |
Collaborator
There was a problem hiding this comment.
this should be 2768, right?
maebeale
reviewed
Oct 22, 2026
Collaborator
There was a problem hiding this comment.
this comment should be updated or removed now?
Contributor
Author
|
Thanks for the review! I'll correct the |
1steve78
force-pushed
the
pass-event-id-to-survey
branch
from
October 25, 2026 12:53
b25d651 to
3603ef2
Compare
Collaborator
|
@1steve78 hey there! would you rebase these pr's so we can review and approve? |
Contributor
Author
|
sure |
1steve78
force-pushed
the
pass-event-id-to-survey
branch
from
November 6, 2026 06:54
3603ef2 to
858b66f
Compare
…feedback automatically tracks on the registrants roster (rubyforgood#2749)
1steve78
force-pushed
the
pass-event-id-to-survey
branch
from
November 7, 2026 04:00
858b66f to
8b33795
Compare
Contributor
Author
|
@maebeale pls review i have rebased my pr |
maebeale
approved these changes
Nov 8, 2026
maebeale
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for this contribution! 🎉
This was referenced Nov 8, 2026
Closed
maebeale
added a commit
that referenced
this pull request
Nov 8, 2026
…2965) * Narrow a form's results to any event its submissions were made for The results rollup honored its event filter only for an event connected to the form through event_forms, and the picker offered only those. A standalone form has no event_forms rows, so for the surveys shared as /f/:slug?event= (#2768) and the on-demand agreement — both of which stamp an event on the submission — the filter was dead by construction: staff could see a training's survey responses on the roster but never roll them up on their own. Define the filterable events as the ones the form's own submissions were made for, one definition for the picker and the param check. Standalone forms gain the filter, and an event-connected form no longer offers events with nothing to show. The Results subnav tab now carries event_id like the Edit tabs, and the results page sets @dashboard_event, so the event an admin arrived with survives a trip through the rollup. Closes #2963 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Add the Features & tips entry for per-event form results Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
maebeale
added a commit
that referenced
this pull request
Nov 8, 2026
…2968) Two loose ends in the event-scoped survey link (#2768), neither of them visible to a respondent today. The public form page and its thank-you page read params[:event] / params[:event_id] directly, so an id the controller had already rejected — a deleted event, an event whose kind doesn't offer that survey, a typo — was echoed back into the form action, a hidden field, and the "Submit another response" link, where it rode along through the next submission to be rejected again. Read @event instead, which PublicFormsController#set_event has already validated, so the ?event_id= alias also normalizes to the canonical ?event= and only one hidden field is needed. form_live_view_link sent "Live form" to the event's public registration page for any form that isn't publicly fillable. That holds for the event-connected form the link was written for, but a survey form now reaches the editor with an event it is merely allowed for, whose registration form belongs to somebody else — an unpublished survey plus an event_id pointed the admin at an unrelated form. Offer that path only when the form is connected to the event. Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 suggested review level: 3 Read 📖 event ID param handling and survey completion association
Allows staff to share standalone survey links with an event attached so respondent answers automatically associate with the training and count toward its survey completion columns.
Closes #2749
What is the goal of this PR and why is this important?
/f/:slug) outside ticket callouts, leaving those completions unassociated./f/:slug?event=42) lets standalone submissions count toward the correct event without heuristic date matching.How did you approach the change?
_form_actions_menu.html.erb) and updated the form editor's "Live at" link to include?event=<id>when an event is present.EventSurveyCompletions.survey_allowed_for_event?to ensure only survey-role forms and events that offer or deliver that survey can be associated.@eventthroughPublicFormsControllertoPublicFormSubmission, persistingevent_idand stamping scholarship survey readiness.?event=<id>across form submissions, error re-renders, and the thank-you return link.EventSurveyCompletionscounts event-associated standalone submissions while ignoring other events and event-less submissions.Anything else to add?