Skip to content

Fix filtering instances by no upgrader in instance inventory#63184

Merged
rudream merged 1 commit intomasterfrom
yassine/inventory-none-filter
Jan 28, 2026
Merged

Fix filtering instances by no upgrader in instance inventory#63184
rudream merged 1 commit intomasterfrom
yassine/inventory-none-filter

Conversation

@rudream
Copy link
Copy Markdown
Contributor

@rudream rudream commented Jan 27, 2026

Purpose

This PR fixes a regression causing the "None" option for filtering by upgraders in the instance inventory not to work. This was likely introduced when implementing a suggestion to use splitQuery to handle params in the API handler, which trims empty strings from the query.

@rudream rudream added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v18 labels Jan 27, 2026
Comment on lines +92 to +98
// We don't use splitQuery for parsing upgraders since it should be possible to filter for upgrader "" (none),
// and splitQuery would remove it.
var upgraders []string
if upgradersParam := values.Get("upgraders"); upgradersParam != "" {
upgraders = strings.Split(upgradersParam, ",")
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this has been a gotcha in a few other places (like kinds in unified resource requests)

@rudream rudream enabled auto-merge January 28, 2026 15:01
@rudream rudream added this pull request to the merge queue Jan 28, 2026
Merged via the queue into master with commit 0f4c0ec Jan 28, 2026
49 of 50 checks passed
@rudream rudream deleted the yassine/inventory-none-filter branch January 28, 2026 15:40
@backport-bot-workflows
Copy link
Copy Markdown
Contributor

@rudream See the table below for backport results.

Branch Result
branch/v18 Failed

rudream added a commit that referenced this pull request Jan 29, 2026
cthach pushed a commit that referenced this pull request Jan 29, 2026
rudream added a commit that referenced this pull request Feb 13, 2026
rudream added a commit that referenced this pull request Feb 13, 2026
github-merge-queue bot pushed a commit that referenced this pull request Feb 13, 2026
* implement instance inventory UI

* fix filtering by no upgrader (#63184)

* add prometheus metrics to inventory cache

* trim v prefix for all instance versions in inventory cache

* use accesslistservicev2 and static scoped service in test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/branch/v18 no-changelog Indicates that a PR does not require a changelog entry size/sm ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants