-
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
only store Object rotated state in updated array #8129
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 WalkthroughThe changes improve conditional logic within the Changes
Sequence Diagram(s)No sequence diagrams generated due to the simplicity and minor nature of the changes. Assessment against linked issues
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 Configration File (
|
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
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- cvat-core/src/annotations-objects.ts (2 hunks)
Additional comments not posted (2)
cvat-core/src/annotations-objects.ts (2)
2352-2361
: Formatting changes improve readability.The formatting changes to method call parameters enhance readability and maintainability of the code.
769-769
: LGTM! But verify the function usage in the codebase.The code change ensures that points are only saved if there is no rotation, preventing redundant state storage. This aligns with the PR objective.
However, ensure that all function calls to
save
match the new logic.
Hello, Firstly, the same problem exists also for tracks as you only made a fix in Shape class, but not in Track. Second thing is that I believe the problem is not in cvat-core. In one action user may update only points or rotation, but not both. However the function |
You may review this |
fixes #8013
While rotating the rectangle, two states were stored in array, one Object Rotated and the other Changed Points. So, I just added a check that if the object is rotated, there is no need to change points.
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