Skip to content

Commit

Permalink
upstreaw merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
summeroff committed Jul 21, 2024
2 parents 2e4821f + 6fea78c commit 84cc8e5
Show file tree
Hide file tree
Showing 324 changed files with 11,277 additions and 5,443 deletions.
28 changes: 14 additions & 14 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@
"type": "node",
"request": "launch",
"name": "ui.js: test",
"cwd": "${workspaceRoot}/tests",
"runtimeExecutable": "${workspaceRoot}/tests/node_modules/.bin/cypress",
"cwd": "${workspaceFolder}/tests",
"runtimeExecutable": "${workspaceFolder}/tests/node_modules/.bin/cypress",
"args": [
"run",
"--headless",
Expand All @@ -163,7 +163,7 @@
"stopOnEntry": false,
"justMyCode": false,
"python": "${command:python.interpreterPath}",
"program": "${workspaceRoot}/manage.py",
"program": "${workspaceFolder}/manage.py",
"env": {
"CVAT_SERVERLESS": "1",
"ALLOWED_HOSTS": "*",
Expand Down Expand Up @@ -200,7 +200,7 @@
"stopOnEntry": false,
"justMyCode": false,
"python": "${command:python.interpreterPath}",
"program": "${workspaceRoot}/manage.py",
"program": "${workspaceFolder}/manage.py",
"args": [
"rqworker",
"import",
Expand All @@ -222,7 +222,7 @@
"stopOnEntry": false,
"justMyCode": false,
"python": "${command:python.interpreterPath}",
"program": "${workspaceRoot}/manage.py",
"program": "${workspaceFolder}/manage.py",
"args": [
"rqworker",
"export",
Expand All @@ -244,7 +244,7 @@
"stopOnEntry": false,
"justMyCode": false,
"python": "${command:python.interpreterPath}",
"program": "${workspaceRoot}/manage.py",
"program": "${workspaceFolder}/manage.py",
"args": [
"rqworker",
"quality_reports",
Expand All @@ -266,7 +266,7 @@
"stopOnEntry": false,
"justMyCode": false,
"python": "${command:python.interpreterPath}",
"program": "${workspaceRoot}/manage.py",
"program": "${workspaceFolder}/manage.py",
"args": [
"rqworker",
"analytics_reports",
Expand All @@ -288,7 +288,7 @@
"stopOnEntry": false,
"justMyCode": false,
"python": "${command:python.interpreterPath}",
"program": "${workspaceRoot}/rqscheduler.py",
"program": "${workspaceFolder}/rqscheduler.py",
"django": true,
"cwd": "${workspaceFolder}",
"args": [
Expand All @@ -307,7 +307,7 @@
"justMyCode": false,
"stopOnEntry": false,
"python": "${command:python.interpreterPath}",
"program": "${workspaceRoot}/manage.py",
"program": "${workspaceFolder}/manage.py",
"args": [
"rqworker",
"annotation",
Expand All @@ -326,7 +326,7 @@
"justMyCode": false,
"stopOnEntry": false,
"python": "${command:python.interpreterPath}",
"program": "${workspaceRoot}/manage.py",
"program": "${workspaceFolder}/manage.py",
"args": [
"rqworker",
"webhooks",
Expand All @@ -345,7 +345,7 @@
"stopOnEntry": false,
"justMyCode": false,
"python": "${command:python.interpreterPath}",
"program": "${workspaceRoot}/manage.py",
"program": "${workspaceFolder}/manage.py",
"args": [
"rqworker",
"cleaning",
Expand All @@ -367,7 +367,7 @@
"justMyCode": false,
"stopOnEntry": false,
"python": "${command:python.interpreterPath}",
"program": "${workspaceRoot}/manage.py",
"program": "${workspaceFolder}/manage.py",
"args": [
"migrate"
],
Expand All @@ -383,7 +383,7 @@
"justMyCode": false,
"stopOnEntry": false,
"python": "${command:python.interpreterPath}",
"program": "${workspaceRoot}/manage.py",
"program": "${workspaceFolder}/manage.py",
"args": [
"test",
"--settings",
Expand Down Expand Up @@ -486,7 +486,7 @@
"justMyCode": false,
"stopOnEntry": false,
"python": "${command:python.interpreterPath}",
"program": "${workspaceRoot}/manage.py",
"program": "${workspaceFolder}/manage.py",
"args": [
"spectacular",
"--file",
Expand Down
195 changes: 195 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,201 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

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

<a id='changelog-2.16.1'></a>
## \[2.16.1\] - 2024-07-18

### Added

- Datumaro format now supports skeletons
(<https://github.com/cvat-ai/cvat/pull/8165>)

### Changed

- Quality analytics page will now report job assignees from quality reports
instead of current job assignees
(<https://github.com/cvat-ai/cvat/pull/8123>)

- When exporting projects in COCO format, images in different subsets are now stored in different subfolders
(<https://github.com/cvat-ai/cvat/pull/8171>)

- On task export, put images to folders depending on subset
(<https://github.com/cvat-ai/cvat/pull/8176>)

### Fixed

- User interface crashed if there are active creating task requests on a project page
(<https://github.com/cvat-ai/cvat/pull/8187>)

- Permission error: organization owner cannot export dataset and backup
(<https://github.com/cvat-ai/cvat/pull/8185>)

<a id='changelog-2.16.0'></a>
## \[2.16.0\] - 2024-07-15

### Added

- Set of features to track background activities: importing/exporting datasets, annotations or backups, creating tasks.
Now you may find these processes on Requests page, it allows a user to understand current status of these activities
and enhances user experience, not losing progress when the browser tab is closed
(<https://github.com/cvat-ai/cvat/pull/7537>)

- User now may update a job state from the corresponding task page
(<https://github.com/cvat-ai/cvat/pull/8102>)

- The server will now record and report last assignee update time
(<https://github.com/cvat-ai/cvat/pull/8119>)

### Changed

- "Finish the job" button on annotation view now only sets state to 'completed'.
The job stage keeps unchanged (<https://github.com/cvat-ai/cvat/pull/8102>)

- Log files for individual backend processes are now stored in ephemeral
storage of each backend container rather than in the `cvat_logs` volume
(<https://github.com/cvat-ai/cvat/pull/8121>)

- Do not reset opacity level each time frame switched if there are masks on the frame
(<https://github.com/cvat-ai/cvat/pull/8149>)

### Removed

- Renew the job button in annotation menu was removed
(<https://github.com/cvat-ai/cvat/pull/8102>)

### Fixed

- A possible crash in quality computation for tasks with skeletons and normal labels
(<https://github.com/cvat-ai/cvat/pull/8100>)

- Quality report button and timestamp alignments on quality page
(<https://github.com/cvat-ai/cvat/pull/8106>)

- Fixed display of working time in Grafana management dashboard
(<https://github.com/cvat-ai/cvat/pull/8112>)

- Fixed unexpected deletion of log files of other processes that led to OSError:
\[Errno 116\] Stale file handle error on NFS volumes
(<https://github.com/cvat-ai/cvat/pull/8121>)

- Attribute values with ":" may be displayed incorrectly on canvas
(<https://github.com/cvat-ai/cvat/pull/8137>)

- Fixed broken server Docker image build
(<https://github.com/cvat-ai/cvat/pull/8160>)

- DOMException: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded
(<https://github.com/cvat-ai/cvat/pull/8166>)

<a id='changelog-2.15.0'></a>
## \[2.15.0\] - 2024-07-02

### Added

- `Propagate shapes` action to create copies of visible shapes on multiple frames forward or backward
(<https://github.com/cvat-ai/cvat/pull/8044>)

- \[Helm\] Ability to use an external ClickHouse instance
(<https://github.com/cvat-ai/cvat/pull/8048>)

### Changed

- Improved performance for mask import and export
(<https://github.com/cvat-ai/cvat/pull/8049>)

### Fixed

- Failing dataset export cleanup attempts for exports before #7864
(<https://github.com/cvat-ai/cvat/pull/8039>)

- Exception 'this.el.node.getScreenCTM() is null' occuring in Firefox when
a user resizes window during skeleton dragging/resizing (<https://github.com/cvat-ai/cvat/pull/8067>)

- Exception 'Edge's nodeFrom M or nodeTo N do not to refer to any node'
occuring when a user resizes window during skeleton dragging/resizing (<https://github.com/cvat-ai/cvat/pull/8067>)

- Slightly broken layout when running attributed face detection model
(<https://github.com/cvat-ai/cvat/pull/8072>)

- Exception 'this.el.node.getScreenCTM() is null' when cancel drawing shape for any tracker
(<https://github.com/cvat-ai/cvat/pull/8080>)

- The switcher to block an active tool on annotation header is not highligted properly
(<https://github.com/cvat-ai/cvat/pull/8081>)

- Points shape color wasn't changed on changing label
(<https://github.com/cvat-ai/cvat/pull/8082>)

- Incorrect counting of tracked shapes when computing analytics report
(<https://github.com/cvat-ai/cvat/pull/8088>)

- Ordering of `frame intersection` column on task quality page
(<https://github.com/cvat-ai/cvat/pull/8089>)

- The property "outside" not propagated correctly on skeleton elements
(<https://github.com/cvat-ai/cvat/pull/8105>)

<a id='changelog-2.14.4'></a>
## \[2.14.4\] - 2024-06-20

### Added

- Polyline editing may be finished using corresponding shortcut
(<https://github.com/cvat-ai/cvat/pull/7922>)

### Changed

- Single shape annotation mode allows to modify/delete objects
(<https://github.com/cvat-ai/cvat/pull/8017>)

### Fixed

- Invalid server cache cleanup for backups and events (after #7864)
(<https://github.com/cvat-ai/cvat/pull/8040>)

- Filters by created date, updated date do not work on different pages (e.g. list of tasks or jobs)
(<https://github.com/cvat-ai/cvat/pull/8055>)

<a id='changelog-2.14.3'></a>
## \[2.14.3\] - 2024-06-13

### Changed

- Increased server healthcheck timeout 5 -> 15 seconds
(<https://github.com/cvat-ai/cvat/pull/7993>)

### Fixed

- Cannot read properties of null (reading 'draw') happens when use shortcut N in a task where first label has type "tag"
(<https://github.com/cvat-ai/cvat/pull/7997>)

- When use route `/auth/login-with-token/<token>` without `next` query parameter
the page reloads infinitely (<https://github.com/cvat-ai/cvat/pull/7999>)

- Fixed kvrocks port naming for istio
(<https://github.com/cvat-ai/cvat/pull/8010>)

- Exception: State cannot be updated during editing, need to finish current editing first
(<https://github.com/cvat-ai/cvat/pull/8019>)

### Security

- Mitigated a CSRF vulnerability in backup and export-related endpoints
(<https://github.com/cvat-ai/cvat/security/advisories/GHSA-jpf9-646h-4px7>)

- Fixed an SSRF vulnerability with custom cloud storage endpoints
(<https://github.com/cvat-ai/cvat/security/advisories/GHSA-q684-4jjh-83g6>)

<a id='changelog-2.14.2'></a>
## \[2.14.2\] - 2024-06-07

### Fixed

- Queued jobs are not considered in deferring logic
(<https://github.com/cvat-ai/cvat/pull/7907>)

- Significant memory leak related to the frames, which did not memory after become unused
(<https://github.com/cvat-ai/cvat/pull/7995>)

<a id='changelog-2.14.1'></a>
## \[2.14.1\] - 2024-06-05

Expand Down
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ RUN --mount=type=cache,target=/root/.cache/pip/http-v2 \
-r /tmp/cvat/requirements/${CVAT_CONFIGURATION}.txt \
-w /tmp/wheelhouse

FROM golang:1.22.3 AS build-smokescreen
FROM golang:1.22.4 AS build-smokescreen

RUN git clone --depth=1 https://github.com/stripe/smokescreen.git
RUN git clone --filter=blob:none --no-checkout https://github.com/stripe/smokescreen.git
RUN cd smokescreen && git checkout eb1ac09 && go build -o /tmp/smokescreen

FROM ${BASE_IMAGE}
Expand Down Expand Up @@ -182,6 +182,11 @@ RUN if [ "${CVAT_DEBUG_ENABLED}" = 'yes' ]; then \
python3 -m pip install --no-cache-dir debugpy; \
fi

# Removing pip due to security reasons. See: https://scout.docker.com/vulnerabilities/id/CVE-2018-20225
# The vulnerability is dubious and we don't use pip at runtime, but some vulnerability scanners mark it as a high vulnerability,
# and it was decided to remove pip from the final image
RUN python -m pip uninstall -y pip

# Install and initialize CVAT, copy all necessary files
COPY cvat/nginx.conf /etc/nginx/nginx.conf
COPY --chown=${USER} components /tmp/components
Expand Down
1 change: 1 addition & 0 deletions Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ RUN apt-get update && \
COPY cvat/requirements/ /tmp/cvat/requirements/
COPY utils/dataset_manifest/requirements.txt /tmp/utils/dataset_manifest/requirements.txt

RUN python3 -m ensurepip
RUN DATUMARO_HEADLESS=1 python3 -m pip install --no-cache-dir -r /tmp/cvat/requirements/testing.txt

COPY cvat-core ${HOME}/cvat-core
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ questions and get our support.
[ci-url]: https://github.com/cvat-ai/cvat/actions
[gitter-img]: https://img.shields.io/gitter/room/opencv-cvat/public?style=flat
[gitter-url]: https://gitter.im/opencv-cvat/public
[coverage-img]: https://codecov.io/github/opencv/cvat/branch/develop/graph/badge.svg
[coverage-url]: https://codecov.io/github/opencv/cvat
[coverage-img]: https://codecov.io/github/cvat-ai/cvat/branch/develop/graph/badge.svg
[coverage-url]: https://codecov.io/github/cvat-ai/cvat
[doi-img]: https://zenodo.org/badge/139156354.svg
[doi-url]: https://zenodo.org/badge/latestdoi/139156354
[discord-img]: https://img.shields.io/discord/1000789942802337834?label=discord
Expand Down
4 changes: 0 additions & 4 deletions changelog.d/20240605_093600_boris_kill_worker.md

This file was deleted.

4 changes: 0 additions & 4 deletions changelog.d/20240606_134734_boris_bitmap_memoryleak.md

This file was deleted.

5 changes: 5 additions & 0 deletions changelog.d/20240717_125734_boris_fixed_export_skeletons.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### Fixed

- Exporting a skeleton track in a format defined for shapes raises error
`operands could not be broadcast together with shapes (X, ) (Y, )`
(<https://github.com/cvat-ai/cvat/pull/8179>)
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Fixed

- Delete label modal window does not have cancellation button
(<https://github.com/cvat-ai/cvat/pull/8196>)
2 changes: 1 addition & 1 deletion components/analytics/grafana/dashboards/management.json
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@
}
},
"queryType": "sql",
"rawSql": "SELECT\r\n user_id as User,\r\n project_id as Project,\r\n task_id as Task,\r\n job_id as Job, sum(JSONExtractUInt(payload, 'working_time')) / 1000 / 3600 as \"Working time(h)\",\r\n count() as Activity\r\nFROM events\r\nWHERE JSONHas(payload, 'working_time')\r\n AND $__timeFilter(timestamp)\r\n AND user_id IN (${users})\r\n AND (-1 IN (${projects}) OR project_id IN (${projects}))\r\n AND task_id IN (${tasks})\r\n AND job_id IN (${jobs})\r\n AND source = 'client'\r\nGROUP BY user_id, project_id, task_id, job_id",
"rawSql": "SELECT\r\n user_id as User,\r\n project_id as Project,\r\n task_id as Task,\r\n job_id as Job, sum(JSONExtractUInt(payload, 'working_time')) / 1000 / 3600 as \"Working time(h)\",\r\n count() as Activity\r\nFROM events\r\nWHERE JSONHas(payload, 'working_time')\r\n AND $__timeFilter(timestamp)\r\n AND user_id IN (${users})\r\n AND (-1 IN (${projects}) OR project_id IN (${projects}))\r\n AND task_id IN (${tasks})\r\n AND job_id IN (${jobs})\r\nGROUP BY user_id, project_id, task_id, job_id",
"refId": "A"
}
],
Expand Down
Loading

0 comments on commit 84cc8e5

Please sign in to comment.