-
Notifications
You must be signed in to change notification settings - Fork 10
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
[Code Health] fix: application module gRPC status error returns #954
base: main
Are you sure you want to change the base?
Conversation
The CI will now also run the e2e tests on devnet, which increases the time it takes to complete all CI checks. You may need to run GCP workloads (requires changing the namespace to 954) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a question w.r.t. wrapped errors, otherwise LGTM
@@ -25,7 +28,8 @@ func (k Keeper) AllApplications(ctx context.Context, req *types.QueryAllApplicat | |||
pageRes, err := query.Paginate(applicationStore, req.Pagination, func(key []byte, value []byte) error { | |||
var application types.Application | |||
if err := k.cdc.Unmarshal(value, &application); err != nil { | |||
return err | |||
logger.Error(fmt.Sprintf("unmarshaling application with key (hex): %x: %+v", key, err)) | |||
return status.Error(codes.Internal, err.Error()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given all Internal
errors were wrapping the original one, shouldn't this one do the same?
Summary
Ensure all application message and query handlers return gRPC status errors.
Issue
Type of change
Select one or more from the following:
consensus-breaking
label if so. See [Infra] Automatically add theconsensus-breaking
label #791 for detailsTesting
make docusaurus_start
; only needed if you make doc changesmake go_develop_and_test
make test_e2e
devnet-test-e2e
label to the PR.Sanity Checklist