Skip to content

Commit 88f9e30

Browse files
author
Oleksandr Bazarnov
committed
removed __ManifestMigration_ from class names
1 parent d36bb01 commit 88f9e30

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

airbyte_cdk/manifest_migrations/manifest_migration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def _get_migration_version(self) -> str:
121121
The migration version is extracted from the class name using a regular expression.
122122
The expected format is "V_<major>_<minor>_<patch>_<migration_name>".
123123
124-
For example, "V_6_45_2_ManifestMigration_HttpRequesterPathToUrl" -> "6.45.2"
124+
For example, "V_6_45_2_HttpRequesterPathToUrl" -> "6.45.2"
125125
126126
:return: The migration version as a string in the format "major.minor.patch"
127127
:raises ValueError: If the class name does not match the expected format
@@ -133,5 +133,5 @@ def _get_migration_version(self) -> str:
133133
return migration_version.group(1).replace("_", ".")
134134
else:
135135
raise ValueError(
136-
f"Invalid migration class name, make sure the class name has the version (e.g `V_0_0_0_`): {class_name}"
136+
f"Invalid migration class name, make sure the class name has the version (e.g `V_<major>_<minor>_<patch>_<migration_name>`): {class_name}"
137137
)

airbyte_cdk/manifest_migrations/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/manifest_migrations/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)