-
Notifications
You must be signed in to change notification settings - Fork 3k
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 undefined
active control
#8334
Conversation
WalkthroughThis update resolves a bug related to workspace switching and tagging functionality in the application. A specific control flow adjustment was made to enhance the behavior of the Changes
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 (1)
changelog.d/20240822_111601_sekachev.bs_fixed_minor_issue.md (1)
3-4
: Improve clarity of the changelog entry.Consider rephrasing the changelog entry for better clarity:
- Sometimes it is not possible to switch workspace because active control broken after - trying to create a tag with a shortcut (<https://github.com/cvat-ai/cvat/pull/8334>) + Fixed an issue where switching workspaces was sometimes impossible due to a broken active control after attempting to create a tag using a shortcut. See the related PR: <https://github.com/cvat-ai/cvat/pull/8334>
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- changelog.d/20240822_111601_sekachev.bs_fixed_minor_issue.md (1 hunks)
- cvat-ui/src/actions/annotation-actions.ts (1 hunks)
Additional comments not posted (1)
cvat-ui/src/actions/annotation-actions.ts (1)
1415-1417
: Conditional assignment ofactiveControl
is correct.The conditional check ensures that
activeControl
is only assigned whenactiveObjectType
is not a tag. This change aligns with the intended fix to prevent issues with undefined active controls.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #8334 +/- ##
===========================================
- Coverage 83.57% 83.56% -0.02%
===========================================
Files 393 393
Lines 41608 41609 +1
Branches 3843 3844 +1
===========================================
- Hits 34775 34770 -5
- Misses 6833 6839 +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
Bug Fixes
Enhancements
activeControl
variable based on the active object type, enhancing the behavior of the tagging feature.