-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Wrap objects in GT job after updating #8206
Conversation
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThis update enhances the handling of ground truth annotations in the CVAT (Computer Vision Annotation Tool) system. A new function, Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant UI
participant AnnotationService
User->>UI: Fetch Annotations
UI->>AnnotationService: fetchAnnotations()
AnnotationService-->>UI: Return Annotation States
UI->>UI: Process Annotations
UI->>AnnotationService: updateAnnotationsAsync()
AnnotationService-->>UI: Return Updated States
UI->>UI: Wrap Annotations in GT Job
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Outside diff range, codebase verification and nitpick comments (2)
cvat-ui/src/actions/annotation-actions.ts (2)
268-284
: Lack of test coverage forwrapAnnotationsInGTJob
.The function
wrapAnnotationsInGTJob
is not covered by any direct or indirect tests in the codebase. It is crucial to add unit tests for this function to ensure its behavior is verified.
- Add unit tests for the
wrapAnnotationsInGTJob
function to ensure its correct behavior.Analysis chain
Verify the Proxy usage.
The Proxy usage in
wrapAnnotationsInGTJob
appears correct. Ensure that this function is covered by unit tests to verify its behavior.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify if the function `wrapAnnotationsInGTJob` is covered by tests. # Test: Search for the function usage in test files. Expect: Occurrences in test files. rg --type js 'wrapAnnotationsInGTJob' --glob '*test*.js'Length of output: 56
Script:
#!/bin/bash # Description: Verify if the function `wrapAnnotationsInGTJob` is used or tested in the codebase. # Test: Search for the function usage in all JavaScript and TypeScript files, including test files. rg 'wrapAnnotationsInGTJob' --type js --type tsLength of output: 379
Script:
#!/bin/bash # Description: Verify if the logic invoking `wrapAnnotationsInGTJob` is covered by tests. # Test: Search for test files that cover the logic invoking `wrapAnnotationsInGTJob`. rg 'states = wrapAnnotationsInGTJob' --type js --type ts --glob '*test*.js'Length of output: 77
Add tests for
fetchAnnotations
.The function
fetchAnnotations
is not covered by any tests. It is crucial to add unit tests to verify its behavior and ensure the integration ofwrapAnnotationsInGTJob
does not introduce any issues.
- Ensure
fetchAnnotations
is covered by unit tests.- Verify the integration of
wrapAnnotationsInGTJob
.Analysis chain
Line range hint
285-302
:
Verify the integration ofwrapAnnotationsInGTJob
.The integration of
wrapAnnotationsInGTJob
infetchAnnotations
appears correct. Ensure that this function is covered by unit tests to verify its behavior.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify if the function `fetchAnnotations` is covered by tests. # Test: Search for the function usage in test files. Expect: Occurrences in test files. rg --type js 'fetchAnnotations' --glob '*test*.js'Length of output: 50
Script:
#!/bin/bash # Description: Verify if the function `fetchAnnotations` is covered by tests. # Test: Search for the function usage across all files to ensure comprehensive coverage. rg 'fetchAnnotations'Length of output: 5994
Script:
#!/bin/bash # Description: Verify if the function `fetchAnnotations` is indirectly covered by tests. # Test: Search for test files related to the components and actions where `fetchAnnotations` is used. rg --type js 'import .* from .*objects-list' --glob '*test*.js' rg --type js 'import .* from .*controls-side-bar' --glob '*test*.js' rg --type js 'import .* from .*filters-modal' --glob '*test*.js' rg --type js 'import .* from .*canvas-wrapper' --glob '*test*.js' rg --type js 'import .* from .*issues-list' --glob '*test*.js' rg --type js 'import .* from .*annotations-actions-modal' --glob '*test*.js' rg --type js 'import .* from .*boundaries-actions' --glob '*test*.js'Length of output: 487
Script:
#!/bin/bash # Description: Verify if the function `fetchAnnotations` is indirectly covered by tests. # Test: Search for test files in the entire codebase to find any indirect test coverage for `fetchAnnotations`. rg --type js 'import .* from .*objects-list' rg --type js 'import .* from .*controls-side-bar' rg --type js 'import .* from .*filters-modal' rg --type js 'import .* from .*canvas-wrapper' rg --type js 'import .* from .*issues-list' rg --type js 'import .* from .*annotations-actions-modal' rg --type js 'import .* from .*boundaries-actions'Length of output: 354
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- changelog.d/20240722_123134_sekachev.bs_fixed_gt_objects.md (1 hunks)
- cvat-ui/src/actions/annotation-actions.ts (3 hunks)
Files skipped from review due to trivial changes (1)
- changelog.d/20240722_123134_sekachev.bs_fixed_gt_objects.md
Additional comments not posted (1)
cvat-ui/src/actions/annotation-actions.ts (1)
1121-1122
: Verify the integration ofwrapAnnotationsInGTJob
.The integration of
wrapAnnotationsInGTJob
inupdateAnnotationsAsync
appears correct. Ensure that this function is covered by unit tests to verify its behavior.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #8206 +/- ##
===========================================
- Coverage 83.37% 83.36% -0.01%
===========================================
Files 388 388
Lines 41300 41315 +15
Branches 3854 3855 +1
===========================================
+ Hits 34432 34441 +9
- Misses 6868 6874 +6
|
Motivation and context
How has this been tested?
Checklist
develop
branch(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)
License
Feel free to contact the maintainers if that's a concern.
Summary by CodeRabbit
New Features
Bug Fixes
Documentation