Skip to content

Migrating from deprecated Overrides fields #25

@Enzodtz

Description

@Enzodtz

Hi,

I noticed most fields from the Overrides class are marked as deprecated.

class Overrides(BaseModel):
r"""This could be used to override provider specific configurations"""
steps: Optional[Dict[str, StepsOverrides]] = None
r"""This could be used to override provider specific configurations"""
providers: Optional[Dict[str, Dict[str, Any]]] = None
r"""Overrides the provider configuration for the entire workflow and all steps"""
email: Annotated[
Optional[Dict[str, Any]],
pydantic.Field(
deprecated="warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible."
),
] = None
r"""Override the email provider specific configurations for the entire workflow"""
push: Annotated[
Optional[Dict[str, Any]],
pydantic.Field(
deprecated="warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible."
),
] = None
r"""Override the push provider specific configurations for the entire workflow"""
sms: Annotated[
Optional[Dict[str, Any]],
pydantic.Field(
deprecated="warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible."
),
] = None
r"""Override the sms provider specific configurations for the entire workflow"""
chat: Annotated[
Optional[Dict[str, Any]],
pydantic.Field(
deprecated="warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible."
),
] = None
r"""Override the chat provider specific configurations for the entire workflow"""
layout_identifier: Annotated[
Optional[str],
pydantic.Field(
deprecated="warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible.",
alias="layoutIdentifier",
),
] = None
r"""Override the layout identifier for the entire workflow"""

However I was not able to find the alternative to those. Even the official docs recommend it.

I'm looking for guidance on the best practices for overrides.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions