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

[WIP] feat: call python methods from forum v2 #35490

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Faraz32123
Copy link
Contributor

@Faraz32123 Faraz32123 commented Sep 16, 2024

This PR is still a work in progress and not yet ready for final review.

  • directly call python native APIs from forum v2
  • add forum to the edx-platform requirements

@Faraz32123 Faraz32123 requested a review from a team as a code owner September 16, 2024 11:31
- directly call python native APIs from forum v2 for pin, unpin thread,
commentables count_stats and get user's data by user_id
- add forum to the edx-platform requirements
- directly call python native APIs from forum v2 for get parent comment,
create parent comment and create child comment.
- rename retrieve_commentables_stats method to get_commentables_stats and
retrieve_user to get_user.
@Faraz32123 Faraz32123 marked this pull request as draft September 18, 2024 08:53
@Faraz32123 Faraz32123 changed the title feat: call python methods from forum v2 [WIP] feat: call python methods from forum v2 Sep 18, 2024
- refactored code and now pass proper parameters to python native APIs
instead of a single dict
@ormsbee
Copy link
Contributor

ormsbee commented Sep 20, 2024

As you folks are building this out, please use a CourseWaffleFlag to switch between running the old code that hits the service from edx-platform and the new code that uses the forum app. When a migration this big rolls out on a site that runs off of master (like 2U or one of MIT's sites), it will usually go:

  1. Turn it on for a few select courses to try it out, see if there are any major regressions.
  2. Turn it on by default for everyone.
  3. Turn it back off for a few select courses where weird edge case bugs arise.

We can turn this flag on by default for Sumac.

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.

3 participants