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: post editor breaking for moderator #717

Merged
merged 2 commits into from
Jun 21, 2024
Merged

Conversation

AhtishamShahid
Copy link
Contributor

@AhtishamShahid AhtishamShahid commented Jun 12, 2024

Description

The post editor is breaking for moderators, this was caused by the API being moved to v2 but due to implementation, 2 different APIs were using the same base URL method, which caused conflict in APIs.
This issue is fixed by setting 2 different API URL methods.

How Has This Been Tested?

Tested with Staff, Moderator, and Learner role.

  1. Go to the discussions app from the user with a moderator.
  2. click on new post, it should work as expected.

fix: updated unit tests

fix: updated unit tests
Copy link

codecov bot commented Jun 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.87%. Comparing base (eeae6d4) to head (e33252e).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #717   +/-   ##
=======================================
  Coverage   92.86%   92.87%           
=======================================
  Files         160      160           
  Lines        3322     3324    +2     
  Branches      888      898   +10     
=======================================
+ Hits         3085     3087    +2     
+ Misses        219      218    -1     
- Partials       18       19    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AhtishamShahid AhtishamShahid merged commit e862ee6 into master Jun 21, 2024
7 checks passed
@AhtishamShahid AhtishamShahid deleted the ahtisham/INF-1424 branch June 21, 2024 07:29
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