Skip to content

Conversation

kakcy
Copy link
Contributor

@kakcy kakcy commented Sep 24, 2025

This pull request refactors error handling in the authentication service to use a more consistent and structured approach. Instead of manually constructing gRPC status errors with localized messages, the code now utilizes the api.NewGRPCStatus helper and centralizes error definitions using the new error package. This improves maintainability and standardizes error responses across the authentication API.

I have also standardized the process of assigning ErrorInfo to GRPCStatus for each error via api.NewGRPCStatus.
This ErrorInfo will be used when moving i18n to the frontend(#1253), and we plan to generate error messages etc. based on this information on the frontend.

@kakcy kakcy marked this pull request as ready for review September 26, 2025 08:57
nnnkkk7
nnnkkk7 previously approved these changes Sep 30, 2025
Copy link
Contributor

@nnnkkk7 nnnkkk7 left a comment

Choose a reason for hiding this comment

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

LGTM!

# Conflicts:
#	pkg/error/error.go
@kakcy
Copy link
Contributor Author

kakcy commented Sep 30, 2025

@nnnkkk7
A conflict occurred with the main branch, so the approved status was removed after merging.
We have also addressed the current e2e errors, so please check.
2d51d51

@kakcy kakcy requested a review from nnnkkk7 September 30, 2025 03:21
Copy link
Contributor

@hvn2k1 hvn2k1 left a comment

Choose a reason for hiding this comment

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

thank you!

@kakcy kakcy merged commit d7f8a0f into main Sep 30, 2025
19 of 20 checks passed
@kakcy kakcy deleted the refactor-error-handle-auth branch September 30, 2025 09:06
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.

3 participants