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

[PY-626] Updates to import endpoint - annotation_properties #760

Merged
merged 9 commits into from
Jan 10, 2024
Merged

Conversation

saurbhc
Copy link
Member

@saurbhc saurbhc commented Dec 22, 2023

Problem

No support for handling properties data in import_annotation endpoint

Solution

add another function _handle_properties which adds properties as list of property data (as required by backend)

TODO:

Changelog

Updates to import endpoint - Handle Properties data

Copy link

linear bot commented Dec 22, 2023

@saurbhc saurbhc self-assigned this Dec 22, 2023
@saurbhc saurbhc added the enhancement New feature or request label Dec 22, 2023
@saurbhc saurbhc changed the base branch from master to PY-622 January 3, 2024 16:14
@saurbhc saurbhc changed the title [PY-626] Updates to import endpoint - Handle Properties data [PY-626] Updates to import endpoint - annotation_properties Jan 4, 2024
@saurbhc saurbhc marked this pull request as ready for review January 4, 2024 10:30
@saurbhc saurbhc removed the request for review from Nathanjp91 January 10, 2024 15:28
@saurbhc saurbhc merged commit 6abc534 into PY-622 Jan 10, 2024
15 checks passed
@saurbhc saurbhc deleted the PY-626 branch January 10, 2024 15:28
saurbhc added a commit that referenced this pull request Jan 25, 2024
…rting annotations (#759)

* _import_properties WIP

* fix tests for is_properties_enabled

* add more logic

* remove metadata file edge cases

* update tests

* fix import logic

* rm breakpoint

* update importer - fix client

* remove print

* update prints

* udpate metadata_path check

* update propertyvalue create logic

* [PY-626] Updates to import endpoint - `annotation_properties` (#760)

* handling properties data while importing annotations

* add tests for _handle_annotation_data

* update importer - add annotations_properties in payload of import annotations

* update importer - rm _handle_properties code

* fix test

* update test

* fix indent

* add the missing return value

* fix issues with multi_select create_property

* rm `_msg` variable used in ValueError as they are not used again.

* update list lookup -> to set for faster lookups

* update `annotation_id_property_map` keys are moved from str -> tuple[str, str]

* created a doc-block for _import_properties fn

* [PY-665] - Update property-value object structure to support un-nested value field (#769)

* update nested value changes for property-value objects

* fix tests + fix linting

* rm property field from PropertyValue object

* add description & rm type in PropertyValue

* update test-metadata files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant