Closed Bug 1087395 Opened 8 years ago Closed 8 years ago
add browser, browser
_version, browser _platform to analyzer csv download
The analyzers have the ability to do a csv download of responses from Input in the analyzer search view. This bug covers adding three more fields to that csv download: browser, browser_version and browser_platform.
Whiteboard: u=analyzer c=data p= s=input.adam
In a PR: https://github.com/mozilla/fjord/pull/415 Landed in master: https://github.com/mozilla/fjord/commit/8f622cfcd78b8cd993ab02df8d359d0a7a3d77b1 https://github.com/mozilla/fjord/commit/c4b6f85b4542f5d44d5df218b286c9836c334685 I'll push this tomorrow.
Assignee: nobody → aokoye
Status: NEW → ASSIGNED
Retro-actively marking myself as a mentor. Also, comment #1 should have been for bug #1087394--not this bug. This bug hasn't been worked on, yet.
Undoing the mentor flag. Adam's an OPW intern. After discussing with r1cky, we think that's not not quite what the mentor flag is for.
Pretty sure this is similar to bug #1087395, but there are two things that make working on this a little harder. First, your user needs to be in the analyzer's group. 1. Log into input with the persona identity you used to create a super user account when you set up the Vagrant vm. 2. On the front page of Input, in the upper right hand corner, you'll see an "Admin" link. If that's not there, then you didn't set this account up as a superuser. If you need to create a new superuser, there's some documentation for that here: http://fjord.readthedocs.org/en/latest/getting_started.html#setting-up-fjord 3. You should be in the Admin section now. Click on "Users". 4. Do a search for your user account. Then click on it to get the details. 5. Down the page there's a section called "Groups". Make sure "Analyzers" is in the right-most box. The right-most box is the list of groups you're in. 6. Go back to the Input front page. There should be an "Analytics" link now in the top navbar. Click on that. 7. On the left side, click on "Search". 8. Now you should see the "CSV Export" link. It's at the top of the main section right under some red text that talks about confidentiality. Clicking on that link does a csv download. That's the thing we need to fix. The code that makes that work is in fjord/analytics/analyzer_views.py in the _analytics_search_export function. It uses Response.get_export_keys() classmethod to know what data to put in each row of the CSV export. The Response model code is in fjord/feedback/models.py . Find the get_export_keys() classmethod and modify it and we should be all set. Make the changes and do manual testing to make sure it works and that should cover everything.
Landed in https://github.com/mozilla/fjord/commit/869a37cc3293dc35f17c2e7244af44157b820006 Pushed to prod just now. Thank you!
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Whiteboard: u=analyzer c=data p= s=input.adam → u=analyzer c=data p= s=input.2014q4
You need to log in before you can comment on or make changes to this bug.