Commit graph

347 commits

Author SHA1 Message Date
rebuilt
a0a88d497d fix: we deleted non-lowell schools from the master list so the journey spec completely failed. This commit fixes the basic case of viewing the overview page. Navigation to other pages seems broken in the spec but not when running in development. I'm not sure if I'll continue using apparition since it's no longer in active development. I'll wait to fix the rest of the flow until I decide what test framework I'll continue using 2023-06-26 14:05:51 -07:00
rebuilt
846e4a8149 update tests for subcategory report 2023-06-26 11:38:41 -07:00
rebuilt
878ba08a22 fix: There was an n+1 problem where we looked up the list of schools for
every row. Now we query the list of schools just once per file
2023-06-26 11:38:33 -07:00
rebuilt
d025a83a2b chore: remove errant comment 2023-06-12 16:06:07 -07:00
rebuilt
a19a30f5f3 Fix: failing subcategory report specs 2023-06-09 21:25:22 -07:00
rebuilt
a1f72a5273 Add tests to codify behavior of weighted average logic 2023-06-08 15:24:32 -07:00
rebuilt
0f23053294 It's possible for admin data likert score values to be above 5. If that happens, we
cap the likert score at 5.   This was happening already at the scraper
level but it's also now being done by the admin data loader for safety.
Also make sure to just update admin data instead of deleting and
reloading all values each load. Add tests to confirm this behavior
2023-06-03 16:47:03 -07:00
rebuilt
e058c523b6 Missing progress or duration information does not result in a row removed in the cleaning process 2023-06-02 15:18:03 -07:00
rebuilt
2a3f69b813 The overall response rate is artifically lower because we are including the number of all the students at the school, not just the number of students that took the survey. Updated the overall response rate presenter to return the count of only the grades that took the student survey. 2023-05-24 11:22:17 -07:00
rebuilt
08c946a469 Add subcategory report 2023-05-23 18:59:05 -07:00
rebuilt
f590bc9dd5 Add subcategory report 2023-05-22 16:40:39 -07:00
rebuilt
a71ebbc4e4 Add Overall Response Rate 2023-05-22 16:03:34 +00:00
rebuilt
dbfc9d1d3a 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:39:12 -07:00
rebuilt
a9316f18cb Make sure to use apparition for system specs 2023-05-16 13:33:55 -07:00
rebuilt
9f21a76ba4 Fix response rates for small schools by accounting for expected minimum counts of responses less than 10 2023-05-12 12:34:42 -07:00
rebuilt
c33c00b845 Rename DataAvailability to Summary 2023-04-22 10:44:06 -07:00
rebuilt
0bd70ca452 Remove surveys table from codebase since it's no longer needed after changing logic surrounding response rates and score calculations 2023-04-22 10:36:00 -07:00
rebuilt
aa3a67406b Set a minimum threshold of 10 survey item responses to calculate scores per survey item 2023-04-17 15:18:10 -07:00
rebuilt
65b8599c6e 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-08 10:59:48 -07:00
rebuilt
ba018e8f10 specify which unknown class to use 2023-04-08 10:55:09 -07:00
rebuilt
6fb65ddeaf Add tests to make sure teacher survey items don't pollute the graphs for
students of unknown genders
2023-04-05 16:21:16 -07:00
rebuilt
2c21a09231 Add tests to make sure teacher survey items don't pollute the graphs for
students of unknown genders
2023-04-05 15:45:32 -07:00
rebuilt
8bd65d367b make sure spec tests what it's supposed to test; that the value of the responses gets updated when a new information is loaded from another csv 2023-03-29 16:24:56 -07:00
rebuilt
282a671531 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-29 15:45:48 -07:00
rebuilt
36a6d93628 Capitalize 'data' in analyze graph. Remove the word 'admin' from data
sources count on browse page
2023-03-23 13:15:46 -07:00
rebuilt
310829514e Remove redundant DatabaseCleaner config setup 2023-03-22 17:07:07 -07:00
rebuilt
e37bec083f Fix icon not showing up on category page 2023-03-22 16:54:53 -07:00
rebuilt
825259bdd8 Merge branch 'rpp-response-rate' into rpp-main to bring in improvements
to how we get enrollment and staffing information.  Also speed up tests
2023-03-22 16:52:55 -07:00
rebuilt
1595c3a58c rename admin data to school data 2023-03-22 16:48:38 -07:00
rebuilt
eb043f2b2d Add placeholder for testing response rate calculation 2023-03-10 14:50:09 -08:00
rebuilt
6b31fa9115 Batch imports for staffing data 2023-03-08 04:51:15 -08:00
rebuilt
d059177f0c load total students and batch importing records 2023-03-08 04:48:25 -08:00
Nelson Jovel
bfa5f28d7b Convert dese::loader from using seeder to factories 2023-03-07 22:38:52 -08:00
Nelson Jovel
7a7b78a9e0 convert student loader from seeding to factories 2023-03-07 22:09:58 -08:00
rebuilt
2cf2b7d7c1 turn off some slow tests that don't add value 2023-03-07 19:16:22 -08:00
rebuilt
2362d884eb Convert admin data loader from using seeder to using factory 2023-03-07 11:12:52 -08:00
rebuilt
d0219217de Convert response rate loader spec from using the seeder to using the factory 2023-03-07 10:35:38 -08:00
rebuilt
06f9d2f0e9 Scrape enrollment and staffing information. Seed enrollment and staffing information. Update DatabaseCleaner so it cleans up leftover information in the database. Remove old admin csvs from codebase. 2023-03-05 16:15:35 -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
20d4f966e7 singularize respondents 2023-02-27 13:02:34 -08:00
rebuilt
7915a1bc7c rename respondents to repondent 2023-02-27 12:48:37 -08:00
rebuilt
ae6d7151b3 Load student respondent information from enrollment loader 2023-02-27 12:29:16 -08:00
rebuilt
5e0ba556bf Automatically detect the survey type by grade 2023-02-23 14:20:21 -08:00
rebuilt
52d2676f80 Populate db with grade level data 2023-02-21 16:58:08 -08:00
rebuilt
7a5e02eed9 Remove unused method item_descriptions from admin_data_presenter and
student_survey_presenter.
2023-02-13 17:57:07 -08:00
rebuilt
a72fd373dc Remove unused method; item_descriptions 2023-02-13 17:49:38 -08:00
rebuilt
01851d8527 Make sure blank grades in csv load as nils instead of zeros 2023-02-10 13:44:48 -08:00
rebuilt
05ae1cd94b fix failing tests 2023-01-17 15:26:56 -08:00