Skip to content

#624: adds UserInfo type and service functions #641

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

Merged
merged 47 commits into from
Mar 17, 2025
Merged

Conversation

usrrname
Copy link
Contributor

@usrrname usrrname commented Mar 6, 2025

Changes

  • adds UserInfo type in src/types
  • Adds findUserInfoByUser(user: User) function to src/user/service.ts, which returns a UserInfo type.
  • creates starter service functions to userService: findUserInfoById, recordToModel, updateUserInfo
  • call updateUserInfo on user controller when PUT /user:id called
  • Add fields to GET /user/:id endpoint.
  • Add fields to json-schema for validation.
  • Support new fields when doing PUT /user/:id

#624

@usrrname usrrname requested a review from evert March 6, 2025 03:26
@usrrname usrrname requested a review from evert March 6, 2025 04:24
@usrrname usrrname force-pushed the feat/624-userinfo-type branch from 351a656 to aedcf02 Compare March 6, 2025 04:29
@usrrname usrrname force-pushed the feat/624-userinfo-type branch from f8b3705 to 7a80fdd Compare March 6, 2025 04:46
@usrrname usrrname requested a review from evert March 7, 2025 14:10
@usrrname usrrname force-pushed the feat/624-userinfo-type branch 4 times, most recently from 55bbf62 to 23a0473 Compare March 14, 2025 15:12
@usrrname usrrname force-pushed the feat/624-userinfo-type branch from 19560a7 to 92ef6db Compare March 14, 2025 16:03
@usrrname usrrname requested a review from evert March 14, 2025 16:06
@usrrname usrrname force-pushed the feat/624-userinfo-type branch from 3e5d2f8 to 729134f Compare March 16, 2025 01:50
@usrrname usrrname force-pushed the feat/624-userinfo-type branch from 729134f to 8e26199 Compare March 16, 2025 01:51
@usrrname usrrname force-pushed the feat/624-userinfo-type branch from f8e38cd to db58504 Compare March 16, 2025 03:17
@usrrname usrrname force-pushed the feat/624-userinfo-type branch from f139186 to a26d06c Compare March 16, 2025 03:45
@usrrname usrrname requested a review from evert March 16, 2025 03:51
@evert evert enabled auto-merge (squash) March 17, 2025 02:29
@evert evert merged commit e96fb5c into main Mar 17, 2025
14 checks passed
@evert evert deleted the feat/624-userinfo-type branch March 17, 2025 02:29
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.

2 participants