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

Fixed duplicated notifications for automatic annotation #7595

Merged
merged 8 commits into from
Mar 27, 2024

Conversation

klakhov
Copy link
Contributor

@klakhov klakhov commented Mar 12, 2024

Motivation and context

If we go over different task pages while automatic annotation is in progress, on its successful finish we get duplicated notifications.That happens because each time we go to new page in task list or open a task, new listener to request status is created.

How has this been tested?

Manual testing

Checklist

  • I submit my changes into the develop branch
  • I have created a changelog fragment
  • [ ] I have updated the documentation accordingly
  • [ ] I have added tests to cover my changes
  • [ ] I have linked related issues (see GitHub docs)
  • I have increased versions of npm packages if it is necessary
    (cvat-canvas,
    cvat-core,
    cvat-data and
    cvat-ui)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

@klakhov klakhov requested a review from bsekachev as a code owner March 12, 2024 12:50
@klakhov klakhov requested a review from nmanovic as a code owner March 12, 2024 12:52
@klakhov klakhov removed the request for review from nmanovic March 12, 2024 12:52
@klakhov klakhov added the ui/ux label Mar 12, 2024
Copy link

codecov bot commented Mar 12, 2024

Codecov Report

Merging #7595 (b249eef) into develop (811f6ed) will decrease coverage by 0.03%.
Report is 1 commits behind head on develop.
The diff coverage is 40.00%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #7595      +/-   ##
===========================================
- Coverage    83.41%   83.39%   -0.03%     
===========================================
  Files          373      373              
  Lines        39722    39728       +6     
  Branches      3741     3743       +2     
===========================================
- Hits         33136    33131       -5     
- Misses        6586     6597      +11     
Components Coverage Δ
cvat-ui 79.23% <40.00%> (-0.05%) ⬇️
cvat-server 87.24% <100.00%> (-0.01%) ⬇️

@klakhov klakhov force-pushed the kl/fix-auto-annotation-notifications branch from 97bcc63 to ecf8606 Compare March 15, 2024 10:40
return {
...state,
inferences: Object.fromEntries(
Object.entries(inferences).filter(([key]): boolean => +key !== action.payload.taskID),
),
requestedInferenceIDs: { ...requestedInferenceIDs },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Let's refactor a little bit with lodash.omit for both inferences and requestedInferenceIDs
  • The same for CANCEL_INFERENCE_SUCCESS

@bsekachev bsekachev merged commit f5dae55 into develop Mar 27, 2024
34 checks passed
g-kartik pushed a commit to g-kartik/cvat that referenced this pull request Mar 29, 2024
@cvat-bot cvat-bot bot mentioned this pull request Apr 2, 2024
@bsekachev bsekachev deleted the kl/fix-auto-annotation-notifications branch April 15, 2024 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants