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-1609][External] pull() never creates the properties metadata file in the annotations directory #816

Merged
merged 5 commits into from
Apr 17, 2024

Conversation

JBWilkie
Copy link
Collaborator

@JBWilkie JBWilkie commented Apr 15, 2024

Problem

When downloading annotation ZIPs when using pull(), the properties manifest file is never created in the annotations directory. This is because despite the fact that we download the same ZIP file that the frontend provides, we first unzip the files in a temporary directory, then only move .json files to the annotations directory. This leaves the .v7 folder behind

Solution

If the properties metadata file is present, move it to the annotations directory

Changelog

Fixed a bug where downloading annotations with darwin-py would not include the properties metadata file

@JBWilkie JBWilkie requested a review from saurbhc April 15, 2024 16:36
darwin/dataset/remote_dataset.py Outdated Show resolved Hide resolved
darwin/dataset/remote_dataset.py Outdated Show resolved Hide resolved
@saurbhc
Copy link
Member

saurbhc commented Apr 16, 2024

Let's also add a test case, maybe here? - which makes sure it moves the metadata.json file

JBWilkie and others added 2 commits April 17, 2024 09:20
Co-authored-by: saurbhc <sc@saurabhchopra.co.uk>
Co-authored-by: saurbhc <sc@saurabhchopra.co.uk>
Copy link
Member

@saurbhc saurbhc left a comment

Choose a reason for hiding this comment

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

Thank you 🙏

@JBWilkie JBWilkie merged commit 01c7c90 into master Apr 17, 2024
16 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