Nelson Jovel
ea079e927b
chore: rename counts_by_grade to enrollment_by_grade for clarity
2 years ago
Nelson Jovel
d90a83e510
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
3f44613085
chore: various fixes for race and gender categorization during cleaning.
...
Also add tests for race and gender categorization
2 years ago
Nelson Jovel
e203be056a
chore: refactor code so we use a hash instead of a switch statement for long-term performance
2 years ago
Nelson Jovel
7dc881f654
chore: refactor code to put logic into models
2 years ago
Nelson Jovel
6e05909423
chore: fix categorization of gender
2 years ago
Nelson Jovel
6776ec8e2c
chore: add prefer not to disclose to gender. Add code of 7 as an option for prefer to self describe
2 years ago
Nelson Jovel
e325f38c43
Convert gender and race text into qualtrics codes during cleaning. Abide by 'prefer not to disclose' for self reported race. Give priority to self reported data but use SIS information as backup
2 years ago
rebuilt
83661540b7
chore: upgrade to rails 7.1.
...
upgrade rspec
fix failing tests
upgrade devise
2 years ago
rebuilt
48e795fcfb
feat: add special education disaggregation
2 years ago
rebuilt
060d7aa55a
Add disaggregation by ELL
2 years ago
rebuilt
463e4c9452
fix: hide scores on analyze page for scores that don't meet the student threshold of 25%
2 years ago
rebuilt
4afa030141
chore: remove precalculated race scores. Calculate race scores on every reload
2 years ago
rebuilt
f035c4d9ad
fix: Filter out responses that don't correspond to the grades the school serves
2 years ago
rebuilt
5f49746bf4
feat: Rename income labels to 'Economically Disadvantaged' and 'Not Economically Disadvantaged'
2 years ago
rebuilt
1cb2bb9dc0
fix: zeitwork eager loads all require statements. I removed twilio from Gem dependencies so I had to remove it from code as well or it breaks deployments
2 years ago
rebuilt
6edc0db868
feat: Round up response rate. Survey response rates above 24.5 will now meet sufficiency
2 years ago
rebuilt
bec80b405a
fix: revert rounding up the response rate so we can make sure to patch a bug first. Only show gender/race/grade/income graphs if the the school meets the minimum response rate of 25%
2 years ago
rebuilt
234eae6d3d
feat: Round up response rate. Survey response rates above 24.5 will now meet sufficiency
2 years ago
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
2 years ago
rebuilt
703928c234
Add date range to subcategory report export
2 years ago
Gabe Farrell
37013c4b12
Use weighted average instead of simple average when calculating response rates
3 years ago
rebuilt
fae530d21f
perf: Reduce number of queries. Remove unneeded methods. Combine
...
subcategory and measure queries in controller
3 years ago
rebuilt
d306319de1
perf: memoize function when calculating response rates
3 years ago
rebuilt
452876ef09
perf: Add another index to surveyitemresponses. Implement bullet suggestions. Memoize a function in measure.rb
3 years ago
rebuilt
1aaed0682e
Modify subcategory report to be threaded
3 years ago
rebuilt
aab4e78a71
Add District, School Code, and Grade columns to subcategory report
3 years ago
rebuilt
c2503541ff
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
87ca23df79
Add subcategory report
3 years ago
rebuilt
2e3461b685
Add subcategory report
3 years ago
rebuilt
4509c157fa
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
d48a4efda2
Round all averages to two decimal places
3 years ago
rebuilt
3c30808a5e
Fix response rates for small schools by accounting for expected minimum counts of responses less than 10
3 years ago
rebuilt
359e266a6c
Remove unused TODOs
3 years ago
rebuilt
ca31bd3217
cap response rate per grade at 100
3 years ago
rebuilt
541f29108b
Rename DataAvailability to Summary
3 years ago
rebuilt
596ce25737
Remove surveys table from codebase since it's no longer needed after changing logic surrounding response rates and score calculations
3 years ago
rebuilt
28f7d5647e
Set a minimum threshold of 10 survey item responses to calculate scores per survey item
3 years ago
rebuilt
cfe97c6718
rename counts_by_grade method to the more descriptive enrollment_by_grade
3 years ago
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
3 years ago
rebuilt
bc6d2dcaf9
disable puts statement from calculator
3 years ago
rebuilt
b250ebe415
Memoize schools in SurveyItemValues and academic_years in AcademicYear
...
for performace improvement
3 years ago
rebuilt
c15cb7b483
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.
3 years ago
rebuilt
dcade06ce2
Fix failing tests
3 years ago
rebuilt
c8ef3b11c9
file must exist so emptying the file to see if the app stops crashing
3 years ago
rebuilt
86e67d3965
Temporarily disable reporting because its crashing production. No data has been seeded and the logs are reporting this class as causing the crash?
3 years ago
rebuilt
4c4ccc01cc
Merge branch 'rpp-response-rate' to bring in changes to test files
3 years ago
rebuilt
eb043f2b2d
Add placeholder for testing response rate calculation
3 years ago
rebuilt
e6f7d27e0c
Implement bullet suggestions for GPS report
3 years ago
rebuilt
b6b88da328
Add all pillars
3 years ago
rebuilt
8128af200b
add first pillar
3 years ago
rebuilt
c0332955f3
move csv require statement to application.rb
3 years ago
rebuilt
d9c47dbc4d
fix boston usage
3 years ago
rebuilt
045bd15485
Fix boston
3 years ago
rebuilt
cb970895ac
Scope doesn't work. Revert to using class method.
3 years ago
rebuilt
bdb9455919
Move raw_response_rate method down to student/teacher classes
3 years ago
rebuilt
5d07f06a65
Add scope for boston
3 years ago
rebuilt
79f7915edf
Add scopes to SurveyItem for selecting survey items by grade and
...
subcategory. Add notes to student response rate calculator
3 years ago
rebuilt
5e0ba556bf
Automatically detect the survey type by grade
3 years ago
Nelson Jovel
cfece47993
document other queries for story
3 years ago
rebuilt
396e8e9008
example queries
3 years ago
rebuilt
52d2676f80
Populate db with grade level data
3 years ago
rebuilt
03c6bff7bb
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