Closed Bug 699109 Opened 13 years ago Closed 13 years ago

User karma API

Categories

(support.mozilla.org :: Users and Groups, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
2011-12-06

People

(Reporter: rrosario, Assigned: rrosario)

References

Details

We need an API to feed the user list on the Karma dashboard.

Some parameters it probably needs:
* Date range (last week, last month, last 3 months, last 6 months, last year)
* Sort by

Eventually, it needs to handle:
* search by username
* filter by group

We need to figure out what gets done in the client vs server. On one end, we could shove all the karma data into the browser and have it do everything (sorting, filtering, etc). On the other end, we could require an API call for everything (duplicating the data that is sent over for every change in sort, etc). We probably want to be somewhere the middle, I am guessing.
Target Milestone: --- → 2011Q4
Assignee: nobody → rrosario
https://github.com/jsocol/kitsune/commit/fecc7a5751aef2c725c32e1cec0caa9df16896c4

Example URL to test (user must have karma.view_dashboard permission, returns JSON):
/en-US/karma/api/users?sort=points&daterange=1w&pagesize=100&page=1
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: 2011Q4 → 2011-12-06
Verified able to sort by date ranges listed above, may also sort by headers
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.