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

CVAT CLI create task argument "project" should be "project_id" #3494

Closed
2 tasks done
MuhammadSYahyaS opened this issue Aug 1, 2021 · 2 comments · Fixed by #3519
Closed
2 tasks done

CVAT CLI create task argument "project" should be "project_id" #3494

MuhammadSYahyaS opened this issue Aug 1, 2021 · 2 comments · Fixed by #3519
Assignees
Labels
bug Something isn't working

Comments

@MuhammadSYahyaS
Copy link
Contributor

My actions before raising this issue

Expected Behaviour

CVAT CLI create task argument "project" should be "project_id".
https://github.com/openvinotoolkit/cvat/blob/1ea3334b2febb41458add5e9a53d673d7b963f4b/utils/cli/core/definition.py#L116

Current Behaviour

Argument "project" is parsed by the argument parser as project. The CLI.task_create keyword argument is expecting project_id instead. Since the project ID value is not parsed, the project_id data in the POST request https://github.com/openvinotoolkit/cvat/blob/1ea3334b2febb41458add5e9a53d673d7b963f4b/utils/cli/core/core.py#L45 is always None, and the server was giving status code 400 response.

Possible Solution

Replace CVAT CLI create task argument "project" to "project_id" in the definition.py.
https://github.com/openvinotoolkit/cvat/blob/1ea3334b2febb41458add5e9a53d673d7b963f4b/utils/cli/core/definition.py#L116
I tested this and the create task succeed.

Steps to Reproduce (for bugs)

  1. Put some_video.mov into shared data.
  2. Create a new project and define some label. E.g., the created project has project ID 4.
  3. python3 cli.py --auth admin:password create --project_id 4 my_task share /data/some_video.mov

Context

Creating new task from share data source by only specifying project ID. The project is already created before with some label definition.

Your Environment

  • Git hash commit (git log -1): 315c9cc
  • Docker version docker version (e.g. Docker 17.0.05): 19.03.13
  • Are you using Docker Swarm or Kubernetes? N
  • Operating System and version (e.g. Linux, Windows, MacOS): Ubuntu 18.04.5 LTS
@bsekachev
Copy link
Member

@ActiveChooN

Could you please take a look at the issue?

@bsekachev bsekachev added the bug Something isn't working label Aug 4, 2021
@ActiveChooN
Copy link
Contributor

@bsekachev

Could you please take a look at the issue?

Sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants