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

[Fix] AGE-1360 #2285

Merged
merged 1 commit into from
Nov 21, 2024
Merged

[Fix] AGE-1360 #2285

merged 1 commit into from
Nov 21, 2024

Conversation

jp-agenta
Copy link
Contributor

No description provided.

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Nov 21, 2024
Copy link

vercel bot commented Nov 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
agenta ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 21, 2024 3:10pm
agenta-documentation ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 21, 2024 3:10pm

@jp-agenta jp-agenta changed the title half fix, half patch, half print [fix] AGE-1360 Nov 21, 2024
@jp-agenta jp-agenta changed the title [fix] AGE-1360 [Fix] AGE-1360 Nov 21, 2024
@@ -41,7 +41,7 @@ def _is_uuid_key(key: str) -> bool:
"root.id",
"tree.id",
"node.id",
"parend.id",
"parent.id",
Copy link
Contributor Author

@jp-agenta jp-agenta Nov 21, 2024

Choose a reason for hiding this comment

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

Independent fix.

@@ -152,6 +152,7 @@ def parse_ingest_value(
attributes[key] = to_type(attributes[key])
except ValueError:
print_exc()
print(f"key='{key}' attribute='{attributes[key]}' type='{to_type}'")
Copy link
Contributor Author

@jp-agenta jp-agenta Nov 21, 2024

Choose a reason for hiding this comment

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

Simply more info for future debugging of things like badly formed hexadecimal UUID string

@@ -167,7 +168,7 @@ def parse_ingest(
}
for field, attributes in typecheck.items():
if attributes is not None:
for key in attributes.keys():
for key in list(attributes.keys()):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Prevents dictionary changed size during iteration

Copy link
Member

@mmabrouk mmabrouk left a comment

Choose a reason for hiding this comment

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

Thanks @jp-agenta for the quick fix

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 21, 2024
@mmabrouk mmabrouk merged commit 6f10285 into main Nov 21, 2024
10 of 11 checks passed
@mmabrouk mmabrouk deleted the fix/AGE-1360 branch November 21, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants