Nelson Jovel
75451648e5
chore: move code that normalizes race data to the Race class
2 years ago
Nelson Jovel
0359dae88a
chore: rename counts_by_grade to enrollment_by_grade for clarity
2 years ago
Nelson Jovel
d79635054c
fix: instead of looking for 'asian' at the start of a word, look for it
...
after a word boundary. This means it still doesn't get confused with
caucasian and it's more flexible whan asian appears inside other text
such as 'Caucasian and Asian and Black'
2 years ago
Nelson Jovel
fe039e3d04
chore: various fixes for race and gender categorization during cleaning.
...
Also add tests for race and gender categorization
2 years ago
Nelson Jovel
054e5603b7
chore: fix failing legacy tests
2 years ago
rebuilt
9d680c5159
chore: upgrade to rails 7.1.
...
upgrade rspec
fix failing tests
upgrade devise
2 years ago
rebuilt
acfdaf5587
feat: add special education disaggregation
2 years ago
rebuilt
245cde85cd
Add disaggregation by ELL
2 years ago
rebuilt
2a8148b8cd
fix: hide scores on analyze page for scores that don't meet the student threshold of 25%
2 years ago
rebuilt
6db93cb116
feat: Rename income labels to 'Economically Disadvantaged' and 'Not Economically Disadvantaged'
2 years ago
rebuilt
a1b580048b
chore: remove precalculated race scores. Calculate race scores on every reload
2 years ago
rebuilt
76ebcc6ef3
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
2 years ago
rebuilt
7373e2e52f
fix: Filter out responses that don't correspond to the grades the school serves
2 years ago
rebuilt
0c18aa2083
chore: Add cypress to codebase
2 years ago
rebuilt
0ed3af8a1f
Add date range to subcategory report export
2 years ago
Gabe Farrell
459e4b8d21
Use weighted average instead of simple average when calculating response rates
3 years ago
rebuilt
cee1c5fbc9
perf: Reduce number of queries. Remove unneeded methods. Combine
...
subcategory and measure queries in controller
3 years ago
rebuilt
f9d4b28969
perf: memoize function when calculating response rates
3 years ago
rebuilt
77e8d12a3b
perf: Add another index to surveyitemresponses. Implement bullet suggestions. Memoize a function in measure.rb
3 years ago
rebuilt
fb6f43e815
Modify subcategory report to be threaded
3 years ago
rebuilt
4dae0cb565
Add District, School Code, and Grade columns to subcategory report
3 years ago
rebuilt
81f8738d59
Fix: Ensure proper detection of survey type. Make sure to remove any survey item ids that end with the survey variant style of '-1'
3 years ago
rebuilt
6022739f07
use district short name when writing filename
3 years ago
rebuilt
0dfc9726d0
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
3 years ago
rebuilt
b5dc933187
Add subcategory report
3 years ago
rebuilt
c57ec6157c
Round all averages to two decimal places
3 years ago
rebuilt
6b2555c1f0
Fix response rates for small schools by accounting for expected minimum counts of responses less than 10
3 years ago
rebuilt
a066f464c7
fix failing tests
3 years ago
rebuilt
c42b569e78
cap response rate per grade at 100
3 years ago
rebuilt
0ed6cbe6b4
Rename DataAvailability to Summary
3 years ago
rebuilt
09963c3323
Remove surveys table from codebase since it's no longer needed after changing logic surrounding response rates and score calculations
3 years ago
rebuilt
30e006ee0d
Set a minimum threshold of 10 survey item responses to calculate scores per survey item
3 years ago
rebuilt
982f216c6c
rename counts_by_grade method to the more descriptive enrollment_by_grade
3 years ago
rebuilt
07ed8dd259
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
3 years ago
rebuilt
049ae4548f
Don't add another response rate record to the database. Just calculate on the fly. Otherwise we can run into a situation where we create two response rates for a given school/academic_year/subcategory
3 years ago
rebuilt
380048f5cd
Load survey responses from sftp folder
3 years ago
rebuilt
72c90b8f47
Add selector for all data
3 years ago
rebuilt
7d7bee6498
Add gender disagreggation
3 years ago
rebuilt
a1f3dfaa33
Load gender information to survey item responses
3 years ago
rebuilt
8cdd1b6285
Create gender class. Load genders to database from demographics file
3 years ago
rebuilt
89a7f27b88
Finishes #183092367 . Adds ui and graphs to show grade level disaggregations
3 years ago
rebuilt
d89a207c31
Load student data for all years and calculate race scores for all
3 years ago
rebuilt
191abdbd50
Align styling to closer match design
3 years ago
rebuilt
a4dbeb6718
Change logic on analyze page to include admin data when presenting insufficiency messages and enable/disable academic year checkboxes
3 years ago
rebuilt
105f30f220
Change race score calculations so the average bubbles up through survey_items
...
-> scales -> measure.
Precalculate averages for performance.
3 years ago
rebuilt
50b3bc678c
Columns for students by group graph change when corresponding race checkboxes are clicked
3 years ago
rebuilt
ff14bad102
Rename Student column to AllStudent so there isn't a naming clash with
...
the Student model.
3 years ago
rebuilt
26f739090b
add race columns to graph
3 years ago
rebuilt
94a58a87d7
Use modules to namespace classes for analyze page
3 years ago
rebuilt
c568e8bc06
move methods from analyze helper to background presenter
3 years ago
rebuilt
d44a5275b4
Address bug related to story #182855028
3 years ago
rebuilt
12e4e3f177
import students
3 years ago
rebuilt
765ad6a624
Create ui for data filters. Add listeners to direct to the correct url. Update ui based on the list of selected params
3 years ago
Nelson Jovel
757638f6ca
continue refactoring
3 years ago
rebuilt
b7abf2bc8b
continue refactoring
3 years ago
rebuilt
e89358dacc
implement suggestions from static code analysis tools
3 years ago
rebuilt
bb5f668497
Refactor code based on rubocop and reek suggestions
3 years ago
rebuilt
18b479b8b2
Refactor based on rubocop and reek suggestions
3 years ago
rebuilt
ea09fa06b7
Add popup message on admin data exclamation point indicators
3 years ago
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
3 years ago
rebuilt
7c0794f261
Remove old todos
3 years ago
rebuilt
62b6503816
Renamed remove_zeros method to remove_blanks
3 years ago
rebuilt
01d4448fde
Refactored score methods
3 years ago
rebuilt
fa35a4230c
refactor teacher response rate calculator
4 years ago
rebuilt
a6ad132c81
Add counter caches
4 years ago
rebuilt
c03615cb43
Rename ResponseRate to ResponseRateCalculator. Create a new response
...
rate model. Create a loader to refresh response rates for all
subcategories.
Use precalculated response rates in views
Wrap more elements in page caching
Calculate a response rate for a subcategory if one does not already
exist
4 years ago
rebuilt
0e9acc7467
Rename response rate to response rate calculator
4 years ago
rebuilt
d15e89f37c
memoize all functions in measure
4 years ago
rebuilt
a769996054
Refactor response rate into response rate calculator
4 years ago
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`.
4 years ago
rebuilt
ee80867609
memoize functions in measure.rb
4 years ago
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.
4 years ago
Nelson Jovel
30c97f4428
Refactor grouped_bar_column_presenter so it calculates the score from
...
the measure given to the initializer
4 years ago
Nelson Jovel
3d7e62f21f
Draw the teacher survey data bar. Finishes #182226823
4 years ago
Nelson Jovel
a134de3fdd
Implement bullet suggestions and cache overview graph
4 years ago
Nelson Jovel
7a9830915b
Create grouped bar chart on analyze page
4 years ago
Nelson Jovel
57bfaa51c6
Exclude boston results. Completes #182117456
4 years ago
Nelson Jovel
c2e40fed8d
Do not count empty survey items in response rate calculations. Fixes #181922483
4 years ago
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
4 years ago
Nelson Jovel
c475744939
Modify score calculations. Ignore any survey item scores of 0.
...
Never include zero when performing calculations for scores.
4 years ago
Nelson Jovel
87e6a998b7
Add one-off script to list scales that lack survey responses
4 years ago
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
4 years ago
Nelson Jovel
9ecc501e24
Display measure scores. Finishes #181754978
4 years ago
Nelson Jovel
5a9e8a9b01
Add metadata for 2019-20 year. Finishes #181530277
4 years ago
Nelson Jovel
ed7a3b8a3d
Autoformat code with rubocop
4 years ago
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
4 years ago
Nelson Jovel
c0a8905fba
Cap response rate at 100 for both students and teachers
4 years ago
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
4 years ago
rebuilt
2a2777745a
Change the sufficiency threshold from a static number of minimum responses to a minimum response rate of 25 percent
4 years ago
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.
4 years ago
rebuilt
378ea7dda9
Small fix to assignment operator in student response rate
4 years ago
rebuilt
5cccbcdf9b
Refactor student_response_rate
4 years ago
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 .
4 years ago
rebuilt
e1f50fef9e
Add 2019-20 year teacher surveys and activate the year selector
4 years ago
rebuilt
67d51aff5e
Refactor response rate
4 years ago
rebuilt
e69f850cc5
Add missing tests. Remove unused code. Filter out legacy specs from code coverage report
4 years ago
rebuilt
3ae0d02462
Cap teacher response rate at 100 percent
4 years ago
rebuilt
2655a36bfc
Replace integer devision with float division for accurate response rate calculation
4 years ago
rebuilt
f30f359406
Add teacher response rate
4 years ago
rebuilt
59865cd874
Show response rate for students
4 years ago