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

Create endpoint to update user PATCH v1/user #421

Closed
5 tasks
eleanorreem opened this issue May 9, 2024 · 0 comments
Closed
5 tasks

Create endpoint to update user PATCH v1/user #421

eleanorreem opened this issue May 9, 2024 · 0 comments
Labels
complexity: moderate Time needed to do this ticket will be moderate e.g. 1-2 days feature/enhancement New feature or request priority: soon Should be prioritized soon.

Comments

@eleanorreem
Copy link
Contributor

eleanorreem commented May 9, 2024

Overview

We currently don't have an endpoint to update a user. We need one to do the next iteration of the user profile where the user can update their subscription preferences. This ticket is just to create the endpoint and service method. We can then have the option of updating a users name and contact permissions. Note that the email update is more complicated and will come at a later point.

This endpoint will only allow the user that is authenticated to update their own data.

Action Items

  • create endpoint in the bloom-backend/src/user/user.controller.ts with a body that can update the authenticated user. This endpoint should be a PATCH endpoint. The body for now should only contain these optional values: { name: string, contactPermission: boolean, serviceEmailsPermission: boolean}
  • The endpoint should have the firebaseAuthguard attached.
  • See endpoints like GET /user/me for examples about how to extract the user from the authguard.
  • create method in userService that will update the user columns.
  • write service tests with a pass and fail scenario.
@eleanorreem eleanorreem added feature/enhancement New feature or request complexity: moderate Time needed to do this ticket will be moderate e.g. 1-2 days priority: soon Should be prioritized soon. labels May 9, 2024
@eleanorreem eleanorreem changed the title Create endpoint to update user UPDATE v1/user Create endpoint to update user PATCH v1/user May 10, 2024
@eleanorreem eleanorreem closed this as not planned Won't fix, can't repro, duplicate, stale May 10, 2024
@eleanorreem eleanorreem reopened this May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity: moderate Time needed to do this ticket will be moderate e.g. 1-2 days feature/enhancement New feature or request priority: soon Should be prioritized soon.
Projects
Development

No branches or pull requests

1 participant