Commit graph

198 commits

Author SHA1 Message Date
Nelson Jovel
7a9830915b Create grouped bar chart on analyze page 2022-05-20 20:24:23 -07:00
Nelson Jovel
57bfaa51c6 Exclude boston results. Completes #182117456 2022-05-11 11:22:05 -07:00
Nelson Jovel
c2e40fed8d Do not count empty survey items in response rate calculations. Fixes #181922483 2022-04-29 07:40:47 -07:00
Nelson Jovel
0b502ce826 When calculating response rate, only take into account survey items with associated responses. Ignore any survey items with no responses. Finishes #181922483 2022-04-20 13:53:45 -07:00
Nelson Jovel
c475744939 Modify score calculations. Ignore any survey item scores of 0.
Never include zero when performing calculations for scores.
2022-04-20 13:49:27 -07:00
Nelson Jovel
87e6a998b7 Add one-off script to list scales that lack survey responses 2022-04-13 20:15:39 -07:00
Nelson Jovel
9c954f97ec Update admin data collection rate numbers on browse page. Also, if all admin data has been collected, do not show 'insufficient data' indicator. Finishes #181754853 2022-04-13 20:14:25 -07:00
Nelson Jovel
9ecc501e24 Display measure scores. Finishes #181754978 2022-04-06 13:09:33 -07:00
Nelson Jovel
5a9e8a9b01 Add metadata for 2019-20 year. Finishes #181530277 2022-03-23 19:13:52 -07:00
Nelson Jovel
ed7a3b8a3d Autoformat code with rubocop 2022-03-04 15:29:54 +01:00
Nelson Jovel
91308b93e5 Visualize survey responses even when a response rate cannot be
calculated.  Set the response rate to N / A for data that has no total
student and teacher data for a certain year and school
2022-03-04 15:17:43 +01:00
Nelson Jovel
c0a8905fba Cap response rate at 100 for both students and teachers 2022-03-04 14:53:51 +01:00
rebuilt
286e74b651 Seed db with surveys to keep track of school, year, and survey type
Seed db with survey_item information to keep track of which survey_item is on the short form survey.  REcalculate response rate depending on whether school to regular survey or short form survey.

Correct score for short form schools.  Finishes #181284202
2022-03-03 10:44:41 +01:00
rebuilt
2a2777745a Change the sufficiency threshold from a static number of minimum responses to a minimum response rate of 25 percent 2022-02-28 15:36:49 +01:00
rebuilt
d4df7cbc06 Add scales to framework. Change calculations to first group and then
average those groupings and the way up the framework.  Likert scores for
a survey_item are averaged.  Then all the survey_items in a scale are
averaged.  Then student scales in a measure are averaged.  And teacher
scales in a measure are averaged.  Then the average of those two
calculations becomes the score for a measure.  Then the measures in a
subcategory are averaged.
2022-02-24 14:53:06 +01:00
rebuilt
378ea7dda9 Small fix to assignment operator in student response rate 2022-02-11 23:18:49 +01:00
rebuilt
5cccbcdf9b Refactor student_response_rate 2022-02-11 23:05:03 +01:00
rebuilt
fcec3de233 Modify collection rate for admin data items. Take into account if a
school is a high school and if the admin data item is for high schools
only.  Finishes: #181154375.
2022-02-11 18:54:14 +01:00
rebuilt
e1f50fef9e Add 2019-20 year teacher surveys and activate the year selector 2022-02-07 15:04:25 +01:00
rebuilt
67d51aff5e Refactor response rate 2022-02-02 11:04:30 +01:00
rebuilt
e69f850cc5 Add missing tests. Remove unused code. Filter out legacy specs from code coverage report 2022-02-01 19:33:24 +01:00
rebuilt
3ae0d02462 Cap teacher response rate at 100 percent 2022-02-01 16:58:05 +01:00
rebuilt
2655a36bfc Replace integer devision with float division for accurate response rate calculation 2022-02-01 15:28:25 +01:00
rebuilt
f30f359406 Add teacher response rate 2022-01-28 17:10:46 +01:00
rebuilt
59865cd874 Show response rate for students 2022-01-27 22:43:10 +01:00
Nelson Jovel
bb20ff506b Correct error affecting subcategory scores where teacher or student survey items below the threshold were still being included in the score for the subcategory.
Ensure queries for survey item responses take into account the school
and academic year.
2022-01-12 20:32:24 +01:00
Nelson Jovel
5a8d032dd0 Set up bullet gem. Implement bullet gem suggestions. 2022-01-07 16:58:35 +01:00
Nelson Jovel
3408ecd749 Show benchmark boundaries for subcategories that only include admin data 2022-01-03 13:14:22 +01:00
Nelson Jovel
ad03606d66 Add benchmarks to survey and admin data items. Remove them from measures. Modify seeder
Calculate benchmarks for measures based on a weighted average of survey
and admin data items

Added architectural records
2021-12-28 14:10:34 +01:00
Nelson Jovel
aeb6a45a45 Show partial data indicators on variance chart 2021-12-09 14:51:28 -05:00
Liam Morley
915a4c1aaf Remove associated survey item responses when we remove schools 2021-12-01 12:37:25 -05:00
Liam Morley
aa4ce86eaa Show icon/explanation in measure accordion when a section has insufficient data 2021-12-01 11:44:07 -05:00
Liam Morley
413096dfe2 Extract legacy parts of the codebase into its own module 2021-11-16 17:19:05 +01:00
Liam Morley
cf6e80ce6b Show modal when no measures for a school/year have meet their threshold 2021-11-10 15:46:49 -05:00
rebuilt
edeb3f4e59 Prevent memory errors by avoiding creating active record objects when
not necessary.
2021-11-08 21:28:30 +01:00
Liam Morley
f8523f1e6a Display measure data if student data is sufficient OR teacher data is sufficient 2021-11-05 15:14:04 -04:00
Alex Basson
228cf137ad Finishes #179904795. Adds prompts to measures section on browse page 2021-11-01 20:33:45 +01:00
Liam Morley
f5e5abc27e Use public score_for_measure method instead of private 'for_measure' scope 2021-10-28 09:22:24 -04:00
Liam Morley
f3c632ea2a Take sufficient data requirements into account when calculating score for subcategory 2021-10-28 08:47:08 -04:00
Liam Morley
882fa84de9 Unify how we sort SQM Categories 2021-10-26 15:05:30 -04:00
Alex Basson
fa3241da65 Extract SurveyItemResponse.score_for_subcategory method from SubcategoryPresenter 2021-10-22 16:40:30 -04:00
Alex Basson
2abf2d352a Implement correct policy regarding whether there exist sufficient data for a measure 2021-10-22 16:02:03 -04:00
Alex Basson
da6711c571 Rename SurveyItemResponse.score -> .score_for_measure 2021-10-22 09:57:45 -04:00
Alex Basson
07b7561b55 Move score computation into SurveyItemResponse 2021-10-21 21:30:55 -04:00
Alex Basson
10e70557bd Display insufficient data note. TODO: remove measures from variance chart 2021-10-21 21:30:55 -04:00
rebuilt
770ebc580e Updated to rails 6. Passing tests 2021-10-15 15:06:00 +02:00
Liam Morley
a406205e20 Completes Sub Categories and Measures for "All " Category Tabs -
Milford High School (Milford District).  Add tabs to top navigation [#179727241]
2021-10-08 22:37:19 +02:00
Liam Morley
25578a896f we have a gauge! next up, let's style the page 2021-10-01 13:32:10 -04:00
rebuilt
d2bdec3d37 Upgrade to rails 5.1.7, coffee-rails 4.2. Remove phantomjs/poltergeist. Remove deprecated call to halt_callback_chains_on_return_false method. Change attribute_was calls to attribute_before_last_save 2021-09-24 11:52:22 -04:00
Alex Basson
98e7f3ce57 Update survey response data load to conform to survey response CSV standard 2021-09-24 10:52:29 -04:00