Skip to content

Commit a07aa39

Browse files
committed
add config_path param
1 parent 0b02e76 commit a07aa39

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

airbyte_cdk/cli/source_declarative_manifest/_run.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def __init__(
5858
catalog: ConfiguredAirbyteCatalog | None,
5959
config: MutableMapping[str, Any] | None,
6060
state: TState,
61+
config_path: str | None = None,
6162
**kwargs: Any,
6263
) -> None:
6364
"""
@@ -76,6 +77,7 @@ def __init__(
7677
config=config,
7778
state=state, # type: ignore [arg-type]
7879
path_to_yaml="manifest.yaml",
80+
config_path=config_path,
7981
)
8082

8183

airbyte_cdk/sources/declarative/concurrent_declarative_source.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def __init__(
7474
debug: bool = False,
7575
emit_connector_builder_messages: bool = False,
7676
component_factory: Optional[ModelToComponentFactory] = None,
77+
config_path: Optional[str] = None,
7778
**kwargs: Any,
7879
) -> None:
7980
# todo: We could remove state from initialization. Now that streams are grouped during the read(), a source
@@ -96,6 +97,7 @@ def __init__(
9697
debug=debug,
9798
emit_connector_builder_messages=emit_connector_builder_messages,
9899
component_factory=component_factory,
100+
config_path=config_path,
99101
)
100102

101103
concurrency_level_from_manifest = self._source_config.get("concurrency_level")

airbyte_cdk/sources/declarative/yaml_declarative_source.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def __init__(
2424
catalog: Optional[ConfiguredAirbyteCatalog] = None,
2525
config: Optional[Mapping[str, Any]] = None,
2626
state: Optional[List[AirbyteStateMessage]] = None,
27+
config_path: Optional[str] = None,
2728
) -> None:
2829
"""
2930
:param path_to_yaml: Path to the yaml file describing the source
@@ -36,6 +37,7 @@ def __init__(
3637
config=config or {},
3738
state=state or [],
3839
source_config=source_config,
40+
config_path=config_path,
3941
)
4042

4143
def _read_and_parse_yaml_file(self, path_to_yaml_file: str) -> ConnectionDefinition:

0 commit comments

Comments
 (0)