-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 extra server requests #8069
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 recent changes involve updates to the Changes
Sequence Diagram(s)
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 (4)
- cvat-core/src/project.ts (1 hunks)
- cvat-ui/src/components/create-task-page/create-task-content.tsx (1 hunks)
- cvat-ui/src/components/create-task-page/project-subset-field.tsx (2 hunks)
- cvat-ui/src/components/task-page/details.tsx (4 hunks)
Files not reviewed due to errors (2)
- cvat-core/src/project.ts (no review received)
- cvat-ui/src/components/create-task-page/create-task-content.tsx (no review received)
Additional comments not posted (6)
cvat-ui/src/components/create-task-page/project-subset-field.tsx (3)
22-22
: Updatedsubsets
property inProjectPartialWithSubsets
.The change aligns the
subsets
property with the new expected type. This is a straightforward change and seems correctly implemented.
34-34
: Refactor conditional logic inuseEffect
.The updated conditional logic checks if
projectSubsets
isnull
instead of checking its length. This change is consistent with the new nullable type ofprojectSubsets
. It's a good practice to handle potentiallynull
values to prevent runtime errors.
15-15
: Clarify theprojectSubsets
prop in theProps
interface.The
projectSubsets
prop has been changed to either an array of strings ornull
. This is a significant change as it affects how the component handles the absence of subsets. Ensure that all usages of this prop across the project handle thenull
case appropriately.cvat-ui/src/components/task-page/details.tsx (3)
14-17
: Updated import statements to include new classes.The import statements now include
Dumper
,User
,Project
, andTask
fromcvat-core-wrapper
. This change is necessary for the updated usage of these classes in the component.
35-37
: Updated types inStateToProps
interface.The
dumpers
type has been clarified to be an array ofDumper
anduser
to be of typeUser
. This change improves type safety and aligns with TypeScript best practices.
48-50
: RefactoredmapStateToProps
function.The function now handles the
project
property differently, which is aligned with the new structure of theProject
class. It's crucial to ensure that the rest of the application correctly handles the potentialundefined
state ofproject
.
Quality Gate passedIssues Measures |
Motivation and context
Requests before fix when changing job stage (task in a project, project not in app state):
After fix:
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.