fix: User retirement 404 for state RETIRING_FORUMS#33025
fix: User retirement 404 for state RETIRING_FORUMS#33025cmltaWt0 merged 1 commit intoopenedx:open-release/palm.masterfrom
Conversation
|
Thanks for the pull request, @DmytroAlipov! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
|
Hi @openedx/edx-infinity! Is something you could please review/merge for us? Thanks! |
|
@mphilbrick211 friendly ping. PR has already been merged into the master |
|
Hi @openedx/edx-infinity! Would someone be able to get this merged for us? Thanks! |
|
Hi @asadazam93! Just checking to see if you're able to get this reviewed / merged for us? Thanks! |
|
@DmytroAlipov the proposed backport differs from the original PR. |
19b5d63 to
9259411
Compare
|
@cmltaWt0 done |
|
Looks good for me 👍 |
|
@DmytroAlipov 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
This is a backport from the master branch
Description
We ran into a problem when running the
retire_users.shcommand. The user must first delete their account from the platform. After that, the/edx/app/retirement_service/retire_users.shcommand is launched. However, for one step, an error appearsAt the same time, all user actions for the forum remain, since this retirement stage is not completed.
A problem was detected with the WALL of this endpoint.
URL looks like:
https://lms-palm.com/api/discussion/v1/accounts/retire_forum/However, this URL is expected on the platform:
https://lms-palm.com/api/discussion/v1/accounts/retire_forumThe URL is created in LmsApi, and the append_slash argument is responsible for adding a slash at the end of the URL. This addition of a slash is carried out for all retirement steps.
After fixing, the entire flow passes without errors:
User data is deleted in the Discussion:

Note:
We do not have all stages of retirement. Only such:
Might have similar problems for other stages.