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

Fixed encoding server error + wrote CSV download tests #247

Merged
merged 2 commits into from Apr 2, 2019

Conversation

Samwalton9
Copy link
Member

We were getting a server error (https://phabricator.wikimedia.org/T219770) relating to non-ascii partner names in CSV downloads. I poked around trying to fix the encoding for a little while before realising the simplest solution was to just remove the largely unnecessary partner name from the CSV header. If you're downloading a CSV from an individual partner page I can't see that being very useful information to include in the actual file.

While here I also realised we had a grand total of 2 CSV download tests and they were only for the pageviews. As far as I can tell we didn't even have a test for the Dashboard page returning a 200. So I also wrote tests to cover every CSV download view :)

@Samwalton9 Samwalton9 requested a review from jsnshrmn April 2, 2019 09:16
Copy link
Member

@jsnshrmn jsnshrmn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is all win. Thanks @Samwalton9!

@jsnshrmn jsnshrmn merged commit d7744b8 into WikipediaLibrary:master Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants