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

[CDF-23514] 🎢 Inlined transformation #1286

Merged
merged 5 commits into from
Dec 10, 2024
Merged

Conversation

doctrino
Copy link
Collaborator

Description

Please describe the change you have made.

Checklist

@@ -252,21 +274,6 @@ def load_resource(
)
except KeyError as e:
raise ToolkitYAMLFormatError("authentication property is missing required fields", filepath, e)

query_file: Path | None = filepath.parent / Path(transformation.query or "")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This seems to have raised an OS error on mac. Cannot recreate it on Windows.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Anyways, it is a poor solution to overuse the query key for both a path and an actual query. So introduced the queryFile instead, and changed the logic to work on the raw dictionary.

Copy link

github-actions bot commented Dec 10, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
14787 10846 73% 60% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
cognite_toolkit/_cdf_tk/builders/_transformation.py 86% 🟢
cognite_toolkit/_cdf_tk/commands/pull.py 83% 🟢
cognite_toolkit/_cdf_tk/loaders/_resource_loaders/transformation_loaders.py 78% 🟢
TOTAL 82% 🟢

updated for commit: 0dcb601 by action🐍

@doctrino doctrino merged commit 57aea4e into main Dec 10, 2024
10 checks passed
@doctrino doctrino deleted the inline-transformation-bug branch December 10, 2024 08:13
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