v7labs / darwin-py

Library and commandline tool for managing datasets on darwin.v7labs.com
MIT License
115 stars 42 forks source link

[PLA-640] Updating metadata property values while importing annotations #780

Closed saurbhc closed 6 months ago

saurbhc commented 6 months ago

Problem

While importing annotations with properties, property-values which are not in annotation file but present in metadata.json are not created/updated in annotation-property.

Solution

Adding additional logic after annotation-properties are created/updated on the server. Logic is:

  1. get the latest team-properties
  2. only go ahead in the case when annotation-properties are present in team-properties
  3. build metadata-property-values set
  4. build team-property-values set
  5. extra values: diff b/w metadata & team property-values set
  6. update property with extra-property-values!

Changelog

Updating additional metadata property values while importing annotations

linear[bot] commented 6 months ago

PLA-640 Request: darwin-py does not update properties with new values present in the manifest