Commit graph

102 commits

Author SHA1 Message Date
rebuilt
513445dc74 feat: ECP-126 Add measure and scale level graphs for parents by language
WIP: refactor so multiple graphs can be defined for a given slug

WIP: fixed scale view but broke 'All Parent' graph

WIP: working state.  All views working properly

WIP: Refactor graph_map into two collections; measure_level_graphs and scale_level_graphs

WIP: refacter GroupedBarColumnPresenter to accept a 'construct' instead of specifying measure or scale

WIP: fix scale graphs being shown on incorrect view

WIP: Merge parents_by_language class with parents_by_language_by_scale so it can handle display of both measure-level and scale-level graphs
2025-05-09 15:54:43 -07:00
rebuilt
0f457becf0 feat: create a parents by language graph
Update demographics table with lanugage options

Create a lanugage table to hold the new languages

Update the demographic loader to input languages into the database

Update the cleaner to read the language column

Update the parent table to hold a reference to a language

Update the data uploader script to read the language from the csv and update the language information for any parent items that already exist (or create database entries if none already exist)

update the analyze interface to add controls for selecting ‘parents by group’ and a dropdown for ‘parent by language’

Update the analyze controller to read the parent-by-group parameter

Create a graph for the parent-by-group view

Bubble up averages for language calculations.

Make sure n-size only counts responses for a given measure.
2025-04-28 16:42:11 -07:00
rebuilt
b9ba8abf73 Refactor GroupedBarColumnPresenter to accept a configuration so that a
column can by given on the fly (dependency injection). Show Parent
graphs on analyze page.
2025-03-11 12:56:41 -07:00
Nelson Jovel
eb6fde5f88 fix: failing tests 2024-11-08 15:56:56 -08:00
Nelson Jovel
7d4db37ee7 feat: show parent scales on variance chart 2024-10-11 10:19:23 -07:00
Nelson Jovel
6f3634582e feat: Add parent button to overview page and alter 'School Quality Framework Indicators' section to show parent scales 2024-10-08 15:16:50 -07:00
Nelson Jovel
37042aead5 feat: Show parent scales on browse page 2024-09-25 11:45:16 -07:00
Nelson Jovel
3b3bb52523 chore: refactor analyze page 2024-06-12 10:35:03 -07:00
Nelson Jovel
ccb04511bf feat: switch analyze page to use hotwire. Fix n_size count for teacher 2024-06-11 13:48:02 -07:00
Nelson Jovel
90d1419d9c feat: change 'school admin data' to 'school data' 2024-01-31 10:59:39 -08:00
rebuilt
83661540b7 chore: upgrade to rails 7.1.
upgrade rspec

fix failing tests

upgrade devise
2023-10-11 10:58:52 -07:00
rebuilt
315b398a5a 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:05:15 -07:00
rebuilt
b3efbdeb33 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-08-09 15:22:05 -07:00
rebuilt
a785c69c44 Add Overall Response Rate 2023-08-09 15:13:58 -07:00
rebuilt
5f49746bf4 feat: Rename income labels to 'Economically Disadvantaged' and 'Not Economically Disadvantaged' 2023-07-31 16:47:34 -07:00
rebuilt
ed3c6309ea Add test for income group 2023-07-07 15:44:31 -07:00
rebuilt
35c8199887 Reorder gender columns 2023-07-07 15:44:09 -07:00
rebuilt
4f035f6a63 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-07-07 09:14:36 -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
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
a21554c215 Fix failing test 2023-03-16 16:56:56 -07:00
rebuilt
10bf7177e4 Fix icon not showing up on category page 2023-03-16 16:23:17 -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
05ae1cd94b fix failing tests 2023-01-17 15:26:56 -08:00
rebuilt
10515893ff Add elementary school questions to framework. 2023-01-12 17:05:00 -08:00
rebuilt
87802c034e Add specs for admin bar messages 2022-12-13 10:10:32 -08:00
rebuilt
c58686c032 rename race and gender modules to avoid naming collision with race and gender classes 2022-12-12 16:38:37 -08:00
rebuilt
bb9ea9b22d Add admin data messages to analyze page for insufficient/irrelevant states 2022-12-11 16:00:44 -08:00
rebuilt
7d7bee6498 Add gender disagreggation 2022-10-27 15:56:50 -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
54ea1a1070 Change race score calculation from a minimum of 10 responses to meet
sufficiency to 10 students.
2022-08-11 11:39:28 -07:00
rebuilt
2be86a2b13 Disable race score loader tests so it passes github ci 2022-08-10 12:08:11 -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
rebuilt
50b3bc678c Columns for students by group graph change when corresponding race checkboxes are clicked 2022-08-04 21:21:22 -07:00
rebuilt
ff14bad102 Rename Student column to AllStudent so there isn't a naming clash with
the Student model.
2022-08-03 17:53:23 -07:00
rebuilt
93486eb132 Fix failing tests 2022-08-03 11:11:26 -07:00
Nelson Jovel
757638f6ca continue refactoring 2022-07-13 15:32:48 -07:00
rebuilt
fc853c4fbc Fix regression where we accidentally list the questions for measure 1B-i 2022-07-08 13:48:44 -07:00
rebuilt
deaf13c976 Modify behavior of insufficient data indicators for admin data items. Now we show indicators in line with the admin data item descriptions to indicate which items are missing data 2022-07-06 15:54:29 -07:00
rebuilt
3778aeb1d6 alter logic for insufficiency so that a count of 0 survey item responses is enough to trigger insufficiency
Implement large speed improvements to score calculations.  Add page caching to all pages.  Small speed improvements to response rate by filtering out
survey items without responses with `none?` `method vs count == 0`.
2022-06-14 11:17:59 -07:00
rebuilt
1155f74ca9 Set a minimum bar height for analyze graphs 2022-06-10 09:45:52 -07:00
rebuilt
50256cacce Create academic year checkbox selectors. Refresh page with years selected on
checkbox change.  Draw bar graphs for each academic year selected.
Center bar graphs in their column.  Color the columns to match the
sample colors on the checkboxes.  Add scores on beta to top of graph.
Automatically display the most recent year of data for the district.
Modify logic for the insufficient data message or the 'measure not based
on student/teacher surveys' message so it only shows if there are no
bars with data to display.
2022-06-08 15:42:54 -07:00
Nelson Jovel
30c97f4428 Refactor grouped_bar_column_presenter so it calculates the score from
the measure given to the initializer
2022-06-02 13:10:31 -07:00
Nelson Jovel
9837fbf0d0 If the measure is not based on a type of data(student/teacher) or if there is insufficent data to calculate a score, show a message on the graph indicating such 2022-05-26 12:05:25 -07:00
Nelson Jovel
3d7e62f21f Draw the teacher survey data bar. Finishes #182226823 2022-05-25 19:44:29 -07:00
Nelson Jovel
c49dee0a63 Do not show question prompts for measure 1B-1. Finishes #181921933 2022-04-21 12:06:50 -07:00