add display name to missing spots (#36219)

<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #35654 Resolves #36194

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

## Testing

- [x] Added/updated automated tests
- [x] Where appropriate, [automated tests simulate multiple hosts and
test for host
isolation](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/reference/patterns-backend.md#unit-testing)
(updates to one hosts's records do not affect another)

- [x] QA'd all new/changed functionality manually

For unreleased bug fixes in a release candidate, one of:

- [x] Confirmed that the fix is not expected to adversely impact load
test results
This commit is contained in:
Jahziel Villasana-Espinoza
2025-11-24 18:20:39 -05:00
committed by GitHub
parent 8ab356a666
commit 8aeb5e3dac
7 changed files with 83 additions and 29 deletions
+12
View File
@@ -76,3 +76,15 @@ func Duration(x time.Duration) *time.Duration {
func T[T any](x T) *T {
return &x
}
// ValOrZero returns the value of x if x is not nil, and the zero value
// for T otherwise.
func ValOrZero[T any](x *T) T {
var ret T
if x != nil {
return *x
}
return ret
}