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.8.1 #7094

Merged
merged 31 commits into from
Nov 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
8b0ec00
Add a job for publishing Python packages upon release (#7013)
SpecLad Oct 23, 2023
6c7ef41
Update release-2.8.0 after v2.8.0
cvat-bot[bot] Oct 24, 2023
bde1207
Merge pull request #7050 from opencv/dev-release-2.8.0
azhavoro Oct 24, 2023
acbb727
manual qa documentation updated (#7028)
mdacoca Oct 24, 2023
55a22e1
Add support for default bucket prefix and ability to search for files…
Marishka17 Oct 24, 2023
a2a452a
Fixed: module 'PIL.Image' has no attribute 'LINEAR' (#7047)
bsekachev Oct 24, 2023
102b0a0
Bump @babel/traverse from 7.20.12 to 7.23.2 (#7024)
dependabot[bot] Oct 24, 2023
f4566eb
Bump @babel/traverse from 7.19.3 to 7.23.2 in /tests (#7023)
dependabot[bot] Oct 24, 2023
c6b660f
Documentation: added headers, fixed cropped text and ordered lists (#…
mdacoca Oct 24, 2023
e894e97
reset password procedure added to the documentation (#7035)
mdacoca Oct 24, 2023
c6682ff
TrackerMIL optimizations (#7032)
klakhov Oct 24, 2023
c19ea38
Fixed: a mask becomes visible even if hidden after changing opacity l…
bsekachev Oct 25, 2023
1b197e4
Remove unneeded steps in the generate_github_pages CI job (#7057)
SpecLad Oct 26, 2023
57dffae
Bump the docker/login-action version (#7056)
SpecLad Oct 26, 2023
08550f8
Support running CVAT with an external database via Docker Compose (#7…
SpecLad Oct 26, 2023
e0d1343
Fix inconsistently-named directory (#7054)
SpecLad Oct 26, 2023
f2748a6
Add Regal for linting Rego (#7038)
anderseknert Oct 26, 2023
d274c18
Race condition for the task data upload request (#7025)
azhavoro Oct 26, 2023
568f0cb
setInterval changed to setTimeout when sending events (#7064)
bsekachev Oct 26, 2023
060fef0
[Snyk] Security upgrade cryptography from 41.0.4 to 41.0.5 (#7068)
nmanovic Oct 27, 2023
fc47f58
Add ability to limit one user to one task at a time (#6975)
Marishka17 Oct 29, 2023
43ff5d4
Added error handling if organizations request is failed (#7063)
bsekachev Oct 30, 2023
ba3db01
Documentation: Need help -> Support (#7070)
mdacoca Oct 30, 2023
6833b37
Documentation retouch: cloud storages and mot data format (#7071)
mdacoca Oct 31, 2023
e1fe140
[Snyk] Security upgrade urllib3 from 1.26.17 to 1.26.18 (#7027)
nmanovic Nov 1, 2023
623476e
[AWS S3] Use local session (#7067)
Marishka17 Nov 2, 2023
d2b5f3d
Compress `changeFrame` events (#7048)
klakhov Nov 2, 2023
1f8d5d3
REST API tests for default bucket prefix (#7079)
Marishka17 Nov 2, 2023
0535d45
Chunk preparation optimization (#7081)
azhavoro Nov 2, 2023
9819e6d
Fixed user email auto verification on accepting organization invitati…
klakhov Nov 3, 2023
20892ec
Prepare release v2.8.1
cvat-bot[bot] Nov 3, 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
14 changes: 2 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -389,22 +389,12 @@ jobs:
submodules: recursive
fetch-depth: 0

- name: Download CVAT server images
uses: actions/download-artifact@v3
with:
name: cvat_server
path: /tmp/cvat_server/

- name: Download CVAT server images
- name: Download CVAT SDK
uses: actions/download-artifact@v3
with:
name: cvat_sdk
path: /tmp/cvat_sdk/

- name: Load Docker images
run: |
docker load --input /tmp/cvat_server/image.tar

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
Expand Down Expand Up @@ -462,7 +452,7 @@ jobs:
docker load --input /tmp/cvat_ui/image.tar

- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
name: Publish Docker images
name: Publish artifacts
on:
release:
types: [released]

jobs:
Push_to_registry:
docker-images:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Build images
run: |
CVAT_VERSION=latest CLAM_AV=yes docker compose -f docker-compose.yml -f docker-compose.dev.yml build

- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Push to Docker Hub
env:
DOCKERHUB_WORKSPACE: ${{ secrets.DOCKERHUB_WORKSPACE }}
Expand All @@ -29,3 +32,24 @@ jobs:
docker tag "${DOCKERHUB_WORKSPACE}/${UI_IMAGE_REPO}:latest" "${DOCKERHUB_WORKSPACE}/${UI_IMAGE_REPO}:${{ github.event.release.tag_name }}"
docker push "${DOCKERHUB_WORKSPACE}/${UI_IMAGE_REPO}:${{ github.event.release.tag_name }}"
docker push "${DOCKERHUB_WORKSPACE}/${UI_IMAGE_REPO}:latest"

python-packages:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4

- name: Generate SDK
run: |
pip3 install --user -r cvat-sdk/gen/requirements.txt
./cvat-sdk/gen/generate.sh

- name: Build packages
run: |
for d in cvat-sdk cvat-cli; do
pipx run --spec=build pyproject-build --outdir=dist "$d"
done

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
12 changes: 12 additions & 0 deletions .github/workflows/regallint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Regal
on: pull_request
jobs:
Linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Regal
uses: StyraInc/setup-regal@v0.2.0
with:
version: v0.11.0
- run: regal lint --format=github cvat/apps/iam/rules
6 changes: 3 additions & 3 deletions .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- uses: actions/checkout@v3

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_CI_USERNAME }}
password: ${{ secrets.DOCKERHUB_CI_TOKEN }}
Expand Down Expand Up @@ -139,7 +139,7 @@ jobs:
type=raw,value=nightly

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_CI_USERNAME }}
password: ${{ secrets.DOCKERHUB_CI_TOKEN }}
Expand Down Expand Up @@ -204,7 +204,7 @@ jobs:
node-version: '16.x'

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_CI_USERNAME }}
password: ${{ secrets.DOCKERHUB_CI_TOKEN }}
Expand Down
53 changes: 53 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,59 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

<!-- scriv-insert-here -->

<a id='changelog-2.8.1'></a>
## \[2.8.1\] - 2023-11-03

### Added

- Support for default bucket prefix
(<https://github.com/opencv/cvat/pull/6943>)
- Search for cloud storage and share files
(<https://github.com/opencv/cvat/pull/6943>)

- Ability to limit one user to one task at a time
(<https://github.com/opencv/cvat/pull/6975>)

- Support for using an external database in a Docker Compose-based deployment
(<https://github.com/opencv/cvat/pull/7055>)

### Changed

- Migrated to rq 1.15.1
(<https://github.com/opencv/cvat/pull/6975>)

- Compressed sequental `change:frame` events into one
(<https://github.com/opencv/cvat/pull/7048>)

- Create a local session for AWS S3 client instead of using the default global one
(<https://github.com/opencv/cvat/pull/7067>)

- Improved performance of chunk preparation when creating tasks
(<https://github.com/opencv/cvat/pull/7081>)

### Fixed

- Race condition in a task data upload request, which may lead to problems with task creation in some specific cases,
such as multiple identical data requests at the same time
(<https://github.com/opencv/cvat/pull/7025>)

- Bug with viewing dependent RQ jobs for downloading resources from
cloud storage when file path contains sub-directories.
This is relevant for admins that can view detailed information about RQ queues.
(<https://github.com/opencv/cvat/pull/6975>)

- OpenCV.js memory leak with TrackerMIL
(<https://github.com/opencv/cvat/pull/7032>)

- Can't deploy detectron serverless function
(<https://github.com/opencv/cvat/pull/7047>)

- A mask becomes visible even if hidden after changing opacity level
(<https://github.com/opencv/cvat/pull/7060>)

- There is no switcher to personal workspace if an organization request failed
(<https://github.com/opencv/cvat/pull/7063>)

<a id='changelog-2.8.0'></a>

## \[2.8.0\] - 2023-10-23
Expand Down
2 changes: 1 addition & 1 deletion backend_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fail() {
}

wait_for_db() {
~/wait-for-it.sh "${CVAT_POSTGRES_HOST}:5432" -t 0
~/wait-for-it.sh "${CVAT_POSTGRES_HOST}:${CVAT_POSTGRES_PORT:-5432}" -t 0
}

cmd_bash() {
Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cvat-canvas",
"version": "2.18.0",
"version": "2.18.1",
"description": "Part of Computer Vision Annotation Tool which presents its canvas library",
"main": "src/canvas.ts",
"scripts": {
Expand Down
12 changes: 12 additions & 0 deletions cvat-canvas/src/typescript/canvasView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2921,6 +2921,18 @@ export class CanvasViewImpl implements CanvasView, Listener {
}),
);

if (state.occluded) {
image.addClass('cvat_canvas_shape_occluded');
}

if (state.hidden || state.outside || this.isInnerHidden(state.clientID)) {
image.addClass('cvat_canvas_hidden');
}

if (state.isGroundTruth) {
image.addClass('cvat_canvas_ground_truth');
}

return image;
}

Expand Down
2 changes: 1 addition & 1 deletion cvat-cli/requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
cvat-sdk~=2.8.0
cvat-sdk~=2.8.1
Pillow>=10.0.1
setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability
2 changes: 1 addition & 1 deletion cvat-cli/src/cvat_cli/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "2.8.0"
VERSION = "2.8.1"
4 changes: 2 additions & 2 deletions cvat-core/src/api-implementation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export default function implementAPI(cvat) {
return result;
};

cvat.server.share.implementation = async (directory) => {
const result = await serverProxy.server.share(directory);
cvat.server.share.implementation = async (directory: string, searchPrefix?: string) => {
const result = await serverProxy.server.share(directory, searchPrefix);
return result.map((item) => ({ ...omit(item, 'mime_type'), mimeType: item.mime_type }));
};

Expand Down
4 changes: 2 additions & 2 deletions cvat-core/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ function build() {
const result = await PluginRegistry.apiWrapper(cvat.server.about);
return result;
},
async share(directory = '/') {
const result = await PluginRegistry.apiWrapper(cvat.server.share, directory);
async share(directory = '/', searchPrefix?: string) {
const result = await PluginRegistry.apiWrapper(cvat.server.share, directory, searchPrefix);
return result;
},
async formats() {
Expand Down
4 changes: 4 additions & 0 deletions cvat-core/src/cloud-storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export default class CloudStorage {
public readonly owner: User;
public readonly createdDate: string;
public readonly updatedDate: string;
public readonly prefix: string | null;

constructor(initialData: RawCloudStorageData) {
const data: RawCloudStorageData = {
Expand Down Expand Up @@ -231,6 +232,9 @@ export default class CloudStorage {
}
},
},
prefix: {
get: () => new URLSearchParams(this.specificAttributes).get('prefix'),
},
}),
);
}
Expand Down
1 change: 1 addition & 0 deletions cvat-core/src/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ export default function logFactory(logType: LogType, payload: any): EventLogger
LogType.copyObject,
LogType.undoAction,
LogType.redoAction,
LogType.changeFrame,
];

if (logsWithCount.includes(logType)) {
Expand Down
Loading
Loading