Commit graph

18 commits

Author SHA1 Message Date
Nelson Jovel
35b324f05a feat: generate new bll report for Ashley 2024-12-20 12:25:42 -08:00
a44956bd09 rename SurveyItemResponse method for clarity 2024-04-10 14:41:50 -04:00
Nelson Jovel
edbb84334a perf: reduce number of calls for student and teacher survey items in response rate calculators 2024-01-12 13:55:14 -08:00
Nelson Jovel
ec5c1bd1ef fix: correct a problem where survey items with insufficient responses were contributing to the response rate calculation 2024-01-12 13:54:59 -08:00
Nelson Jovel
cf9dd9042d perf: reduce time spent in sql query for student response rate 2024-01-12 13:54:00 -08:00
Nelson Jovel
a960202d66 chore: performance fixes for response rate calculation 2024-01-12 13:49:02 -08:00
Nelson Jovel
0359dae88a chore: rename counts_by_grade to enrollment_by_grade for clarity 2023-12-18 15:59:30 -08:00
459e4b8d21 Use weighted average instead of simple average when calculating response rates 2023-06-21 04:45:53 +00:00
rebuilt
f9d4b28969 perf: memoize function when calculating response rates 2023-06-10 11:17:40 -07:00
rebuilt
6b2555c1f0 Fix response rates for small schools by accounting for expected minimum counts of responses less than 10 2023-05-12 12:27:46 -07:00
rebuilt
c42b569e78 cap response rate per grade at 100 2023-04-30 11:59:22 -07:00
rebuilt
982f216c6c rename counts_by_grade method to the more descriptive enrollment_by_grade 2023-04-22 14:00:40 -07:00
rebuilt
07ed8dd259 Update logic for calculating student response rate. Remove references
to survey table.  We no longer check or keep track of the survey type.
Instead we look in the database to see if a survey item has at least 10
responses.  If it does, that survey item was presented to the respondent
and we count it, and all responses when calculating the response rate.

Remove response rate timestamp from caching logic because we no longer
add the response rate to the database. All response rates are calculated
on the fly

Update three_b_two scraper to use teacher only numbers

swap over to using https://profiles.doe.mass.edu/statereport/gradesubjectstaffing.aspx as the source of staffing information
2023-04-22 14:00:20 -07:00
Nelson Jovel
757638f6ca continue refactoring 2022-07-13 15:32:48 -07:00
rebuilt
e89358dacc implement suggestions from static code analysis tools 2022-07-12 19:15:54 -07:00
rebuilt
bb5f668497 Refactor code based on rubocop and reek suggestions 2022-07-11 16:46:30 -07:00
rebuilt
c03615cb43 Rename ResponseRate to ResponseRateCalculator. Create a new response
rate model.  Create a loader to refresh response rates for all
subcategories.

Use precalculated response rates in views

Wrap more elements in page caching

Calculate a response rate for a subcategory if one does not already
exist
2022-06-16 08:19:26 -07:00
rebuilt
a769996054 Refactor response rate into response rate calculator 2022-06-14 14:06:18 -07:00