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

Fix /api/tasks leads to 500 server error #5700

Merged
merged 37 commits into from
Feb 24, 2023
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
bc7f03c
Fix deletion of sublabels
yasakova-anastasia Feb 14, 2023
fcef2fb
Merge branch 'develop' into ay/skeleton-fixes
yasakova-anastasia Feb 14, 2023
754da0e
Update Changelog
yasakova-anastasia Feb 14, 2023
ed87e38
Update Label model, remove code duplication
yasakova-anastasia Feb 14, 2023
f6a7797
Merge with some code from #5662
yasakova-anastasia Feb 15, 2023
9134111
Add tests
yasakova-anastasia Feb 15, 2023
c78eafc
Fix linters
yasakova-anastasia Feb 15, 2023
0ebc55f
Fix tests
yasakova-anastasia Feb 15, 2023
b97d7fa
Update Changelog
yasakova-anastasia Feb 15, 2023
1594449
pdate tests
yasakova-anastasia Feb 15, 2023
a786f26
Fixes
yasakova-anastasia Feb 15, 2023
9d9f2b2
FIx black
yasakova-anastasia Feb 15, 2023
5de8e4b
Fix pylint
yasakova-anastasia Feb 15, 2023
9cecd9e
Small fix
yasakova-anastasia Feb 15, 2023
8f6b6c7
Fix test
yasakova-anastasia Feb 15, 2023
c2d7d82
Merge branch 'develop' into ay/skeleton-fixes
yasakova-anastasia Feb 15, 2023
3448cd0
Resolve conflicts
yasakova-anastasia Feb 20, 2023
54e9ed6
Apply comments
yasakova-anastasia Feb 20, 2023
20012c2
Update migrations
yasakova-anastasia Feb 20, 2023
668f865
Fix linters
yasakova-anastasia Feb 20, 2023
8f3db61
Update validation
yasakova-anastasia Feb 20, 2023
09be228
Fix tests
yasakova-anastasia Feb 20, 2023
d871037
Replace unique_together with UniqueConstraint
yasakova-anastasia Feb 21, 2023
d4c1f89
Merge branch 'develop' into ay/skeleton-fixes
yasakova-anastasia Feb 21, 2023
9fecbaf
Add tests for same labels
yasakova-anastasia Feb 21, 2023
67f2ead
Resolve conflicts
yasakova-anastasia Feb 21, 2023
143a98d
Fix linters
yasakova-anastasia Feb 21, 2023
a03c4a9
Remove invalid checks
yasakova-anastasia Feb 21, 2023
8b0b6f2
Add save() and create() methods to Label model
yasakova-anastasia Feb 22, 2023
4b1855d
Resolve conflicts
yasakova-anastasia Feb 22, 2023
7583d5b
Fix tests
yasakova-anastasia Feb 22, 2023
4ea1c07
Apply comments
yasakova-anastasia Feb 22, 2023
0f3cba0
Update migration
yasakova-anastasia Feb 22, 2023
fe11bd4
Fix linters
yasakova-anastasia Feb 22, 2023
c463bb1
Add @transaction.atomic to tasks and projects serializers
yasakova-anastasia Feb 22, 2023
a76954b
Update migrations
yasakova-anastasia Feb 23, 2023
153c51b
Merge branch 'develop' into ay/skeleton-fixes
yasakova-anastasia Feb 23, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ Tracks can be exported/imported to/from Datumaro and Sly Pointcloud formats (<ht
- Clean up disk space after a project is removed (<https://github.com/opencv/cvat/pull/5632>)
- \[Server API\] Various errors in the generated schema (<https://github.com/opencv/cvat/pull/5575>)
- SiamMask and TransT serverless functions (<https://github.com/opencv/cvat/pull/5658>)
- Сreating a project with the same labels and re-deleting of skeleton sublabels (<https://github.com/opencv/cvat/pull/5700>)

### Security
- Fixed vulnerability with social authentication (<https://github.com/opencv/cvat/pull/5521>)
Expand Down
17 changes: 17 additions & 0 deletions cvat/apps/engine/migrations/0063_alter_label_unique_together.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 3.2.17 on 2023-02-15 14:39

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('engine', '0062_delete_previews'),
]

operations = [
migrations.AlterUniqueTogether(
name='label',
unique_together={('task', 'name', 'parent'), ('project', 'name', 'parent')},
),
]
3 changes: 2 additions & 1 deletion cvat/apps/engine/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,8 @@ def has_parent_label(self):

class Meta:
default_permissions = ()
unique_together = ('task', 'name', 'parent')
unique_together = (('task', 'name', 'parent'),
('project', 'name', 'parent'))
yasakova-anastasia marked this conversation as resolved.
Show resolved Hide resolved

class Skeleton(models.Model):
root = models.OneToOneField(Label, on_delete=models.CASCADE)
Expand Down
Loading