Commit Graph

19 Commits (da72da7386ff3224ad732d130bf11100671db7fd)

Author SHA1 Message Date
Gabe Farrell bd42f25716 rename SurveyItemResponse method for clarity
2 years ago
Nelson Jovel 0c87e20095 perf: reduce number of calls for student and teacher survey items in response rate calculators
2 years ago
Nelson Jovel 978b69b095 fix: correct a problem where survey items with insufficient responses were contributing to the response rate calculation
2 years ago
Nelson Jovel 946b0833fd perf: reduce time spent in sql query for student response rate
2 years ago
Nelson Jovel 6a2723af84 chore: performance fixes for response rate calculation
2 years ago
Nelson Jovel 6e7e64c039 chore: rename counts_by_grade to enrollment_by_grade for clarity
2 years ago
rebuilt 3dd8631083 perf: memoize function when calculating response rates
3 years ago
Gabe Farrell 8f0deab53b Use weighted average instead of simple average when calculating response rates
3 years ago
rebuilt 9f21a76ba4 Fix response rates for small schools by accounting for expected minimum counts of responses less than 10
3 years ago
rebuilt c14960517b rename counts_by_grade method to the more descriptive enrollment_by_grade
3 years ago
rebuilt 65b8599c6e Update logic for calculating student response rate. Remove references
3 years ago
rebuilt eb043f2b2d Add placeholder for testing response rate calculation
3 years ago
rebuilt bdb9455919 Move raw_response_rate method down to student/teacher classes
3 years ago
rebuilt 79f7915edf Add scopes to SurveyItem for selecting survey items by grade and
3 years ago
Nelson Jovel 757638f6ca continue refactoring
3 years ago
rebuilt e89358dacc implement suggestions from static code analysis tools
3 years ago
rebuilt bb5f668497 Refactor code based on rubocop and reek suggestions
3 years ago
rebuilt c03615cb43 Rename ResponseRate to ResponseRateCalculator. Create a new response
4 years ago
rebuilt a769996054 Refactor response rate into response rate calculator
4 years ago