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: flag API positional arguments #35968

Closed

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