Skip to content

Cherry pick: Use host IDs instead of host names when doing generate-gitops for manual labels - #34296

Merged
sgress454 merged 1 commit into
rc-minor-fleet-v4.75.0from
sgress454/cherry-pick-34254-to-4.75
Oct 15, 2025
Merged

Cherry pick: Use host IDs instead of host names when doing generate-gitops for manual labels#34296
sgress454 merged 1 commit into
rc-minor-fleet-v4.75.0from
sgress454/cherry-pick-34254-to-4.75

Conversation

@sgress454

Copy link
Copy Markdown
Contributor

Cherry pick of 45a8749 (#34254) to rc 4.75.0

…ual labels (#34254)

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

# Checklist for submitter

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

- [X] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)

## 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
Did a `generate-gitops` for a manual label, noted the correct IDs were
output for hosts. Use `gitops` to re-apply the label, saw the label
membership was applied correctly.

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

- [X] Confirmed that the fix is not expected to adversely impact load
test results
- [ ] Alerted the release DRI if additional load testing is needed

(cherry picked from commit 45a8749)
@sgress454 sgress454 changed the title Use host IDs instead of host names when doing generate-gitops for man… Cherry pick: Use host IDs instead of host names when doing generate-gitops for manual labels Oct 15, 2025
@sgress454
sgress454 merged commit b9d89af into rc-minor-fleet-v4.75.0 Oct 15, 2025
33 checks passed
@sgress454
sgress454 deleted the sgress454/cherry-pick-34254-to-4.75 branch October 15, 2025 18:41
@codecov

codecov Bot commented Oct 15, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (rc-minor-fleet-v4.75.0@4a04c4c). Learn more about missing BASE report.

Files with missing lines Patch % Lines
server/datastore/mysql/labels.go 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@                    Coverage Diff                    @@
##             rc-minor-fleet-v4.75.0   #34296   +/-   ##
=========================================================
  Coverage                          ?   64.03%           
=========================================================
  Files                             ?     2068           
  Lines                             ?   207082           
  Branches                          ?     6682           
=========================================================
  Hits                              ?   132608           
  Misses                            ?    64046           
  Partials                          ?    10428           
Flag Coverage Δ
backend 65.14% <75.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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