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

sqlc: beds, rooms, and patients #566

Merged
merged 27 commits into from
Dec 10, 2023
Merged

sqlc: beds, rooms, and patients #566

merged 27 commits into from
Dec 10, 2023

Conversation

FoseFx
Copy link
Member

@FoseFx FoseFx commented Dec 1, 2023

Which issues does this pull request close?

Progresses #563, #562, #570

Removes beds, rooms and patients repos (now generated using sqlc) and all direct usage of the corresponding models.

BREAKING: makes GetPatientList's Task's AssignedUserID optional.

Affected by this PR:

  • CreateBed
  • GetBed
  • GetBedByPatient
  • GetBeds
  • UpdateBed
  • DeleteBed
  • CreatePatient
  • GetPatient
  • GetPatientsByWard
  • GetPatientAssignmentByWard
  • GetRecentPatients
  • UpdatePatient
  • AssignBed
  • UnassignBed
  • DischargePatient
  • GetPatientDetails
  • GetPatientList
  • DeletePatient
  • ReadmitPatient
  • CreateRoom
  • GetRoom
  • UpdateRoom
  • GetRooms
  • GetRoomsByWard
  • DeleteRoom
  • GetRoomOverviewsByWard
  • CreateTask
  • GetTask

Italic Endpoints have integration tests

@FoseFx FoseFx changed the title sqlc: beds, tasks and patients (WIP) sqlc: beds, rooms, and patients (WIP) Dec 2, 2023
@FoseFx FoseFx added the is-blocked This gets blocked. Check out "Blocked by #xyz" comments. label Dec 2, 2023
@FoseFx FoseFx self-assigned this Dec 2, 2023
@FoseFx FoseFx mentioned this pull request Dec 2, 2023
@FoseFx FoseFx changed the title sqlc: beds, rooms, and patients (WIP) sqlc: beds, rooms, and patients Dec 2, 2023
@FoseFx FoseFx force-pushed the issue/562-sqlc-beds branch from 1f9790f to d678a15 Compare December 2, 2023 16:04
@FoseFx FoseFx removed the is-blocked This gets blocked. Check out "Blocked by #xyz" comments. label Dec 3, 2023
@FoseFx FoseFx force-pushed the issue/562-sqlc-beds branch from 2df9631 to af5ec5e Compare December 3, 2023 12:23
@FoseFx
Copy link
Member Author

FoseFx commented Dec 4, 2023

Done with Phase I: All tests are passing.

@FoseFx
Copy link
Member Author

FoseFx commented Dec 4, 2023

Phase II done: TODOs are done. R4R

@FoseFx FoseFx marked this pull request as ready for review December 4, 2023 14:22
@FoseFx FoseFx requested a review from a team as a code owner December 4, 2023 14:22
@FoseFx FoseFx requested review from felixevers and DasProffi and removed request for a team December 4, 2023 14:22
@FoseFx FoseFx mentioned this pull request Dec 5, 2023
Copy link
Member

@MaxSchaefer MaxSchaefer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good so far.
Found one error in Endpoint GetRecentPatients:

failed to encode args[0]: unable to encode []uuid.UUID{uuid.UUID{0x6a, 0x7a, 0x8d, 0xfe, 0x5f, 0x8f, 0x4b, 0x7f, 0xa9, 0xf6, 0xd, 0xf0, 0xd2, 0xbf, 0x14, 0x23}, uuid.UUID{0xc1, 0xf7, 0x6e, 0xd5, 0xcd, 0x56, 0x48, 0xbe, 0x96, 0x5, 0x7f, 0x6b, 0x6, 0x4d, 0xcb, 0x33}, uuid.UUID{0x9b, 0xa7, 0x7, 0x3d, 0x94, 0xc6, 0x43, 0x35, 0x99, 0xd7, 0x1b, 0x10, 0xc6, 0xf8, 0x91, 0x51}, uuid.UUID{0x97, 0xf0, 0xd2, 0x87, 0x34, 0x98, 0x41, 0x4c, 0xba, 0xb9, 0xf, 0x34, 0x1b, 0x32, 0x8a, 0xe4}} into binary format for uuid (OID 2950): cannot find encode plan

@FoseFx FoseFx force-pushed the issue/562-sqlc-beds branch from a2fec36 to 2e9913b Compare December 8, 2023 13:27
@FoseFx FoseFx merged commit 9bbbdd5 into main Dec 10, 2023
25 checks passed
@FoseFx FoseFx deleted the issue/562-sqlc-beds branch December 10, 2023 11:44
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