Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split Transformation export from DMS and Release 0.68.0 #330

Merged
merged 8 commits into from
Mar 19, 2024
Merged

Conversation

doctrino
Copy link
Collaborator

@doctrino doctrino commented Mar 19, 2024

image

@doctrino doctrino changed the title Modify DMSExporter step Split Transformation export from DMS Mar 19, 2024
@doctrino doctrino changed the title Split Transformation export from DMS Split Transformation export from DMS and Release 0.68.0 Mar 19, 2024
@doctrino doctrino requested review from nikokaoja and alivinco March 19, 2024 15:41
@@ -570,7 +570,7 @@ def _create_spaces(
spaces = dm.SpaceApplyList([dm.SpaceApply(space=data_model.space)])
else:
spaces = dm.SpaceApplyList([metadata.as_space()] + [dm.SpaceApply(space=space) for space in used_spaces])
if self.instance_space:
if self.instance_space and self.instance_space not in {space.space for space in spaces}:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bugfix

Comment on lines +81 to +92
if self.export_components.intersection({"all", "spaces"}):
for space in schema.spaces:
zip_ref.writestr(f"data_models/{space.space}.space.yaml", space.dump_yaml())
if self.export_components.intersection({"all", "data_models"}):
for model in schema.data_models:
zip_ref.writestr(f"data_models/{model.external_id}.datamodel.yaml", model.dump_yaml())
if self.export_components.intersection({"all", "views"}):
for view in schema.views:
zip_ref.writestr(f"data_models/{view.external_id}.view.yaml", view.dump_yaml())
if self.export_components.intersection({"all", "containers"}):
for container in schema.containers:
zip_ref.writestr(f"data_models/{container.external_id}.container.yaml", container.dump_yaml())
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bugfix

@doctrino doctrino marked this pull request as ready for review March 19, 2024 15:43
@doctrino doctrino merged commit 0f078b8 into main Mar 19, 2024
6 checks passed
@doctrino doctrino deleted the split-step branch March 19, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants