Skip to content

Commit 6814f08

Browse files
author
Oleksandr Bazarnov
committed
updated
1 parent 4a051c2 commit 6814f08

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

airbyte_cdk/connector_builder/connector_builder_handler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ def get_limits(config: Mapping[str, Any]) -> TestLimits:
5656
return TestLimits(max_records, max_pages_per_slice, max_slices, max_streams)
5757

5858

59-
def requires_migration(config: Mapping[str, Any]) -> bool:
59+
def should_migrate_manifest(config: Mapping[str, Any]) -> bool:
6060
"""
6161
Check if the manifest requires migration.
6262
6363
:param config: The config to check
6464
:return: True if the manifest requires migration, False otherwise
6565
"""
66-
return config.get("__requires_migration", False)
66+
return config.get("__should_migrate", False)
6767

6868

6969
def create_source(config: Mapping[str, Any], limits: TestLimits) -> ManifestDeclarativeSource:
@@ -72,7 +72,7 @@ def create_source(config: Mapping[str, Any], limits: TestLimits) -> ManifestDecl
7272
config=config,
7373
emit_connector_builder_messages=True,
7474
source_config=manifest,
75-
migrate_manifest=requires_migration(config),
75+
migrate_manifest=should_migrate_manifest(config),
7676
component_factory=ModelToComponentFactory(
7777
emit_connector_builder_messages=True,
7878
limit_pages_fetched_per_slice=limits.max_pages_per_slice,

airbyte_cdk/sources/declarative/migrations/manifest/migrations/http_requester_path_to_url_v6_45_2__1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from airbyte_cdk.sources.types import EmptyString
99

1010

11-
class V_6_45_2_ManifestMigration_HttpRequesterPathToUrl(ManifestMigration):
11+
class V_6_45_2_HttpRequesterPathToUrl(ManifestMigration):
1212
"""
1313
This migration is responsible for migrating the `path` key to `url` in the HttpRequester component.
1414
The `path` key is expected to be a relative path, and the `url` key is expected to be a full URL.

airbyte_cdk/sources/declarative/migrations/manifest/migrations/http_requester_url_base_to_url_v6_45_2__0.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
)
66

77

8-
class V_6_45_2_ManifestMigration_HttpRequesterUrlBaseToUrl(ManifestMigration):
8+
class V_6_45_2_HttpRequesterUrlBaseToUrl(ManifestMigration):
99
"""
1010
This migration is responsible for migrating the `url_base` key to `url` in the HttpRequester component.
1111
The `url_base` key is expected to be a base URL, and the `url` key is expected to be a full URL.

0 commit comments

Comments
 (0)