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

[DAR-2860][External] Import of item-level properties #936

Merged
merged 12 commits into from
Oct 10, 2024
Merged

Conversation

JBWilkie
Copy link
Collaborator

@JBWilkie JBWilkie commented Oct 9, 2024

Problem

darwin-py cannot currently import item-level properties

Solution

  • Extend the import code to handle item-level properties
  • Add 2 end-to-end tests to cover import of item-level properties

Changelog

Support for importing item-level properties

Copy link

linear bot commented Oct 9, 2024

darwin/backend_v2.py Outdated Show resolved Hide resolved
darwin/datatypes.py Outdated Show resolved Hide resolved
@@ -318,12 +352,104 @@ def _update_payload_with_properties(
annotation["annotation_properties"] = dict(_map)


def _update_payload_with_item_level_properties(
Copy link
Contributor

@dorfmanrobert dorfmanrobert Oct 10, 2024

Choose a reason for hiding this comment

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

Lets rename this and update the description unless we are updating the payload like we do in _update_payload_with_properties, since its not updating the payload but just returning the serialized_item_level_properties

Copy link
Contributor

@dorfmanrobert dorfmanrobert left a comment

Choose a reason for hiding this comment

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

A handful of small things, there is one that regards the actual logic though: #936 (comment)

@JBWilkie JBWilkie merged commit a8f1a90 into master Oct 10, 2024
21 checks passed
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