Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore CSV download functionality on School Overview page #1385

Open
alexsoble opened this issue Jan 17, 2018 · 5 comments
Open

Restore CSV download functionality on School Overview page #1385

alexsoble opened this issue Jan 17, 2018 · 5 comments

Comments

@alexsoble
Copy link
Member

alexsoble commented Jan 17, 2018

This story started when we noticed a client-side error report from Rollbar. Looking at the error report, it was clear that a Somerville educator had downloaded the HTML for an Insights page to their local machine.

@snoopyuri reached out to the educator. Turns out they were trying to download the HTML for the School Overview page because they wanted to work with the data in the students table. @snoopyuri and I both remembered that there used to be a "Download as CSV" link on this page, but looking in the app and the code, it's not there anymore.

I did some browsing through the commit history to find an example of that functionality. You can see it in the renderDownloadLink function in the commit version from back in April 2016:

https://github.com/studentinsights/studentinsights/blob/123088c5da7a85cd75e45ce06299adee08603d7d/app/assets/javascripts/school_overview/school_overview_page.js

@kevinrobinson, do you remember why we removed renderDownloadLink? I don't, and I haven't been able to find the commit that removed it quite yet.

Unless the reason we removed it was super-compelling, I think this would be good functionality to restore. The fact that Somerville educators are downloading HTML pages to try to duplicate this functionality shows the user need!

@alexsoble
Copy link
Member Author

Looks like it moved to the SliceButton component here: ed44ef1

@alexsoble
Copy link
Member Author

OK here's the PR: #804. @kevinrobinson, I forgot the exact reasoning behind this PR. Should we restore the link unless we can think of a reason we shouldn't?

@kevinrobinson
Copy link
Contributor

kevinrobinson commented Jan 17, 2018 via email

@alexsoble
Copy link
Member Author

Talking with @snoopyuri and team about this — maybe we add some kind of pop up message reminder about student data confidentiality or something to the header row.

@kevinrobinson
Copy link
Contributor

Code for doing this is here: 9530534. I did it in #1744 but backed it out since it had a lot of other changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants