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

engine-reporting: Handle errors within didResolveOperation life-cycle hook. #2710

Conversation

abernix
Copy link
Member

@abernix abernix commented May 22, 2019

This re-implements the triggering of didEncounterErrors during willResolveOperation errors which occur in the request pipeline, but in a more common code-path where it probably should have been getting called already anyway.

This re-implements part of the #2659 functionality (which is currently not included on the 2.6.0 branch) in a different manner, with the additional piece — still not included in this PR — to be included in a follow-up commit.

abernix added 2 commits May 22, 2019 21:53
This re-implements the triggering of `didEncounterErrors` during
`willResolveOperation` errors which occur in the request pipeline, but in a
more common spot and where it probably should have been getting called
already anyway.
This aims to accomplish one of the bits which was included within
#2659 via a technique
that scopes the errors more precisely.

While I do think we should be passing all errors, the fix in #2659 was
specifically aimed at a particular error-case which surfaced and we should
consider a more refined approach to capturing those errors in the right
places in future API iterations.
@abernix
Copy link
Member Author

abernix commented May 22, 2019

#2711 contains the other bits of #2659 which were not included in this PR.

@abernix abernix merged commit d2039a3 into release-2.6.0 May 22, 2019
@abernix abernix deleted the abernix/deliver-didResolveOperation-errors-to-willSendResponse branch May 22, 2019 19:53
@abernix abernix added this to the Release 2.6.0 milestone May 22, 2019
abernix added a commit that referenced this pull request May 23, 2019
… errors (#2659)"

This reverts commit 2a6af9c.

Superseded by: #2711
  and
Superseded by: #2710
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant