Update transaction list to differentiate GraphQL requests #848
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π· Screenshots
π Context
Issue #116 talks about the shortcoming of the initial approach of supporting GraphQL on Chucker.
This PR is an attempt support GraphQL on Chucker using the guidelines mentioned in Issue #116.
π Changes
graphQLEndpoint
through theChuckerInterceptor.Builder
graphQLEndpoint
as an argument to theRequestProcessor.process(..)
methodisGraphQLRequest
property in theHttpTransaction
entity &HttpTransactionTuple
isGraphQLRequest
viaHttpTransactionTuple
π Related PR
PR#805 is also doing the same thing but does not handle GraphQL requests via HTTP GET methods. But this PR does not block any other PR.
π« Breaking
ChuckerInterceptor
now contains an additional parameter to represent a GraphQL path or urlRequestProcessor
'sprocess(..)
method would accept the Graphql path passed by Interceptor.π οΈ How to test
Test cases for
![chucker_update_transaction_list](https://user-images.githubusercontent.com/97124666/178785469-86ea0419-1d5d-4f27-97b6-62d4eecc1d55.gif)
RequestProcessor
included in the PR.β±οΈ Next steps