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

chore(packet-server): add queryServer to packet-server #7283

Merged
merged 2 commits into from
Sep 12, 2024

Conversation

DimitrisJim
Copy link
Contributor

@DimitrisJim DimitrisJim commented Sep 11, 2024

Description

adds a query server to the packe server to bring in the removed query after the reshuffling of protos.

closes: #XXXX


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against the correct branch (see CONTRIBUTING.md).
  • Linked to GitHub issue with discussion and accepted design, OR link to spec that describes this work.
  • Code follows the module structure standards and Go style guide.
  • Wrote unit and integration tests.
  • Updated relevant documentation (docs/).
  • Added relevant godoc comments.
  • Provide a conventional commit message to follow the repository standards.
  • Include a descriptive changelog entry when appropriate. This may be left to the discretion of the PR reviewers. (e.g. chores should be omitted from changelog)
  • Re-reviewed Files changed in the GitHub PR explorer.
  • Review SonarCloud Report in the comment section below once CI passes.

Base automatically changed from jim/move-proto-defs to feat/ibc-eureka September 11, 2024 11:36
Copy link
Contributor

@chatton chatton left a comment

Choose a reason for hiding this comment

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

LGTM, just one concern about discarding values

Comment on lines 42 to 46
creator, _ := q.ClientKeeper.GetCreator(sdkCtx, req.ClientId)
res.Creator = creator

counterparty, _ := q.GetCounterparty(sdkCtx, req.ClientId)
res.Counterparty = counterparty
Copy link
Contributor

Choose a reason for hiding this comment

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

is it safe to discard these found vars? Should we error out in this case instead of returning an empty response?

Copy link
Contributor Author

@DimitrisJim DimitrisJim Sep 11, 2024

Choose a reason for hiding this comment

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

oh, update, I remembered these can exist independetly until provide counterparty is called. I.e only creator and then only counterparty. I guess if both are not found I can error.

Copy link

sonarcloud bot commented Sep 12, 2024

@DimitrisJim DimitrisJim merged commit 5c951b2 into feat/ibc-eureka Sep 12, 2024
64 of 65 checks passed
@DimitrisJim DimitrisJim deleted the jim/packet-server-query-server branch September 12, 2024 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants