Skip to content

Commit

Permalink
Bump DRF to 3.15.2
Browse files Browse the repository at this point in the history
I'm looking to add a `Content-Security-Policy` to API responses, and there
were some important improvements for that in 3.15.0 (e.g.
encode/django-rest-framework#8784).
  • Loading branch information
SpecLad committed Dec 4, 2024
1 parent 022f45d commit 64945e2
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cvat/requirements/base.in
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ django-health-check>=3.18.1,<4
django-rq==2.8.1
django-sendfile2==0.7.0
Django~=4.2.7
djangorestframework~=3.14.0
djangorestframework>=3.15.2,<4
drf-spectacular==0.26.2
furl==2.1.0
google-cloud-storage==1.42.0
Expand Down
5 changes: 2 additions & 3 deletions cvat/requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SHA1:9ff984f33ae139c68d90acc3e338c6cef7ecf6e9
# SHA1:275a663d91764ea3126531729179a07e95b657e8
#
# This file is autogenerated by pip-compile-multi
# To update, run:
Expand Down Expand Up @@ -105,7 +105,7 @@ django-rq==2.8.1
# via -r cvat/requirements/base.in
django-sendfile2==0.7.0
# via -r cvat/requirements/base.in
djangorestframework==3.14.0
djangorestframework==3.15.2
# via
# -r cvat/requirements/base.in
# dj-rest-auth
Expand Down Expand Up @@ -264,7 +264,6 @@ python3-saml==1.16.0
pytz==2024.2
# via
# clickhouse-connect
# djangorestframework
# pandas
pyunpack==0.2.1
# via -r cvat/requirements/base.in
Expand Down
51 changes: 51 additions & 0 deletions cvat/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8990,6 +8990,9 @@ components:
- slug
PaginatedAnnotationConflictList:
type: object
required:
- count
- results
properties:
count:
type: integer
Expand All @@ -9010,6 +9013,9 @@ components:
$ref: '#/components/schemas/AnnotationConflict'
PaginatedCloudStorageReadList:
type: object
required:
- count
- results
properties:
count:
type: integer
Expand All @@ -9030,6 +9036,9 @@ components:
$ref: '#/components/schemas/CloudStorageRead'
PaginatedCommentReadList:
type: object
required:
- count
- results
properties:
count:
type: integer
Expand All @@ -9050,6 +9059,9 @@ components:
$ref: '#/components/schemas/CommentRead'
PaginatedInvitationReadList:
type: object
required:
- count
- results
properties:
count:
type: integer
Expand All @@ -9070,6 +9082,9 @@ components:
$ref: '#/components/schemas/InvitationRead'
PaginatedIssueReadList:
type: object
required:
- count
- results
properties:
count:
type: integer
Expand All @@ -9090,6 +9105,9 @@ components:
$ref: '#/components/schemas/IssueRead'
PaginatedJobReadList:
type: object
required:
- count
- results
properties:
count:
type: integer
Expand All @@ -9110,6 +9128,9 @@ components:
$ref: '#/components/schemas/JobRead'
PaginatedLabelList:
type: object
required:
- count
- results
properties:
count:
type: integer
Expand All @@ -9130,6 +9151,9 @@ components:
$ref: '#/components/schemas/Label'
PaginatedMembershipReadList:
type: object
required:
- count
- results
properties:
count:
type: integer
Expand All @@ -9150,6 +9174,9 @@ components:
$ref: '#/components/schemas/MembershipRead'
PaginatedMetaUserList:
type: object
required:
- count
- results
properties:
count:
type: integer
Expand All @@ -9170,6 +9197,9 @@ components:
$ref: '#/components/schemas/MetaUser'
PaginatedOrganizationReadList:
type: object
required:
- count
- results
properties:
count:
type: integer
Expand All @@ -9190,6 +9220,9 @@ components:
$ref: '#/components/schemas/OrganizationRead'
PaginatedProjectReadList:
type: object
required:
- count
- results
properties:
count:
type: integer
Expand All @@ -9210,6 +9243,9 @@ components:
$ref: '#/components/schemas/ProjectRead'
PaginatedQualityReportList:
type: object
required:
- count
- results
properties:
count:
type: integer
Expand All @@ -9230,6 +9266,9 @@ components:
$ref: '#/components/schemas/QualityReport'
PaginatedQualitySettingsList:
type: object
required:
- count
- results
properties:
count:
type: integer
Expand All @@ -9250,6 +9289,9 @@ components:
$ref: '#/components/schemas/QualitySettings'
PaginatedRequestList:
type: object
required:
- count
- results
properties:
count:
type: integer
Expand All @@ -9270,6 +9312,9 @@ components:
$ref: '#/components/schemas/Request'
PaginatedTaskReadList:
type: object
required:
- count
- results
properties:
count:
type: integer
Expand All @@ -9290,6 +9335,9 @@ components:
$ref: '#/components/schemas/TaskRead'
PaginatedWebhookDeliveryReadList:
type: object
required:
- count
- results
properties:
count:
type: integer
Expand All @@ -9310,6 +9358,9 @@ components:
$ref: '#/components/schemas/WebhookDeliveryRead'
PaginatedWebhookReadList:
type: object
required:
- count
- results
properties:
count:
type: integer
Expand Down

0 comments on commit 64945e2

Please sign in to comment.