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: internal server error #757

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

daviduzondu
Copy link
Contributor

@daviduzondu daviduzondu commented Aug 10, 2024

What does this PR do?

This PR issues a fix on /api/v1/users/export that throws an internal server error when the user request for his data.

How should this be manually tested?

Send a GET request to this endpoint:

GET /api/v1/users/export

Request Headers:

{
   "Authorization": "Bearer <token>"
}

Error Responses:

  • Error Response (400):
{
  "message": "Admin Role does not exist",
  "status_code": 400
}
  • Error Response (401):
{
  "message": "User is currently unauthorized, kindly authenticate to continue",
  "status_code": 401
}

Checklist of what you did

  • Improve the code in the User Service to exclude relations with no join column
  • Write unit tests to make sure that everything works.

Test Screenshot

Screenshot from 2024-08-10 09-05-17

Reference Issue

#138

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.

1 participant