Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: differences in forum v1 and v2 get responses #83

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

Faraz32123
Copy link
Contributor

- fix the response of get thread API according to query params
when thread type is question
- fix the response of get thread API when answered question is marked
back as not answered when thread type is question.
- fix the response of user's subscribed thread API as it wasn't deleting
the subscriptions of the thread when thread was deleted, and was returning
more subscribed threads in the response
- add tests for the above cases
- close #47
@Faraz32123 Faraz32123 requested review from taimoor-ahmed-1 and Ali-Salman29 and removed request for taimoor-ahmed-1 September 10, 2024 10:08
Copy link
Contributor

@taimoor-ahmed-1 taimoor-ahmed-1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Faraz32123 Faraz32123 force-pushed the fix/differences_in_forum_v1_and_v2 branch from d4f0429 to afd8a7c Compare September 10, 2024 11:55
- return abuse_count_flag in get_threads
- pop historical_abuse_flaggers from comment and thread serializer
@Faraz32123 Faraz32123 merged commit 2173401 into master Sep 10, 2024
7 checks passed
@Faraz32123 Faraz32123 deleted the fix/differences_in_forum_v1_and_v2 branch September 10, 2024 12:19
"merge_question_type_responses",
]
for param in params:
if param in data_or_params:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if value := data_or_params.get(param):
    context[param] = str_to_bool(value)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

On a live instance of Open edX, make sure that all calls go to v2 (and are consistent with v1 responses)
4 participants