Skip to content
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

feat(functions/slack): add GCF v2 decorators #7889

Merged
merged 8 commits into from May 13, 2022
Merged

feat(functions/slack): add GCF v2 decorators #7889

merged 8 commits into from May 13, 2022

Conversation

ace-n
Copy link

@ace-n ace-n commented May 12, 2022

✅ I've confirmed this works on GCF itself.

@ace-n ace-n requested review from a team as code owners May 12, 2022 23:08
@product-auto-label product-auto-label bot added api: cloudfunctions Issues related to the Cloud Functions API. samples Issues that are directly related to samples. labels May 12, 2022
functions/slack/main.py Outdated Show resolved Hide resolved
@@ -89,6 +90,7 @@ def make_search_request(query):


# [START functions_slack_search]
@functions_framework.http
Copy link
Collaborator

Choose a reason for hiding this comment

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

Sorry I'm not too informed about this decorator, is this for good practice? If this is a recommended approach, and this is going to show up on the Sample Browser as well, I think it might be good to be able to point users towards some sort of documentation that explains why using this might be beneficial!

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think it was documented; This PR GoogleCloudPlatform/functions-framework-nodejs#347 is the most detailed bit I could find. Thoughts on whether we should point to it?

Ace Nassri and others added 2 commits May 13, 2022 09:50
Co-authored-by: Dan Lee <71398022+dandhlee@users.noreply.github.com>
@ace-n ace-n requested a review from dandhlee May 13, 2022 16:51
Copy link
Collaborator

@dandhlee dandhlee left a comment

Choose a reason for hiding this comment

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

LGTM.

@ace-n ace-n merged commit d10a7d4 into main May 13, 2022
@ace-n ace-n deleted the v2-slack branch May 13, 2022 19:37
leahecole pushed a commit that referenced this pull request May 25, 2022
* feat(functions/slack): add GCF v2 decorators

* Fix lint

* Fix copyright

* Bots hate commas

* Humans hate commas too

* Fix copyright

Co-authored-by: Dan Lee <71398022+dandhlee@users.noreply.github.com>

Co-authored-by: Dan Lee <71398022+dandhlee@users.noreply.github.com>
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 Functions API. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants