[BD-38][BB-6681] feat: add count_flagged query param to the learner thread endpoint - #31048
Merged
Merged
Conversation
|
Thanks for the pull request, @0x29a! When this pull request is ready, tag your edX technical lead. |
count_flagged query param to the learner thread endpointcount_flagged query param to the learner thread endpoint
xitij2000
approved these changes
Sep 28, 2022
xitij2000
left a comment
Contributor
There was a problem hiding this comment.
👍
- I tested this: tested on devstack
- I read through the code
- Includes documentation
asadazam93
suggested changes
Oct 6, 2022
asadazam93
approved these changes
Oct 7, 2022
|
@0x29a 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
Contributor
|
EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production. |
Contributor
|
EdX Release Notice: This PR has been deployed to the production environment. |
arbrandes
pushed a commit
that referenced
this pull request
Dec 8, 2022
awais786
pushed a commit
that referenced
this pull request
Jan 13, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds
count_flaggedquery parameter to the forum Learner Thread endpoint, which allows platform moderators to see how posts were flagged per given user's thread.Supporting information
count_flaggedquery param to the learner threads endpoint openedx-unsupported/cs_comments_service#393.Testing instructions
count_flaggedquery param to the learner threads endpoint openedx-unsupported/cs_comments_service#393 to your devstack.<LMS_URL>/api/discussion/v1/courses/<URL_ENCODED_COURSE_ID>/learner/?username=<STAFF_USERNAME>&page=1&count_flagged=true— resulting JSON document has to contain"abuse_flagged_count": <number_of_flagged_replies>.