Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API for teachercon survey results #16263

Merged
merged 3 commits into from Jul 11, 2017
Merged

Conversation

mehalshah
Copy link
Contributor

@mehalshah mehalshah commented Jul 6, 2017

API for getting teachercon survey results

@mehalshah mehalshah requested a review from Hamms July 6, 2017 21:21

survey_report[:this_teachercon] = summarize_workshop_surveys(@workshop.survey_responses, Pd::TeacherconSurvey.options)
survey_report[:all_my_teachercons] = summarize_workshop_surveys(
Pd::Workshop.where(subject: @workshop.subject).facilitated_by(current_user).flat_map(&:survey_responses),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note that teachercon workshops are one of two subjects, meaning that if one user were to facilitate both CSP and CSD teachercon workshops, only one type would show up in this response.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will change

@@ -2,8 +2,9 @@ module Pd::WorkshopSurveyResultsHelper
# Summarize an array of workshop surveys that are of the same type
# @param surveys List of TeacherconSurveys
# @param options List of the questions the survey uses.
# @param facilitator Faciliator that
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: comment looks incomplete

@mehalshah mehalshah merged commit 08f3298 into staging Jul 11, 2017
@davidsbailey davidsbailey deleted the workshop_survey_summarizer branch January 17, 2018 18:01
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.

None yet

2 participants