-
-
Notifications
You must be signed in to change notification settings - Fork 339
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
🔍 Filter transactions based on graphqlOperationName
#920
🔍 Filter transactions based on graphqlOperationName
#920
Conversation
graphqlOperationName
@cortinico Apologies if you're busy! Any idea when would you be able to review this PR? |
I'll look into this over the weekend/next week 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for sending this PR @ArjanSM
There are a couple of bits to fix and then we can merge it 👍
library/src/main/kotlin/com/chuckerteam/chucker/internal/data/room/HttpTransactionDao.kt
Outdated
Show resolved
Hide resolved
...in/com/chuckerteam/chucker/internal/data/repository/HttpTransactionDatabaseRepositoryTest.kt
Outdated
Show resolved
Hide resolved
library/src/test/kotlin/com/chuckerteam/chucker/internal/data/room/HttpTransactionDaoTest.kt
Show resolved
Hide resolved
...in/com/chuckerteam/chucker/internal/data/repository/HttpTransactionDatabaseRepositoryTest.kt
Outdated
Show resolved
Hide resolved
...kotlin/com/chuckerteam/chucker/internal/data/repository/HttpTransactionDatabaseRepository.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a small comment and is good to go for me 👍
...kotlin/com/chuckerteam/chucker/internal/data/repository/HttpTransactionDatabaseRepository.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me as well. Thanks a lot for your contributions with GraphQL stuff!
📷 Screenshots
📄 Context
issue#847
📝 Changes
getFilteredTuples
in theHttpTransactionDao.kt
which enables filtering on the basis ofGraphQLOperationName
.In order to avoid any breaking changes the
pathQuery
argument is utilized to filter on the basis ofgraphQLOperationName
.I'm wondering if the argument name could be renamed to
filterQuery
?HttpTransactionDatabaseRepositoryTest.kt
&HttpTransactionDaoTest.kt
have been updated📎 Related PR
🚫
🚫 Breaking
🚫
🛠️ How to test
DO HTTP ACTIVITY
&DO GRAPHQL ACTIVITY
LAUNCH CHUCKER ACTIVITY
Chucker should filter the transactions and display a GraphQL transaction with the operation name as
SearchCharacters
⏱️ Next steps