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

[NEAT-739] 🙂 Handle bad names #964

Merged
merged 25 commits into from
Feb 3, 2025
Merged

[NEAT-739] 🙂 Handle bad names #964

merged 25 commits into from
Feb 3, 2025

Conversation

doctrino
Copy link
Collaborator

@doctrino doctrino commented Feb 1, 2025

No description provided.

@@ -327,6 +328,7 @@ def parse_table_lookup(raw: str) -> TableLookup:


def parse_rule(rule_raw: str, rule_type: TransformationRuleType | None) -> RDFPath:
rule_raw = urllib.parse.unquote(rule_raw)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Up for discussion how to deal with this. The old RDFPath is more restrictive than a URI, which I think might be a problem.

Should we reduce the RDFPath to the bare minimum, no hops allowed before v1 and instead reintrodure the more advanced concepts with an alpha flag?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Fully agree, everything that is doing hops, etc. should be neat.prepare.instances....

Copy link

github-actions bot commented Feb 1, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
14679 11732 80% 60% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
cognite/neat/_rules/models/_rdfpath.py 76% 🟢
cognite/neat/_rules/models/entities/_constants.py 100% 🟢
cognite/neat/_rules/transformers/init.py 100% 🟢
cognite/neat/_rules/transformers/_converters.py 84% 🟢
cognite/neat/_session/_base.py 78% 🟢
cognite/neat/_session/_state.py 85% 🟢
cognite/neat/_utils/text.py 85% 🟢
TOTAL 87% 🟢

updated for commit: 3ecf148 by action🐍

@@ -327,6 +328,7 @@ def parse_table_lookup(raw: str) -> TableLookup:


def parse_rule(rule_raw: str, rule_type: TransformationRuleType | None) -> RDFPath:
rule_raw = urllib.parse.unquote(rule_raw)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Fully agree, everything that is doing hops, etc. should be neat.prepare.instances....

@doctrino doctrino force-pushed the infer-handle-bad-names branch from d3301a6 to 74750af Compare February 3, 2025 08:23
Base automatically changed from standardize-naming to main February 3, 2025 08:26
@doctrino doctrino merged commit 4fa6892 into main Feb 3, 2025
6 checks passed
@doctrino doctrino deleted the infer-handle-bad-names branch February 3, 2025 08:30
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