Repository navigation
Add support for parsing log entries w/ 'protoPayload' from resources - #1578
Conversation
| See: | ||
| https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/LogEntry | ||
| """ | ||
| _PAYLOAD_KEY = 'protoPayload' |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
commented
Mar 11, 2016
|
I take it this hasn't been rebased yet? |
commented
Mar 11, 2016
For testing code, I disagree: "it takes as much as it takes" to cover the MUT, and the arbitrary restriction on testcase method length tends to lead to "getting fancy" in testing code. |
commented
Mar 11, 2016
It is current with the tip of the |
commented
Mar 11, 2016
|
RE: Rebased, the "Add 'Logger.list_entries'." commit must not have merged cleanly then. Maybe you want to cherry-pick the last two commits? |
commented
Mar 11, 2016
|
Github seems confused: e4b4b0d is already present on the |
commented
Mar 11, 2016
|
Try a bit more to unconfuse it? Maybe re-fetch the remote locally? |
commented
Mar 11, 2016
|
How? The histories look identical to me: |
commented
Mar 11, 2016
|
Looks like you've sorted it out. Only two commits now in this PR. |
commented
Mar 11, 2016
|
I just tried a new |
commented
Mar 11, 2016
It's not hard to argue that code like the lint-disabled |
We can't feasibly allow writing such entries until we have an answer for
commented
Mar 21, 2016
|
@dhermes 7c52009 drops suppressing the project-wide 'too-many-statements' check for test code, and instead disables it locally for the one newly-added test: looking at it, I don't see any reason to break it up. PTAL |
commented
Mar 22, 2016
|
Only real pending issue is my comment about seeing an example of a proto payload from a real API request. Have you been able to produce one? |
commented
Mar 22, 2016
|
From the "Try It" form: returns: |
commented
Mar 22, 2016
|
Really helpful! Thanks |
commented
Mar 22, 2016
|
LGTM (though I still think reducing the test boilerplate for the do-nothing subclasses would be a net positive) |
commented
Mar 22, 2016
|
@dhermes I changed |
commented
Mar 22, 2016
|
SGTM thanks |
Uses #1574 as a base.
Note that we can't feasibly allow writing such entries until we have an answer for #1577.