Closed vpaturet closed 2 weeks ago
Attention: Patch coverage is 35.00000%
with 13 lines
in your changes missing coverage. Please review.
Project coverage is 69.45%. Comparing base (
b9e54d2
) to head (9be3805
). Report is 20 commits behind head on dev-2.x.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Summary
5883 implemented support for cancelling queries that produce too large responses.
However GraphQL resolvers were not properly canceled, as in the case of an API timeout exception. This PR applies the same logic for large response and API timeout. Both error cases are mapped to the same HTTP error code (422 - Unprocessable Content) since the root cause is identical: a syntactically correct request that uses too much resources.
Note: multilingual error messages should be updated.
Response sent to the API client:
Issue
No
Unit tests
Added unit tests
Documentation
No