Skip to content

adds CloudEvent helloworld to examples, README, and tests #55

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

Merged
merged 2 commits into from
Oct 14, 2020

Conversation

bshaffer
Copy link
Collaborator

No description provided.

@bshaffer bshaffer requested review from grant and ace-n October 13, 2020 22:05
Copy link
Contributor

@ace-n ace-n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once changes are addressed, and we have a future plan to re-enable version pinning (assuming that this PR disables it.)

README.md Outdated
The Functions Framework can unmarshall incoming [CloudEvents][cloud-events]
payloads to a `cloudevent` object. This will be passed as arguments to your
function when it receives a request. Note that your function must use the
cloudevent-style function signature:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: cloudevent?

@@ -1,5 +1,5 @@
{
"require": {
"google/cloud-functions-framework": "^0.3"
"google/cloud-functions-framework": "dev-master as 0.6.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this downloading the latest code available directly from GitHub? (i.e. disabling version pinning)

(This is a beta version, so I'm willing to allow it for now - but we definitely shouldn't do this once we release publicly.)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's only for testing. I will change it back once a version is tagged

@@ -15,10 +15,30 @@
* limitations under the License.
*/

/**
* To use this, set the following environment variables:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: can these also be specified as command-line args?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no CLI for php at the moment

}

public static function tearDownAfterClass(): void
{
// If a test failed before it could delete its container
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: would it be better to have a single "clean up test resources" comment?

(Or maybe even delete these comments outright, if you're of the "code should be self-documenting" philosophy.)

@bshaffer bshaffer merged commit dba0a47 into master Oct 14, 2020
@bshaffer bshaffer deleted the prepare-v0.6.0 branch October 14, 2020 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants