Skip to content
This repository has been archived by the owner on Jun 19, 2022. It is now read-only.

Stop decoding json from pubsub #554

Merged
merged 1 commit into from
Feb 14, 2020

Conversation

bskaplan
Copy link
Contributor

@bskaplan bskaplan commented Feb 14, 2020

Always leave pubsub message data as b64-encoded, regardless of what the decoded data looks like.

Fixes #546

Release Note

All data in pubsub messages is returned as a base-64 encoded strings. Previously, JSON data was decoded as a special case.

Instead, leave it in base64 like every other format.
@knative-prow-robot
Copy link
Contributor

Welcome @bskaplan! It looks like this is your first PR to google/knative-gcp 🎉

@knative-prow-robot
Copy link
Contributor

Hi @bskaplan. Thanks for your PR.

I'm waiting for a google member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@nachocano
Copy link
Member

/ok-to-test

@nachocano
Copy link
Member

/approve
/lgtm

@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bskaplan, nachocano

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-metrics-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-google-knative-gcp-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/pubsub/adapter/converters/pubsub.go 90.0% 96.0% 6.0

@knative-prow-robot knative-prow-robot merged commit 7075f74 into google:master Feb 14, 2020
nachocano pushed a commit to nachocano/knative-gcp that referenced this pull request Feb 14, 2020
Instead, leave it in base64 like every other format.
knative-prow-robot pushed a commit that referenced this pull request Feb 14, 2020
* updating serving and eventing to 0.12

* Stop special-case unmarhalling json from pubsub. (#554)

Instead, leave it in base64 like every other format.

Co-authored-by: bskaplan <58792807+bskaplan@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't base64 decode data in CloudPubSubSource
4 participants