Skip to content

Conversation

@ace-n
Copy link
Contributor

@ace-n ace-n commented Nov 17, 2021

Please merge for me once this LGTM. Thanks!

@ace-n ace-n requested a review from averikitsch November 17, 2021 02:55
@ace-n ace-n requested a review from a team as a code owner November 17, 2021 02:55
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 17, 2021
@product-auto-label product-auto-label bot added api: cloudfunctions Issues related to the Cloud Run functions API. samples Issues that are directly related to samples. labels Nov 17, 2021
@averikitsch
Copy link
Contributor

averikitsch commented Nov 22, 2021

Thanks Ace for the PR. I hate to say, but I think we should revert L77-99 back to https://github.com/GoogleCloudPlatform/nodejs-docs-samples/pull/2402/files#diff-6a15ae6459f327c31196fce22c039e2db448984406823bd0f917727353332adeL71-L72. I understand there are two concepts we care about the CloudEvent and the AuditLog. We should add more comments to make that clear to the user.

@ace-n ace-n enabled auto-merge (squash) November 22, 2021 21:45
@ace-n ace-n disabled auto-merge November 22, 2021 23:39
@ace-n ace-n merged commit a0f2579 into main Nov 22, 2021
@ace-n ace-n deleted the averi-comments branch November 22, 2021 23:44
muncus added a commit to GoogleCloudPlatform/golang-samples that referenced this pull request Nov 24, 2021
muncus added a commit to GoogleCloudPlatform/golang-samples that referenced this pull request Dec 1, 2021
* feat(functionsv2): Add sample for Audit Logs

Sample function prints fields, and has been tested with GCS write audit
logs.

* fix: remove unmatched region tag, and mod tidy.

* Quick fix for audit log tests.

I removed a log statement that the tests were looking for 🤦

* remove use of google-cloudevents library

instead, use minimal structs to unmarshal protoPayload.

* Add explicit field names to structs in the tests list

* Update output to reflect changes to canonical sample

changes to canonical sample were made in
GoogleCloudPlatform/nodejs-docs-samples#2433

* Wrap error returned when calling DataAs()

Co-authored-by: Ace Nassri <[email protected]>
noerog pushed a commit that referenced this pull request Sep 2, 2022
* chore(functions/v2): address comments on CAL samples

* Address comments

* Address Averi's comments
Cori1109 added a commit to Cori1109/golang-samples that referenced this pull request Jan 9, 2023
* feat(functionsv2): Add sample for Audit Logs

Sample function prints fields, and has been tested with GCS write audit
logs.

* fix: remove unmatched region tag, and mod tidy.

* Quick fix for audit log tests.

I removed a log statement that the tests were looking for 🤦

* remove use of google-cloudevents library

instead, use minimal structs to unmarshal protoPayload.

* Add explicit field names to structs in the tests list

* Update output to reflect changes to canonical sample

changes to canonical sample were made in
GoogleCloudPlatform/nodejs-docs-samples#2433

* Wrap error returned when calling DataAs()

Co-authored-by: Ace Nassri <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: cloudfunctions Issues related to the Cloud Run functions API. cla: yes This human has signed the Contributor License Agreement. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants