Skip to content

fix(software): contract facets with no data yet come back empty, not null CU-17tkuw61fh5 - #2875

Merged
andrii-flamingo merged 2 commits into
mainfrom
feat/software-filters-facet-stubs
Oct 29, 2026
Merged

andrii-flamingo merged 2 commits into
mainfrom
feat/software-filters-facet-stubs

Conversation

@andrii-flamingo

@andrii-flamingo andrii-flamingo commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

ClickUp task: CU-17tkuw61fh5 BE: Software lists — server-side paging/sort/filter for the fields the UI needs

#2849 added non-null facet lists with no resolver yet, so softwareFilters and softwareDeviceFilters failed whole whenever a query selected one of them.

Change

  • SoftwareFilters.autoUpdateStatuses and SoftwareOnDeviceFilters.installedBy / autoUpdateStatuses / organizations / deviceStatuses default to an empty list (@Builder.Default), so every builder returns [] instead of null.
  • The nullable contract fields (Software.type, autoUpdate, adoptionCount, SoftwareOnDevice.installedBy, adoption, autoUpdate) already resolve to null.
  • Real values come with the read model (feat(software-cdc): Debezium CDC projection for Fleet software & vulnerabilities CU-17tkuw5tdwn #2651) and the auto-update policy.

Not in this PR

adoptSoftware and turnOffSoftwareAutoUpdate still have no resolver and return an error. A stub that pretends to succeed would mislead the UI.

Testing

SoftwareInventoryServiceTest: the new facets come back empty, never null.

Change-Set: software-lists

Change set flamingo-stack/software-lists: this pull request is the only one in it so far. Another pull request joins by naming this one in a Depends-On line, or by carrying the same Change-Set line.

Linked work

Linked by the Depends-On / Change-Set lines in these descriptions; this block is maintained by the hub.

@github-actions

Copy link
Copy Markdown
Contributor

🦩 Flamingo Code Review

Not reviewed yet. Reviews start when you ask, so the reviewer reads this pull request when it is ready, not when it is opened.

When it is ready:

  • Review this pull request

Or comment @flamingo-review. Add the flamingo-review-always label to review every push.

Updated 2026-10-29 11:20 UTC · workflow run

@andrii-flamingo
andrii-flamingo added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit 46bb202 Oct 29, 2026
19 checks passed
@andrii-flamingo
andrii-flamingo deleted the feat/software-filters-facet-stubs branch October 29, 2026 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants