Page MenuHomePhabricator

API. Handling invalid cohort or metrics in URL
Closed, DeclinedPublic

Description

Author: rfaulkner

Description:
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


Version: unspecified
Severity: normal

Details

Reference
bz46648

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:25 AM
bzimport set Reference to bz46648.
bzimport added a subscriber: Unknown Object (MLST).

(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

[moving tickets as per bug 65903]