Commit graph

11 commits

Author SHA1 Message Date
Nelson Jovel
d1848d7f79 feat: update response rates on the browse page to add esp to teachers for a more accurate response rate 2025-01-23 11:35:53 -08: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
b70755aef1 chore: refactor teacher response rate 2024-01-12 13:53:51 -08:00
Nelson Jovel
45ea735fa5 perf: reduce number of queries for teacher survey_items 2024-01-12 13:53:41 -08:00
Nelson Jovel
a960202d66 chore: performance fixes for response rate calculation 2024-01-12 13:49:02 -08:00
rebuilt
cee1c5fbc9 perf: Reduce number of queries. Remove unneeded methods. Combine
subcategory and measure queries in controller
2023-06-19 20:49:57 -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
bb5f668497 Refactor code based on rubocop and reek suggestions 2022-07-11 16:46:30 -07:00
rebuilt
fa35a4230c refactor teacher response rate calculator 2022-06-22 08:49:16 -07:00
rebuilt
a769996054 Refactor response rate into response rate calculator 2022-06-14 14:06:18 -07:00