Last modified: 2014-05-29 17:23:23 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T48648, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46648 - API. Handling invalid cohort or metrics in URL
API. Handling invalid cohort or metrics in URL
Status: RESOLVED WONTFIX
Product: Analytics
Classification: Unclassified
Wikimetrics (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-28 18:56 UTC by Ryan Faulkner
Modified: 2014-05-29 17:23 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Ryan Faulkner 2013-03-28 18:56:12 UTC
When a user cohort or metric is not found flag this as an error to the user.

Validate cohort names in URL. Write a method to validate from usertage_meta table.

See the output and cohort views in https://github.com/rfaulkner/E3_analysis/blob/master/user_metrics/api/views.py

Call validation in views.py on cohort names at the following points:

https://github.com/rfaulkner/E3_analysis/blob/master/user_metrics/api/views.py#L186
https://github.com/rfaulkner/E3_analysis/blob/master/user_metrics/api/views.py#L241
Comment 1 Dario Taraborelli 2013-08-26 18:14:27 UTC
(porting ticket to Wikimetrics)

This issue doesn't apply to Wikimetrics for requests generated by users via the UI. Cohort and metric validation still needs to be implemented for programmatic access to Wikimetrics, see https://mingle.corp.wikimedia.org/projects/analytics/cards/1104
Comment 2 Andre Klapper 2014-05-29 17:23:23 UTC
[moving tickets as per bug 65903]

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links