Commit graph

278 commits

Author SHA1 Message Date
rebuilt
fae530d21f perf: Reduce number of queries. Remove unneeded methods. Combine
subcategory and measure queries in controller
2023-06-19 20:51:24 -07:00
rebuilt
d306319de1 perf: memoize function when calculating response rates 2023-06-10 11:39:46 -07:00
rebuilt
452876ef09 perf: Add another index to surveyitemresponses. Implement bullet suggestions. Memoize a function in measure.rb 2023-06-10 10:30:29 -07:00
rebuilt
1aaed0682e Modify subcategory report to be threaded 2023-06-09 21:26:00 -07:00
rebuilt
aab4e78a71 Add District, School Code, and Grade columns to subcategory report 2023-06-09 15:30:57 -07:00
rebuilt
c2503541ff Fix: Ensure proper detection of survey type. Make sure to remove any survey item ids that end with the survey variant style of '-1' 2023-06-07 12:39:09 -07:00
rebuilt
87ca23df79 Add subcategory report 2023-05-23 18:55:05 -07:00
rebuilt
2e3461b685 Add subcategory report 2023-05-22 16:36:12 -07:00
rebuilt
4509c157fa Add automated data cleaning. Modify SurveyItemValues class to use regex
instead of hard coded values.  Produce a clean csv and a csv with all
the removed values and columns with reason for removal. Add script for
running cleaning for each project
2023-05-16 13:38:29 -07:00
rebuilt
d48a4efda2 Round all averages to two decimal places 2023-05-12 13:08:25 -07:00
rebuilt
3c30808a5e Fix response rates for small schools by accounting for expected minimum counts of responses less than 10 2023-05-12 12:27:00 -07:00
rebuilt
359e266a6c Remove unused TODOs 2023-04-27 15:47:45 -07:00
rebuilt
ca31bd3217 cap response rate per grade at 100 2023-04-26 16:54:43 -07:00
rebuilt
541f29108b Rename DataAvailability to Summary 2023-04-20 20:58:15 -07:00
rebuilt
596ce25737 Remove surveys table from codebase since it's no longer needed after changing logic surrounding response rates and score calculations 2023-04-20 20:51:04 -07:00
rebuilt
28f7d5647e Set a minimum threshold of 10 survey item responses to calculate scores per survey item 2023-04-18 14:05:09 -07:00
rebuilt
cfe97c6718 rename counts_by_grade method to the more descriptive enrollment_by_grade 2023-04-18 14:00:56 -07:00
rebuilt
128748addd 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-18 13:59:29 -07:00
rebuilt
bc6d2dcaf9 disable puts statement from calculator 2023-04-03 13:11:44 -07:00
rebuilt
b250ebe415 Memoize schools in SurveyItemValues and academic_years in AcademicYear
for performace improvement
2023-03-28 03:38:52 -07:00
rebuilt
c15cb7b483 Change survey data loader spec to use factorybot objects instead of loading seeds. Change databasecleaner to use transaction. Add back babel-preset dependency to fix failing javascript test in production. 2023-03-28 03:06:17 -07:00
rebuilt
dcade06ce2 Fix failing tests 2023-03-21 16:16:07 -07:00
rebuilt
c8ef3b11c9 file must exist so emptying the file to see if the app stops crashing 2023-03-18 13:49:44 -07:00
rebuilt
86e67d3965 Temporarily disable reporting because its crashing production. No data has been seeded and the logs are reporting this class as causing the crash? 2023-03-18 13:46:54 -07:00
rebuilt
4c4ccc01cc Merge branch 'rpp-response-rate' to bring in changes to test files 2023-03-15 15:00:25 -07:00
rebuilt
eb043f2b2d Add placeholder for testing response rate calculation 2023-03-10 14:50:09 -08:00
rebuilt
e6f7d27e0c Implement bullet suggestions for GPS report 2023-03-01 10:53:45 -08:00
rebuilt
b6b88da328 Add all pillars 2023-02-28 19:08:11 -08:00
rebuilt
8128af200b add first pillar 2023-02-28 17:50:21 -08:00
rebuilt
c0332955f3 move csv require statement to application.rb 2023-02-27 15:47:20 -08:00
rebuilt
d9c47dbc4d fix boston usage 2023-02-27 12:48:14 -08:00
rebuilt
045bd15485 Fix boston 2023-02-27 12:47:47 -08:00
rebuilt
cb970895ac Scope doesn't work. Revert to using class method. 2023-02-27 12:39:19 -08:00
rebuilt
bdb9455919 Move raw_response_rate method down to student/teacher classes 2023-02-27 12:36:33 -08:00
rebuilt
5d07f06a65 Add scope for boston 2023-02-27 12:35:44 -08:00
rebuilt
79f7915edf Add scopes to SurveyItem for selecting survey items by grade and
subcategory.   Add notes to student response rate calculator
2023-02-24 00:41:01 -08:00
rebuilt
5e0ba556bf Automatically detect the survey type by grade 2023-02-23 14:20:21 -08:00
Nelson Jovel
cfece47993 document other queries for story 2023-02-23 09:58:35 -08:00
rebuilt
396e8e9008 example queries 2023-02-22 21:26:08 -08:00
rebuilt
52d2676f80 Populate db with grade level data 2023-02-21 16:58:08 -08:00
rebuilt
03c6bff7bb Load survey responses from sftp folder 2023-01-12 17:04:57 -08:00
rebuilt
72c90b8f47 Add selector for all data 2022-11-18 08:20:26 -08:00
rebuilt
7d7bee6498 Add gender disagreggation 2022-10-27 15:56:50 -07:00
rebuilt
a1f3dfaa33 Load gender information to survey item responses 2022-10-21 21:38:33 -07:00
rebuilt
8cdd1b6285 Create gender class. Load genders to database from demographics file 2022-10-21 17:47:52 -07:00
rebuilt
89a7f27b88 Finishes #183092367. Adds ui and graphs to show grade level disaggregations 2022-10-16 22:03:25 -07:00
rebuilt
d89a207c31 Load student data for all years and calculate race scores for all 2022-08-20 15:07:15 -07:00
rebuilt
191abdbd50 Align styling to closer match design 2022-08-15 13:46:19 -07:00
rebuilt
a4dbeb6718 Change logic on analyze page to include admin data when presenting insufficiency messages and enable/disable academic year checkboxes 2022-08-15 13:31:36 -07:00
rebuilt
105f30f220 Change race score calculations so the average bubbles up through survey_items
-> scales -> measure.
Precalculate averages for performance.
2022-08-10 09:58:11 -07:00