8000 Release v2.11.2 by cvat-bot[bot] · Pull Request #7592 · cvat-ai/cvat · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Release v2.11.2 #7592

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

Merged
merged 16 commits into from
Mar 12, 2024
Merged

Release v2.11.2 #7592

merged 16 commits into from
Mar 12, 2024

Conversation

cvat-bot[bot]
Copy link
Contributor
@cvat-bot cvat-bot bot commented Mar 11, 2024

Changed

Fixed

cvat-bot bot and others added 16 commits March 5, 2024 19:28
<!-- Raise an issue to propose your change
(https://github.com/opencv/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://opencv.github.io/cvat/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. -->
Currently, `JobAnnotation.update` needlessly bumps the `updated_date` of
the job and the task twice (both via `_delete` and `_create`). These
updates are costly in terms of time due to the various side effects
associated with them (such as webhook sending and event logging), so
it's better to avoid doing them gratuitously.

Change the code so that the bumps only happen once.

I simplified the code a bit; previously, the code in `_delete` would
only bump the date if something was actually deleted (i.e., the
annotations passed in actually existed in the database). Now we just
check if there were any annotations we _wanted_ to delete. This means
that if a request only deletes non-existent annotations, the date will
still get bumped. I don't think it's a significant issue, since this is
a pathological case.

### 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. -->
Manual testing

### 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 -->
- ~~[ ] 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/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.
…#7559)

Diffing the old and new state of the object is fairly costly, so it
helps to avoid doing that when it isn't necessary.
The `PASSWORD` setting is not a URL, so it should not be URL-encoded.
The signal handling code in `cvat.apps.webhooks.signals` always fetches
the old version of the resource from the database and serializes it. But
if no webhook is defined for the current resource, this work is
pointless.

Select the webhooks first, and only then (if necessary) serialize the
old resource. Also, move the diffing of the old and new versions to the
`post_save` signal handler, to avoid serializing the new version a
second time. This leads to a considerable speedup for resources with
complicated serializers, such as tasks and jobs, when no webhooks are
attached. In my experiments, saving of annotations was sped up by 20-25%
with this patch.

This patch also makes the signal handlers more hygienic with the use of
temporary attributes. Both the attributes it uses are now prefixed with
`_webhooks` to avoid collisions, and removed after they are used.
…#7549)

On uploading video files exceeding the maximum resolution supported by
OpenH264, it raises error while trying to decode the video. To handle
this more gracefully I have added dimension check based on which it
raises an error beforehand with appropriate message.
Fixes #7425 

---------
Co-authored-by: Maria Khrustaleva <maria@cvat.ai>
Currently, `schedule_analytics_report_autoupdate_job` attempts to
debounce job scheduling by 
8000
examining existing jobs before scheduling a
new one. Unfortunately, the `scheduler.get_jobs` function, which it uses
for this purpose, scales poorly. Not only does it fetch IDs of all
scheduled jobs (and not just ones related to the current object), but it
then fetches information about every job, one by one. The current logic
doesn't even need this information, but RQ Scheduler provides no method
to get just the IDs.

Replace the current logic with a new lightweight approach that uses a
custom Redis key to block scheduling of additional jobs.
Copy link
codecov bot commented Mar 12, 2024

Codecov Report

Merging #7592 (68f13a0) into master (f52f0f3) will decrease coverage by 0.10%.
Report is 13 commits behind head on master.
The diff coverage is 53.33%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7592      +/-   ##
==========================================
- Coverage   83.54%   83.44%   -0.10%     
==========================================
  Files         372      373       +1     
  Lines       39661    39739      +78     
  Branches     3724     3741      +17     
==========================================
+ Hits        33134    33161      +27     
- Misses       6527     6578      +51     
Components Coverage Δ
cvat-ui 79.24% <33.92%> (-0.21%) ⬇️
cvat-server 87.32% <98.61%> (+0.01%) ⬆️

@cvat-bot cvat-bot bot merged commit c7ec172 into master Mar 12, 2024
@cvat-bot cvat-bot bot deleted the release-2.11.2 branch March 12, 2024 07:46
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.

5 participants
0