Repository navigation
StorageManager tech debt: deprecated SearchCriteria.addAnd - #14564
Open
DaanHoogland wants to merge 1 commit into
Open
DaanHoogland wants to merge 1 commit into
DaanHoogland wants to merge 1 commit into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## ghi12316-storage-trivial-warnings #14564 +/- ##
====================================================================
Coverage 20.78% 20.78%
- Complexity 21927 21932 +5
====================================================================
Files 6496 6496
Lines 591459 591466 +7
Branches 72547 72545 -2
====================================================================
+ Hits 122929 122954 +25
+ Misses 455196 455169 -27
- Partials 13334 13343 +9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
DaanHoogland
force-pushed
the
ghi12316-storage-addand-deprecations
branch
from
November 6, 2026 11:36
3321a06 to
28d4d3e
Compare
Fixes #12316 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DaanHoogland
force-pushed
the
ghi12316-storage-addand-deprecations
branch
from
November 6, 2026 15:08
28d4d3e to
8c7dab4
Compare
1 task done
|
🔴 Test Coverage Grade:
|
| Metric | Value |
|---|---|
| Line coverage | 25.89% |
| Branch coverage | 20.23% |
Grade Scale
| Grade | Line Coverage | Meaning |
|---|---|---|
| 🟢 A | ≥ 80% | Excellent - this code sleeps well at night 😴 |
| 🟡 B | 60-79% | Good - almost there, don't stop now 😉 |
| 🟠 C | 40-59% | Acceptable - your code is wearing a seatbelt, but no airbags 😬 |
| 🔴 D | 20-39% | Marginal - boldly shipping where no test has gone before 🖖 |
| ⛔ F | < 20% | Failing - tests? what tests? 🔥 |
Branch coverage is shown as a secondary signal. Grade is determined by line coverage.
View full Actions run
This branch has not been deployed
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.


Depends on #14562
Description
Replaces the deprecated
SearchCriteria.addAnd()calls inStorageManagerImpl(10 warnings → 0) withSearchBuilders declared once inconfigure(), like the existingLocalStorageSearch:createCapacityEntry:PoolCapacitySearch(hostOrPoolId,dataCenterId,capacityType)getStoragePoolUsedStatsInternal:PoolUsedStatsSearch. Optional zone/pod/cluster/id filters are only set when given; unset conditions are dropped from the WHERE clause, as before. The criteria are now only built in the branch that actually searches: when a singlepoolIdis given, the old code built them and then usedfindByIdanyway.getSecondaryStorageUsedStats: removes aSearchCriteriathat was built but never used.After this PR and the ones it depends on, the only javac warnings left in these files are the 4
Configdeprecations, which #14467 handles.Fixes: #12316
Types of changes
🤖 Generated with Claude Code