Skip to content

Commit e7e6dda

Browse files
authored
Merge branch 'master' into btkcodedev/faunaMigrtepoetry
2 parents e2de185 + 04d153e commit e7e6dda

File tree

620 files changed

+3594
-3734
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

620 files changed

+3594
-3734
lines changed

airbyte-ci/connectors/pipelines/pipelines/airbyte_ci/connectors/commands.py

+1
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ def validate_environment(is_local: bool) -> None:
149149
"publish": "pipelines.airbyte_ci.connectors.publish.commands.publish",
150150
"bump-version": "pipelines.airbyte_ci.connectors.bump_version.commands.bump_version",
151151
"migrate-to-manifest-only": "pipelines.airbyte_ci.connectors.migrate_to_manifest_only.commands.migrate_to_manifest_only",
152+
"migrate-to-inline-schemas": "pipelines.airbyte_ci.connectors.migrate_to_inline_schemas.commands.migrate_to_inline_schemas",
152153
"generate-erd": "pipelines.airbyte_ci.connectors.generate_erd.commands.generate_erd",
153154
"upgrade-cdk": "pipelines.airbyte_ci.connectors.upgrade_cdk.commands.upgrade_cdk",
154155
"up-to-date": "pipelines.airbyte_ci.connectors.up_to_date.commands.up_to_date",

airbyte-ci/connectors/pipelines/pipelines/airbyte_ci/connectors/consts.py

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ class CONNECTOR_TEST_STEP_ID(str, Enum):
3535
MANIFEST_ONLY_CHECK = "migrate_to_manifest_only.check"
3636
MANIFEST_ONLY_STRIP = "migrate_to_manifest_only.strip"
3737
MANIFEST_ONLY_UPDATE = "migrate_to_manifest_only.update"
38+
INLINE_CANDIDATE = "migration_to_inline_schemas.candidate"
39+
INLINE_MIGRATION = "migration_to_inline_schemas.migration"
40+
INLINE_CLEANUP = "migration_to_inline_schemas.cleanup"
3841
LOAD_IMAGE_TO_LOCAL_DOCKER_HOST = "load_image_to_local_docker_host"
3942

4043
def __str__(self) -> str:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#
2+
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
3+
#
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#
2+
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
3+
#
4+
5+
6+
import asyncclick as click
7+
8+
from pipelines.airbyte_ci.connectors.migrate_to_inline_schemas.pipeline import run_connector_migrate_to_inline_schemas_pipeline
9+
from pipelines.cli.dagger_pipeline_command import DaggerPipelineCommand
10+
from pipelines.helpers.connectors.command import run_connector_pipeline
11+
from pipelines.helpers.connectors.format import verify_formatters
12+
13+
14+
@click.command(
15+
cls=DaggerPipelineCommand,
16+
short_help="Where possible (have a metadata.yaml), move stream schemas to inline schemas.",
17+
)
18+
@click.option(
19+
"--report",
20+
is_flag=True,
21+
type=bool,
22+
default=False,
23+
help="Auto open report browser.",
24+
)
25+
@click.pass_context
26+
async def migrate_to_inline_schemas(ctx: click.Context, report: bool) -> bool:
27+
verify_formatters()
28+
return await run_connector_pipeline(
29+
ctx,
30+
"Migrate to inline schemas",
31+
report,
32+
run_connector_migrate_to_inline_schemas_pipeline,
33+
)

0 commit comments

Comments
 (0)