Closed
Bug 1074954
Opened 10 years ago
Closed 10 years ago
[buddyup] API to mark answers as helpful
Categories
(support.mozilla.org :: Questions, task, P2)
support.mozilla.org
Questions
Tracking
(Not tracked)
RESOLVED
FIXED
2014Q4
People
(Reporter: mythmon, Assigned: mythmon)
References
Details
(Whiteboard: u=contributor c=kb p=1 s=2014.22)
We already have helpful voting (or something like that) on answers. This should be exposed with an API.
Updated•10 years ago
|
Whiteboard: u=contributor c=kb p= s=2014.21
Assignee | ||
Comment 1•10 years ago
|
||
PR: https://github.com/mozilla/kitsune/pull/2248 This is/was easy. Marking it as 1pt.
Status: NEW → ASSIGNED
Whiteboard: u=contributor c=kb p= s=2014.21 → u=contributor c=kb p=1 s=2014.21
Comment 2•10 years ago
|
||
Deployed to prod. https://github.com/mozilla/kitsune/commit/2d73eb49fdf9c343b5ddf0e138023230fd58f0b0
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
OS: Linux → All
Priority: -- → P2
Hardware: x86_64 → All
Resolution: --- → FIXED
Target Milestone: --- → 2014Q4
Comment 3•10 years ago
|
||
Trying to understand how to use the API for this and from looking at the code here: https://github.com/mozilla/kitsune/pull/2248/files#diff-2f61d5b1d7fa186f1558973853d275d4R197 it seems that this should work much in the same vein as set_metadata so, I construct a URL such as: https://support.allizom.org/api/2/answer/600270/helpful/?format=json also tried: https://support.allizom.org/api/2/answer/helpful/600270/?format=json I do send a payload currently, although this is probably not needed, of: {"num_helpful_votes":1} and I do make the request whilst passing the token. At the moment I am getting a 404 when hitting the above.
Flags: needinfo?(mcooper)
Comment 4•10 years ago
|
||
FYI, also tried this one: https://support.allizom.org/api/2/answer/600270/helpful?format=json With all of that, I am also noticing that this seems to be related to questions? looking at the import of QuestionVote. If so, do we have an API to mark a comment/answer as helpful? Currently there is no user story or requirement to mark a question as helpful.
Assignee | ||
Comment 5•10 years ago
|
||
You're right. This is for Questions, not Answers. Re-opening to fix that.
Status: RESOLVED → REOPENED
Flags: needinfo?(mcooper)
Resolution: FIXED → ---
Assignee | ||
Updated•10 years ago
|
Whiteboard: u=contributor c=kb p=1 s=2014.21 → u=contributor c=kb p=1 s=2014.22
Comment 6•10 years ago
|
||
Deployed fix to prod now: https://github.com/mozilla/kitsune/commit/1ad6d08cca32fa1f61a2b6510b2edcf965836fd3
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
Comment 7•9 years ago
|
||
This service currently responds with what seems to be an empty string. Should it not respond with the new helpfulness count?
Flags: needinfo?(mcooper)
Assignee | ||
Comment 8•9 years ago
|
||
That seems like a sane and useful thing for it to return. I filed bug 1118033 for that.
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(mcooper)
You need to log in
before you can comment on or make changes to this bug.
Description
•