-
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
[Dependend] Reset chunks from cache if oudated #8449
Merged
bsekachev
merged 9 commits into
zm/validation-management-core
from
bs/reset_not_relevant_cache
Oct 3, 2024
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
49fd1c1
cvat-core resets cache if not relevant anymore
bsekachev 21f6f6d
Added explanation
bsekachev 73b27f6
Fixed comment
bsekachev fdf49dd
Merged develop
bsekachev 0bedc1e
Minor updates
bsekachev e88d0ad
Merge branch 'zm/validation-management-core' into bs/reset_not_releva…
zhiltsov-max fccf64d
Merge branch 'zm/validation-management-core' into bs/reset_not_releva…
zhiltsov-max 8245299
Removed mocked API
bsekachev 30f61be
Merge branch 'zm/validation-management-core' into bs/reset_not_releva…
bsekachev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Tip
Codebase Verification
Validate comparison of
chunksUpdatedDate
- Potential improvement neededThe comparison of
meta.chunksUpdatedDate
andcached.meta.chunksUpdatedDate
is implemented correctly usingnew Date()
. However, there's no explicit validation to ensure these are valid date strings. While the type is declared asstring
, which is appropriate, consider adding a safeguard against potentialInvalid Date
issues:if
statement at line 512, add a check to ensure both dates are valid before comparison:This addition will prevent potential runtime errors if either
chunksUpdatedDate
is invalid, improving the robustness of the code.Analysis chain
Validate comparison of
chunksUpdatedDate
Ensure that
meta.chunksUpdatedDate
andcached.meta.chunksUpdatedDate
are valid date strings to avoid potentialInvalid Date
issues during comparison.Run the following script to check if
chunksUpdatedDate
is a valid date string:Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 133
Script:
Length of output: 1515