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

SDK: fix Project.import_dataset incorrectly waiting for completion #5459

Merged
merged 1 commit into from
Dec 16, 2022

Conversation

SpecLad
Copy link
Contributor

@SpecLad SpecLad commented Dec 13, 2022

You have to use the import_status action in order to query the input status. Otherwise, the /api/projects/{id}/dataset/ endpoint initiates a dataset export. Currently, import_dataset inadvertently monitors the status of that export, not the original import.

Motivation and context

This bug breaks the CI run for #5456. I've no idea why it hadn't caused the test suite to fail before...

How has this been tested?

Unit tests.

Checklist

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

You have to use the `import_status` action in order to query the input
status. Otherwise, the `/api/projects/{id}/dataset/` endpoint initiates a
dataset export. Currently, `import_dataset` inadvertently monitors the
status of that export, not the original import.
Copy link
Contributor

@nmanovic nmanovic left a comment

Choose a reason for hiding this comment

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

LGTM

@nmanovic nmanovic merged commit e018b10 into cvat-ai:develop Dec 16, 2022
@SpecLad SpecLad deleted the project-import-completion branch December 16, 2022 14:00
mikhail-treskin pushed a commit to retailnext/cvat that referenced this pull request Jul 1, 2023
…vat-ai#5459)

You have to use the `import_status` action in order to query the input
status. Otherwise, the `/api/projects/{id}/dataset/` endpoint initiates
a dataset export. Currently, `import_dataset` inadvertently monitors the
status of that export, not the original import.
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