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

Feat/selection #2

Merged
merged 11 commits into from
Jun 23, 2024
Merged

Feat/selection #2

merged 11 commits into from
Jun 23, 2024

Conversation

macgeargear
Copy link
Contributor

Change made

  •  New features
  •  Bug fixes
  •  Breaking changes

Describe what you have done

  • gateway for selection

New Features

Fix

  • auth service: change SignUp return type to *dto.SignupResponse

Others

Screenshot 2024-06-23 at 2 07 30 PM

Copy link
Contributor

@bookpanda bookpanda left a comment

Choose a reason for hiding this comment

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

https://github.com/isd-sgcu/onboarding-backend/tree/main/golang/11-logging-error
In the next pr, let's use this standard for the Baan hdr/svc + check if Baan tests have unused dependencies. If so, remove them and init the hdr/svc with nil

@macgeargear macgeargear requested a review from bookpanda June 23, 2024 07:58
Copy link
Contributor

@bookpanda bookpanda left a comment

Choose a reason for hiding this comment

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

left comments

@macgeargear macgeargear requested a review from bookpanda June 23, 2024 08:21
@macgeargear macgeargear requested a review from bookpanda June 23, 2024 08:31
expectedErr := apperror.BadRequestError("invalid argument")

context.EXPECT().Bind(t.CreateSelectionReq).Return(expectedErr)
context.EXPECT().BadRequestError(expectedErr.Error())
Copy link
Contributor

Choose a reason for hiding this comment

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

context.EXPECT().BadRequestError(apperror.BadRequest)

Copy link
Contributor

Choose a reason for hiding this comment

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

this gets rid of expectedErr := apperror.BadRequestError("invalid argument").
If it can be done in 1 line that is not too long, let's do that

Copy link
Contributor Author

@macgeargear macgeargear Jun 23, 2024

Choose a reason for hiding this comment

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

context.EXPECT().BadRequestError(apperror.BadRequest)
i think it should be context.EXPECT().BadRequestError(apperror.BadRequest.Error()) because BadRequestError() takes string and context.EXPECT().BadRequestError(apperror.BadRequest) make test failed

Copy link
Contributor

@bookpanda bookpanda left a comment

Choose a reason for hiding this comment

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

i think this is final review yay

@macgeargear macgeargear requested a review from bookpanda June 23, 2024 12:47
@macgeargear macgeargear merged commit 6919d5e into dev Jun 23, 2024
2 checks passed
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