Skip to content

Commit

Permalink
Adds config_change_callback to get_source and get_destination
Browse files Browse the repository at this point in the history
  • Loading branch information
tcboles committed Nov 4, 2024
1 parent abe154e commit 5650728
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion airbyte/destinations/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(
executor: Executor,
name: str,
config: dict[str, Any] | None = None,
config_change_callback: Callable[[dict[str, Any]], None] | None = None,
config_change_callback: Callable[[dict[str, Any], int], None] | None = None,
*,
validate: bool = False,
) -> None:
Expand Down
2 changes: 2 additions & 0 deletions airbyte/destinations/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
def get_destination(
name: str,
config: dict[str, Any] | None = None,
config_change_callback: Callable[[dict[str, Any], int], None] | None = None,
*,
version: str | None = None,
pip_url: str | None = None,
Expand Down Expand Up @@ -58,6 +59,7 @@ def get_destination(
return Destination(
name=name,
config=config,
config_change_callback=config_change_callback,
executor=get_connector_executor(
name=name,
version=version,
Expand Down
2 changes: 1 addition & 1 deletion airbyte/sources/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __init__(
executor: Executor,
name: str,
config: dict[str, Any] | None = None,
config_change_callback: Callable[[dict[str, Any]], None] | None = None,
config_change_callback: Callable[[dict[str, Any], int], None] | None = None,
streams: str | list[str] | None = None,
*,
validate: bool = False,
Expand Down
2 changes: 2 additions & 0 deletions airbyte/sources/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def get_connector(
def get_source( # noqa: PLR0913 # Too many arguments
name: str,
config: dict[str, Any] | None = None,
config_change_callback: Callable[[dict[str, Any], int], None] | None = None,
*,
streams: str | list[str] | None = None,
version: str | None = None,
Expand Down Expand Up @@ -103,6 +104,7 @@ def get_source( # noqa: PLR0913 # Too many arguments
return Source(
name=name,
config=config,
config_change_callback=config_change_callback,
streams=streams,
executor=get_connector_executor(
name=name,
Expand Down

0 comments on commit 5650728

Please sign in to comment.