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

Ignore tasks without data during project export #6658

Merged
merged 15 commits into from
Aug 24, 2023

Conversation

sizov-kirill
Copy link
Contributor

@sizov-kirill sizov-kirill commented Aug 11, 2023

Motivation and context

  • Allow backup and export annotations for a project even if it has tasks without data
  • Add an error message on attempting to create backup of a task that has no data

How has this been tested?

  • Added REST API tests

Checklist

  • I submit my changes into the develop branch
  • I have added a description of my changes into the CHANGELOG file
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • I have linked related issues (see GitHub docs)
    - [ ] I have increased versions of npm packages if it is necessary
    (cvat-canvas,
    cvat-core,
    cvat-data and
    cvat-ui)

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.

@sizov-kirill sizov-kirill marked this pull request as ready for review August 11, 2023 13:36
@sizov-kirill sizov-kirill requested a review from SpecLad as a code owner August 11, 2023 13:51
@codecov
Copy link

codecov bot commented Aug 11, 2023

Codecov Report

Merging #6658 (d18e2f5) into develop (59ae3e5) will increase coverage by 0.21%.
Report is 11 commits behind head on develop.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop    #6658      +/-   ##
===========================================
+ Coverage    82.25%   82.47%   +0.21%     
===========================================
  Files          366      366              
  Lines        39767    39813      +46     
  Branches      3531     3538       +7     
===========================================
+ Hits         32712    32835     +123     
+ Misses        7055     6978      -77     
Components Coverage Δ
cvat-ui 77.47% <ø> (+0.44%) ⬆️
cvat-server 86.83% <100.00%> (+0.02%) ⬆️

@sizov-kirill sizov-kirill requested a review from mdacoca as a code owner August 18, 2023 09:19
((db_task.id, db_task) for db_task in self._db_project.tasks.order_by("subset","id").all())
(
(db_task.id, db_task)
for db_task in self._db_project.tasks.order_by("subset","id").all()
Copy link
Contributor

Choose a reason for hiding this comment

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

@kirill-sizov , why not .exclude(data=None) as in other places?

@nmanovic nmanovic merged commit 5cc8a24 into develop Aug 24, 2023
@azhavoro azhavoro mentioned this pull request Aug 25, 2023
jonybekov pushed a commit to tezzro/cvat that referenced this pull request Sep 6, 2023
### Motivation and context
- Allow backup and export annotations for a project even if it has tasks
without data
- Add an error message on attempting to create backup of a task that has
no data
@bsekachev bsekachev deleted the sk/allow-export-projects-wo-data branch September 15, 2023 12:18
mikhail-treskin pushed a commit to retailnext/cvat that referenced this pull request Oct 25, 2023
### Motivation and context
- Allow backup and export annotations for a project even if it has tasks
without data
- Add an error message on attempting to create backup of a task that has
no data
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.

3 participants