Skip to content

Conversation

keplervital
Copy link
Member

@keplervital keplervital commented Jul 7, 2023

Description

This PR extens the query and call method responses to include the boundary node http headers. Moreover, it introduces a new method to the actor creation that enriches the provide type to include the http details of call.

How Has This Been Tested?

  • http calls responses are tested with snapshots
  • requestAndRetry logic is validated by using a custom error type AgentHTTPResponseError
  • actor interface is tested by mocking the pollForResponse and testing that both createActor and createActorWithHttpDetails return the same decoded response and that the later also includes the expected httpDetails
  • Linked locally with the service worker and manually validated the integration

Checklist:

  • My changes follow the guidelines in CONTRIBUTING.md.
  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

@keplervital keplervital requested a review from a team as a code owner July 7, 2023 14:15
@keplervital keplervital requested review from a user and rvanasa July 10, 2023 08:57
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you @keplervital !

@ghost ghost merged commit bd2ab1d into dfinity:main Jul 11, 2023
@ghost ghost mentioned this pull request Jul 12, 2023
This pull request was closed.
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