Closed Bug 1087395 Opened 8 years ago Closed 8 years ago

add browser, browser_version, browser_platform to analyzer csv download

Categories

(Input Graveyard :: Dashboard, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: willkg, Assigned: aokoye)

References

Details

(Whiteboard: u=analyzer c=data p= s=input.2014q4)

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
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.
Mentor: willkg
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.
Mentor: willkg
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
Product: Input → Input Graveyard
You need to log in before you can comment on or make changes to this bug.