Skip to content

fix: flag API positional arguments#35968

Closed
Faraz32123 wants to merge 2 commits intoopenedx:masterfrom
edly-io:edly/fix_forum_v2_report_api_call
Closed

fix: flag API positional arguments#35968
Faraz32123 wants to merge 2 commits intoopenedx:masterfrom
edly-io:edly/fix_forum_v2_report_api_call

Conversation

@Faraz32123
Copy link
Contributor

This PR fixes an issue related to ForumV2 flag API. For details to know about ForumV2, got to this link https://github.com/openedx/forum/blob/master/README.rst. To reproduce the error:

  • switch to mongodb from mysql for a specific course.
  • create a thread and report the thread. It'll throw an error due to wrong positioning of the arguments.

So, this commit fixes the issue and

  • uses keyword arguments in flag APIs
  • adds mock tests for code coverage

To reproduce the error:
- switch to mongodb from mysql for a specific course.
- create a thread and report the thread. It'll throw an error due to wrong positioning of the arguments.

So, this commit
- uses keyword arguments in flag APIs
- adds mock tests for code coverage
@Faraz32123 Faraz32123 self-assigned this Dec 5, 2024
@Faraz32123 Faraz32123 requested a review from regisb December 5, 2024 12:36
Copy link
Contributor

@regisb regisb left a comment

Choose a reason for hiding this comment

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

Nice job with the test coverage.

@Faraz32123 Faraz32123 requested a review from awais786 December 5, 2024 16:04
@Faraz32123 Faraz32123 marked this pull request as draft December 5, 2024 16:18
@Faraz32123
Copy link
Contributor Author

closing this PR in favor of this PR: #35933. I have added the commit there.

@Faraz32123 Faraz32123 closed this Dec 5, 2024
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.

2 participants