-
Notifications
You must be signed in to change notification settings - Fork 4
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-343] 🎢 Asset Migration Toy Example Tutorial #531
Conversation
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
for instance_type, instances in {"Nodes": upserted.nodes, "Edges": upserted.edges}.items(): | ||
result = UploadResult[InstanceId](name=instance_type, issues=read_issues) | ||
for instance in instances: # type: ignore[attr-defined] | ||
if instance.was_modified and instance.created_time == instance.last_updated_time: | ||
result.created.add(instance.as_id()) | ||
elif instance.was_modified: | ||
result.changed.add(instance.as_id()) | ||
else: | ||
result.unchanged.add(instance.as_id()) | ||
yield result |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issues = NeatIssueList[NeatIssue]() | ||
items = [] | ||
if items: | ||
yield self._upload_to_cdf(client, items, dry_run, issues) | ||
yield from self._upload_to_cdf(client, items, dry_run, issues) | ||
|
||
@abstractmethod | ||
def _get_required_capabilities(self) -> list[Capability]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
considering issue that we bump into when client IAM did not have any cap. do we have a fall back when loader will attempt to push things to CDF?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what you mean here.
result.changed.add(instance.as_id()) | ||
else: | ||
result.unchanged.add(instance.as_id()) | ||
yield result |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
b8tiul :)
No description provided.