openedx / frontend-app-discussions

A React-based micro frontend for the Open edX discussion forums.
GNU Affero General Public License v3.0
6 stars 61 forks source link

fix: post editor breaking for moderator #717

Closed AhtishamShahid closed 2 weeks ago

AhtishamShahid commented 3 weeks ago

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.
codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

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

Additional details and impacted files ```diff @@ 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 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.