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

Release v2.21.0 #8527

Merged
merged 13 commits into from
Oct 10, 2024
Merged

Release v2.21.0 #8527

merged 13 commits into from
Oct 10, 2024

Conversation

cvat-bot[bot]
Copy link
Contributor

@cvat-bot cvat-bot bot commented Oct 10, 2024

Added

Changed

  • [Server API] POST /jobs/ .frames field now expects relative frame numbers instead of absolute (source data) ones (Validation API core #8348)

  • [Server API] Now chunks in tasks can be changed. There are new API elements to check chunk relevancy, if they are cached: /api/tasks/{id}/data/meta got a new field chunks_updated_date, /api/tasks/{id}/data/?type=chunk got 2 new headers: X-Updated-Date, X-Checksum (Validation management core #8471)

  • Made the PATCH endpoints for projects, tasks, jobs and memberships check the input more strictly (Harden access control in several PATCH endpoints #8493):

    • unknown fields are rejected;
    • updating a field now requires the same level of permissions regardless of whether the new value is the same as the old value.
  • [Server API] Quality report computation is now allowed to regular users (Allow quality reports to regular users #8511)

Fixed

cvat-bot bot and others added 13 commits October 1, 2024 14:14
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Currently several permission classes dynamically determine scopes for
`PATCH` endpoints, depending on request body fields. This is error-prone
for a couple of reasons:

* If you forget to add a default scope like `Scopes.VIEW`, then anyone
can view the resource by submitting a `PATCH` request with an empty
body.

* If you add a field to a resource, but forget to define which scope it
should be associated with, then anyone can modify this field on any
instance of this resource.

Both of these have happened previously; see
<GHSA-gxhm-hg65-5gh2>.

Attempt to harden the scope determination logic for such endpoints, so
that such errors could not occur. Specifically:

* Factor out the common logic (including the default scope) into a
function.

* Instead of checking for each known field in the request body, check
every field in the body against a map of known fields, and abort if the
field does not map to any scopes.

A side effect of this change is that request bodies that set certain
fields (such as `owner_id`) to the values they already have did not
previously require the appropriate `UPDATE_*` scope, but now they do.
This is for simplicity of implementation. I see no need to preserve the
current behavior, since a user who does not have the requisite
permission can simply omit the field from the request.

Another side effect is that request bodies with unknown fields are now
rejected, whereas previously such fields would be ignored. I think
that's probably a good thing, since we can't properly fulfill such a
request anyway - can't set a field that doesn't exist.

This change detected a broken test in the unit test suite, so fix that.
<!-- Raise an issue to propose your change
(https://github.com/cvat-ai/cvat/issues).
It helps to avoid duplication of efforts from multiple independent
contributors.
Discuss your ideas with maintainers to be sure that changes will be
approved and merged.
Read the [Contribution guide](https://docs.cvat.ai/docs/contributing/).
-->

<!-- Provide a general summary of your changes in the Title above -->

### Motivation and context
<!-- Why is this change required? What problem does it solve? If it
fixes an open
issue, please link to the issue here. Describe your changes in detail,
add
screenshots. -->
Supporting YOLOv8 classification format

### How has this been tested?
<!-- Please describe in detail how you tested your changes.
Include details of your testing environment, and the tests you ran to
see how your change affects other areas of the code, etc. -->

### Checklist
<!-- Go over all the following points, and put an `x` in all the boxes
that apply.
If an item isn't applicable for some reason, then ~~explicitly
strikethrough~~ the whole
line. If you don't do that, GitHub will show incorrect progress for the
pull request.
If you're unsure about any of these, don't hesitate to ask. We're here
to help! -->
- [ ] I submit my changes into the `develop` branch
- [ ] I have created a changelog fragment <!-- see top comment in
CHANGELOG.md -->
- [ ] I have updated the documentation accordingly
- [ ] I have added tests to cover my changes
- [ ] I have linked related issues (see [GitHub docs](

https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword))
- [ ] I have increased versions of npm packages if it is necessary

([cvat-canvas](https://github.com/cvat-ai/cvat/tree/develop/cvat-canvas#versioning),

[cvat-core](https://github.com/cvat-ai/cvat/tree/develop/cvat-core#versioning),

[cvat-data](https://github.com/cvat-ai/cvat/tree/develop/cvat-data#versioning)
and

[cvat-ui](https://github.com/cvat-ai/cvat/tree/develop/cvat-ui#versioning))

### License

- [ ] I submit _my code changes_ under the same [MIT License](
https://github.com/cvat-ai/cvat/blob/develop/LICENSE) that covers the
project.
  Feel free to contact the maintainers if that's a concern.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Added support for the "YOLOv8 Classification" format in the
application, including export and import functionalities.
- Updated documentation to include details about the new YOLOv8
Classification format.

- **Bug Fixes**
- Enhanced test coverage for the new YOLOv8 Classification format to
ensure proper functionality in export and import processes.

- **Documentation**
- Integrated new entries in the README and detailed documentation for
the YOLOv8 Classification format.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
### Motivation and context
fix #4767 
my docker-compose.https.yml:
```yaml
# Copyright (C) 2018-2022 Intel Corporation
#
# SPDX-License-Identifier: MIT

### Checklist
<!-- Go over all the following points, and put an `x` in all the boxes
that apply.
If an item isn't applicable for some reason, then ~~explicitly
strikethrough~~ the whole
line. If you don't do that, GitHub will show incorrect progress for the
pull request.
If you're unsure about any of these, don't hesitate to ask. We're here
to help! -->
- [x] I submit my changes into the `develop` branch
- [x] I have created a changelog fragment <!-- see top comment in
CHANGELOG.md -->
- [x] I have updated the documentation accordingly
- [x] I have added tests to cover my changes
- [x] I have linked related issues (see [GitHub docs](

https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword))
- [x] I have increased versions of npm packages if it is necessary

([cvat-canvas](https://github.com/opencv/cvat/tree/develop/cvat-canvas#versioning),

[cvat-core](https://github.com/opencv/cvat/tree/develop/cvat-core#versioning),

[cvat-data](https://github.com/opencv/cvat/tree/develop/cvat-data#versioning)
and

[cvat-ui](https://github.com/opencv/cvat/tree/develop/cvat-ui#versioning))

### License

- [x] I submit _my code changes_ under the same [MIT License](
https://github.com/opencv/cvat/blob/develop/LICENSE) that covers the
project.
  Feel free to contact the maintainers if that's a concern.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced comprehensive documentation for implementing custom SSL
certificates in the CVAT environment.
- Provided step-by-step instructions for setting up and configuring
Traefik to use custom certificates.

- **Documentation**
- Added a new file detailing the process of creating a certificates
directory, modifying Traefik configuration, and starting CVAT with
custom SSL certificates.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Andrey Zhavoronkov <andrey@cvat.ai>
- Allowed quality report computation for tasks to regular users (before this only admins could trigger custom report computations)
- Refactored quality control tests

---------

Co-authored-by: Maria Khrustaleva <maria@cvat.ai>
Copy link

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 66.16200% with 447 lines in your changes missing coverage. Please review.

Project coverage is 74.21%. Comparing base (7551d6c) to head (61270d9).
Report is 33 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8527      +/-   ##
==========================================
- Coverage   74.35%   74.21%   -0.15%     
==========================================
  Files         394      400       +6     
  Lines       42211    43207     +996     
  Branches     3896     3905       +9     
==========================================
+ Hits        31384    32064     +680     
- Misses      10827    11143     +316     
Components Coverage Δ
cvat-ui 78.60% <50.00%> (-0.13%) ⬇️
cvat-server 70.47% <67.17%> (-0.02%) ⬇️

@cvat-bot cvat-bot bot merged commit 67d3645 into master Oct 10, 2024
31 checks passed
@cvat-bot cvat-bot bot deleted the release-2.21.0 branch October 10, 2024 09:51
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.

7 participants