-
Notifications
You must be signed in to change notification settings - Fork 3
task: Log network activity #238
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
Conversation
aa07850 to
eac9a47
Compare
jkmassel
left a comment
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.
This works well on iOS – adding @oguzkocer as a reviewer for Android to confirm that all the data is present there.
|
@jkmassel I've tested this in WPAndroid Chucker integration and it worked well. The only missing bit was the status text, which is relatively easy to map from the status code, so I think it's fine to land as is. Note that I didn't review the implementation. Let me know if that's needed. |
@oguzkocer I'll add the status text today. If you you'd like me to rename anything, please share suggestions on the changes in this pull request. I'm happy to follow up and make adjustments. |
android/Gutenberg/src/main/java/org/wordpress/gutenberg/NetworkRequest.kt
Outdated
Show resolved
Hide resolved
Thanks @dcalhoun! I've added a suggestion, but as I mentioned it should be OK to land as is. |
Make reading files easier, encountering high-level logic first before the implementation details of helper utilities.
All requests were failing due to the blocking processing of the body.
The data structure for networking logging is incompatible with `dispatchToBridge`.
The absence of these keys resulted in resetting the value to its default when converting the configuration to a builder.
Avoid logging `[Object object]` string values.
Improve assertion explicitness.
Further clarify both request and response data is captured.
eac9a47 to
e90a418
Compare
|
Added the response status text in e90a418. I rebased this atop the latest I will update the WordPress-iOS implementation for the latest changes. @oguzkocer I presume you'll update the WordPress-Android implementation for the latest GutnebergKit changes, but let me know if you'd like me to handle it. |
|
@dcalhoun The WPAndroid changes are in a branch, so please feel free to land this and possibly cut a release, and I'll handle that side of the changes. |
|
I published these changes and others in the v0.11.0 release. |
What?
Allow logging network activity occurring in the WebView.
Why?
Improve observability and debugging of editor network activity.
How?
window.fetchto intercept network activity.Testing Instructions
Accessibility Testing Instructions
N/A, no user-facing changes.
Screenshots or screencast
N/A, no user-facing changes.