Closed Bug 1083445 Opened 7 years ago Closed 7 years ago

Add contributor helpfulness to users API

Categories

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

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mythmon, Assigned: mythmon)

References

Details

(Whiteboard: u=api c=users p=1 s=2014.22)

This probably should have restricted access. You should certainly be able to see your own helpfulness. Only moderators and above should be able to see other peoples helpfulness.
Blocks: bu-server
After talking with Kadir, this can be totally public, so we don't need to worry about all the permission controls. With that in mind, this is 1pt.
Whiteboard: u=api c=users p=2 s= → u=api c=users p=1 s=
This blocks a user story we took for this sprint, could you work on this soon?
Flags: needinfo?(mcooper)
I'm working on this now, but I have a question about how to count this. I asked a question in the dependent bug.
Assignee: nobody → mcooper
Status: NEW → ASSIGNED
Flags: needinfo?(mcooper)
Whiteboard: u=api c=users p=1 s= → u=api c=users p=1 s=2014.22
Assuming my rephrasing in bug 1061603 is correct, I filed this PR: https://github.com/mozilla/kitsune/pull/2266.
I still don't know if my rephrasing is correct. Assuming it is, I've put this on stage and prod.

$ http -pb GET https://support.allizom.org/api/2/user/mythmon/ ~
{
    ...
    "helpfulness": 22,
    ...
}

I'm going to mark this as resolved. This definitely unblocks the front end work. If it turns out that my assumption was incorrect, it is easy to change to the other way, and it won't block front end work. We can reopen this bug in that case.
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.