Skip to content

bug: cannot update mentor profile status to BANNED / DISABLED #768

Description

@khairahscorner

Bug Report

Describe the bug

Using the 'update mentor data' endpoint to attempt to update the profile status for a mentor does not work. However, there's currently no endpoint available to update a mentor's profile status to ban them or deactivate their profile.

We need to either have a way to update mentors' profile status via existing endpoint or have another endpoint that can help do this.

To Reproduce

  1. Using Swagger, try to run the /api/platform/v1/mentors/{mentorId} endpoint with the mentor's data but profilestatus updated.
  2. it returns a 200 response but the mentor's profile status still shows at ACTIVE

Expected behavior

profile status should be updated to the new status expected.

Screenshots

Image Image

Reproducibility

  • The bug is reproducible consistently.
  • The bug is sporadic or occurs randomly.

Impact

  • The bug affects critical functionality.
  • The bug affects minor functionality.
  • The bug is a cosmetic issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingepic-adhocepic-mentorshipAll tasks related to mentorship pages & taskstop-priorityAll critical tasks to be implemented as soon as possible

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions