fix: image counts are incorrectly calculated#1760
Merged
Conversation
🔍 Deadcode AnalysisFound 3 unreachable functions in the backend. View detailsOnly remove deadcode that you know is 100% no longer used.
|
Contributor
|
Container images for this PR have been built successfully!
Built from commit 593863e |
d57b9d0 to
19c5c57
Compare
Member
Author
93eabb4 to
f8efc83
Compare
f8efc83 to
593863e
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

What This PR Implements
Related issue
Related Issue
Fixes # #1712
Changes Made
Testing Done
./scripts/development/dev.sh startjust lint all)just test backendChecklist
mainbranchAI Tool Used (if applicable)
AI Tool:
Assistance Level:
What AI helped with:
I reviewed and edited all AI-generated output:
I ran all required tests and manually verified changes:
Additional Context
Disclaimer Greptiles Reviews use AI, make sure to check over its work.
To better help train Greptile on our codebase, if the comment is useful and valid Like the comment, if its not helpful or invalid Dislike
Greptile Overview
Greptile Summary
Fixed incorrect image count calculations by replacing unreliable
image.Containersfield with proper container-to-image ID matching. The PR addresses two key issues:image.Containersfield which was producing incorrect counts (showing -1, 0, or 99 values).GetUpdateSummarynow filters counts to only live Docker images, preventing stale database records from inflating statistics.The changes include comprehensive test coverage verifying the fixes work correctly, and integration tests to ensure the API counts align with the actual image data.
Confidence Score: 5/5
Important Files Changed
Last reviewed commit: 19c5c57