Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
School roster: Add minimal download CSV button #2673
Who is this PR for?
New Bedford MS folks
What problem does this PR fix?
We added this back in 2016 in a particular format as the first way to export to PowerBI, and then removed it in December 2016. We noticed in January 2018 that it wasn't here anymore, but didn't take action since no one was missing it :) I think we didn't immediately re-add it since the old way we used in Healey originally wasn't fast enough for a larger school like Normandin. This past June (#2507) I optimized how this works for a districtwide list, but that was only for project leads so includes things like student address and race that we'd want to scrub from an export on the overview page.
What does this PR do?
This adds CSV download, deferred to user action. We'll deploy and see if it works well enough with large schools, or whether we need to swap to the server side. This doesn't download the exact same data as is shown in the UI; this PR is just aimed at seeing if this works well enough with larger schools.
Also separately updates the server-side export (only exposed to project leads) to use a safelist rather than grabbing all fields on the model.
Screenshot (if adding a client-side feature)
Which features or pages does this PR touch?
Does this PR use tests to help verify we can deploy these changes quickly and confidently?