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

Add Webhook storage (fixes #2835) #3000

Merged
merged 21 commits into from
Aug 4, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix typehint and add changes entry
  • Loading branch information
jameslamb committed Jul 20, 2020
commit 8ca588df58d85afd23cd628eb7a3016552c074b8
5 changes: 5 additions & 0 deletions changes/pr3000.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
enhancement:
- "Add WebHook storage - [#3000](https://github.com/PrefectHQ/prefect/pull/3000)"

contributor:
- "[James Lamb](https://github.com/jameslamb)"
2 changes: 1 addition & 1 deletion src/prefect/serialization/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class Meta:
secrets = fields.List(fields.Str(), allow_none=True)

@post_load
def create_object(self, data: dict, **kwargs: Any) -> GitHub:
def create_object(self, data: dict, **kwargs: Any) -> WebHook:
flows = data.pop("flows", dict())
base_obj = super().create_object(data)
base_obj.flows = flows
Expand Down