Commit graph

158 commits

Author SHA1 Message Date
Nelson Jovel
ebcb27ca6d fix: correctly memoize student_survey_items_with_sufficient_responses so that on the analyze page, when the first year has insufficient responses, it doesn't affect all subsequent years 2024-06-13 09:02:19 -07:00
Nelson Jovel
8516111a15 chore: refactor analyze page 2024-06-12 10:47:01 -07:00
Nelson Jovel
3ad47e6bd5 feat: switch analyze page to use hotwire. Fix n_size count for teacher 2024-06-12 10:43:48 -07:00
7373d8bae4 Chore: Reduce queries 2024-05-10 14:22:24 -04:00
Nelson Jovel
2561fa28fc feat: Split academic year into seasons if the academic year's range is
initialized with a season, i.e. "2024-25 Fall".  Update scapers for
admin data, enrollment and staffing to use the new range standard
correctly.   Update the loaders for admin data, enrollment and staffing
so that it populates all seasons in a given year.  So admin data for
2024-25 gets loaded into "2024-25 Fall" and "2024-25 Spring".  Add tests
for the new range format.  Set the default cutoff for the start of Spring season will be the last Sunday in February
2024-04-27 14:05:02 -07:00
Nelson Jovel
67ffc996a8 Revert "Split academic year into seasons if the academic year's range is"
This reverts commit a5d4cccb37.
2024-04-26 13:48:30 -07:00
Nelson Jovel
a5d4cccb37 Split academic year into seasons if the academic year's range is
initialized with a season, i.e. "2024-25 Fall".  Update scapers for
admin data, enrollment and staffing to use the new range standard
correctly.   Update the loaders for admin data, enrollment and staffing
so that it populates all seasons in a given year.  So admin data for
2024-25 gets loaded into "2024-25 Fall" and "2024-25 Spring".  Add tests
for the new range format.  Set the default cutoff for the start of Spring season will be the last Sunday in February
2024-04-26 13:31:50 -07:00
Nelson Jovel
d52eebbc5c fix: Fixes #187294757. Data is hidden when selecting multiple years if the default year has no student data to show 2024-03-26 15:34:07 -07:00
Nelson Jovel
a191271504 Revert "fix: Fixes #187294757. Data is hidden when selecting multiple years if the default year has no student data to show"
This reverts commit b9bdd707b5.
2024-03-26 15:32:54 -07:00
Nelson Jovel
993fafcc0e Revert "fix: Makes visible the graphs by grade"
This reverts commit 455f716b6d.
2024-03-26 15:32:34 -07:00
Nelson Jovel
455f716b6d fix: Makes visible the graphs by grade 2024-03-26 14:54:37 -07:00
Nelson Jovel
b9bdd707b5 fix: Fixes #187294757. Data is hidden when selecting multiple years if the default year has no student data to show 2024-03-26 14:42:32 -07:00
Nelson Jovel
9f83b3dae4 fix: add pre-k to list of grades 2024-03-05 22:32:34 -08:00
Nelson Jovel
59b7416a3a feat: change 'school admin data' to 'school data' 2024-01-31 11:02:23 -08:00
Nelson Jovel
f3fddd67b0 perf: reduce number of queries for respondents 2024-01-12 13:40:35 -08:00
Nelson Jovel
0ebaf77bbd feat: don't show collection date of response rate if there is no survey data 2023-12-18 15:28:39 -08:00
Nelson Jovel
6e7e64c039 chore: rename counts_by_grade to enrollment_by_grade for clarity 2023-12-18 15:28:29 -08:00
Nelson Jovel
b4e07434a1 feat: don't double count early ed students who are taking survey in parts 2023-12-18 15:28:19 -08:00
rebuilt
85ba1218e3 feat: Rename income labels to 'Economically Disadvantaged' and 'Not Economically Disadvantaged' 2023-12-06 14:57:51 -08:00
rebuilt
91ab2dd82e feat: instead of the analyze graph label being a simple string, turn it into an array of strings where each item will be placed on a new line 2023-10-27 15:39:50 -07:00
rebuilt
bf3fa8765d fix: make sure sped is taken into account when caching analyze page 2023-10-24 13:07:08 -07:00
rebuilt
ef44c41965 feat: add special education disaggregation 2023-10-24 13:05:57 -07:00
rebuilt
18ab51c860 chore: upgrade to rails 7.1.
upgrade rspec

fix failing tests

upgrade devise
2023-10-24 13:04:05 -07:00
rebuilt
2fd56047d4 Add disaggregation by ELL 2023-10-24 12:51:12 -07:00
rebuilt
ce5340648f fix: hide scores on analyze page for scores that don't meet the student threshold of 25% 2023-10-24 10:27:25 -07:00
rebuilt
a0807295ed feat: add popover to analyze graphs that displays the n-size of the different columns. Make sure to only calculate a score for a race if there are more than 10 respondents to a question. 2023-10-24 09:21:09 -07:00
rebuilt
a97838c194 Reorder gender columns 2023-10-24 09:05:41 -07:00
rebuilt
2ac30bb107 feat: Add income table to the database. Add seeder for income. Add a reference to income from survey item response. Update the loader to import income data from the survey response csv. Refactor analyze controller to extract presenter. Add corresponding specs. Add income graph to analyze page 2023-10-24 09:05:27 -07:00
rebuilt
8e33a4178c fix: fix crash when viewing income graph on analyze page 2023-10-19 11:16:43 -07:00
rebuilt
f230f76bc6 fix: Overall response rate was incorrectly using the updated_at date instead of the recorded date. Also, it was just using the last date for all academic years instead of the last date the survey was taken per academic year. 2023-08-17 07:06:13 -07:00
514bdad484 Add cutpoint table popover to gauges 2023-06-30 21:23:47 +00:00
rebuilt
46b5cbef2d perf: Reduce number of queries. Remove unneeded methods. Combine
subcategory and measure queries in controller
2023-06-19 20:51:54 -07:00
960fcd570c Add Overall Response Rate Popover 2023-05-31 18:27:15 +00: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
e30a999aee Move color definitions out of response rate presenter and into _colors.scss 2023-05-22 12:29:26 -07:00
rebuilt
a71ebbc4e4 Add Overall Response Rate 2023-05-22 16:03:34 +00:00
rebuilt
1a27b980d0 Round all averages to two decimal places 2023-05-12 13:13:20 -07:00
rebuilt
c33c00b845 Rename DataAvailability to Summary 2023-04-22 10:44:06 -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
6764f31cbb Make sure when checking for sufficient gender responses that we only check student survey items 2023-04-04 17:03:24 -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
e37bec083f Fix icon not showing up on category page 2023-03-22 16:54:53 -07:00
rebuilt
1595c3a58c rename admin data to school data 2023-03-22 16:48:38 -07: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
669fb7f1f0 Correct grade level for kindergarten and add one off task to load test data 2023-02-09 14:51:53 -08:00
rebuilt
3a744db975 Start adding kindergarten 2023-01-17 15:27:15 -08:00
rebuilt
b0e84ed82a Modify names and descriptions of subcategories and measures 2023-01-13 12:05:02 -08:00
rebuilt
10515893ff Add elementary school questions to framework. 2023-01-12 17:05:00 -08:00
rebuilt
b884021f66 Rename race column from 'Race/Ethnicity not listed' to 'Not Listed' 2022-12-14 14:25:19 -08:00