Skip to content

Commit

Permalink
Deprecate FlowRunCreate.deployment_id (#10324)
Browse files Browse the repository at this point in the history
  • Loading branch information
psofiterol authored Jul 28, 2023
1 parent e530ca3 commit 43d8607
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/prefect/server/schemas/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ class FlowRunCreate(ActionBaseModel):

name: str = FieldFrom(schemas.core.FlowRun)
flow_id: UUID = FieldFrom(schemas.core.FlowRun)
deployment_id: Optional[UUID] = FieldFrom(schemas.core.FlowRun)
flow_version: Optional[str] = FieldFrom(schemas.core.FlowRun)
parameters: dict = FieldFrom(schemas.core.FlowRun)
context: dict = FieldFrom(schemas.core.FlowRun)
Expand All @@ -349,6 +348,17 @@ class FlowRunCreate(ActionBaseModel):
tags: List[str] = FieldFrom(schemas.core.FlowRun)
idempotency_key: Optional[str] = FieldFrom(schemas.core.FlowRun)

# DEPRECATED

deployment_id: Optional[UUID] = Field(
None,
description=(
"DEPRECATED: The id of the deployment associated with this flow run, if"
" available."
),
deprecated=True,
)

class Config(ActionBaseModel.Config):
json_dumps = orjson_dumps_extra_compatible

Expand Down

0 comments on commit 43d8607

Please sign in to comment.