-
Notifications
You must be signed in to change notification settings - Fork 5
develop ff-python based on ofn v1beta2 #3
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
Conversation
Signed-off-by: laminar <[email protected]>
Signed-off-by: laminar <[email protected]>
Signed-off-by: laminar <[email protected]>
Signed-off-by: laminar <[email protected]>
That's great, looking forward to this PR! @wanjunlei @wrongerror |
Signed-off-by: laminar <[email protected]>
Signed-off-by: laminar <[email protected]>
Signed-off-by: laminar <[email protected]>
Signed-off-by: laminar <[email protected]>
I think this PR is ready for review, as it currently supports Dapr and HTTP triggers. (can be demonstrated in the sig meeting) The observability feature and the hooks feature can be worked on later. What are your comments? |
@tpiperatgod That's great. @wanjunlei @wrongerror @webup @lizzzcai would you help to review? |
return self.__http_request | ||
|
||
@exception_handler | ||
def send(self, output_name, data): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now we do not encourage users to call send now. Instead, we suggest invoking dapr method directly using daprClient like this https://github.com/OpenFunction/java-samples/blob/main/src/main/java/dev/openfunction/samples/StateStore.java#L72
invokeBindings for the binding component
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Should we remove send()
or keep it for now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can keep it for now, but can user get daprClient from function's context now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UserContext has the self.dapr_client
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UserContext has the
self.dapr_client
Then we need samples to call dapr client directly
I'm okay with this PR, and it's great to have this significant improvement to the Python framework. |
any changes from the user side? maybe can update the docs if any. |
I'll update the docs and examples later |
@@ -0,0 +1,217 @@ | |||
# Copyright 2020 Google LLC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be updated as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept some of gcp's license header because almost all of that code comes from gcp's ff-python, what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in this case, I think can keep it. maybe @benjaminhuo can comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep it if we haven't modify it
Signed-off-by: laminar <[email protected]>
No description provided.