Skip to content

Cherry-pick #40610: Fix gitops output to use "fleets" and "queries"#40650

Merged
sgress454 merged 1 commit intorc-minor-fleet-v4.82.0from
cherry-pick-40610
Feb 26, 2026
Merged

Cherry-pick #40610: Fix gitops output to use "fleets" and "queries"#40650
sgress454 merged 1 commit intorc-minor-fleet-v4.82.0from
cherry-pick-40610

Conversation

@sgress454
Copy link
Copy Markdown
Contributor

Cherry-pick of #40610 into rc-minor-fleet-v4.82.0.

…instead of "reports" (#40610)

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

# Details

This PR updates the output from `fleetctl gitops` and `fleetctl apply`
to use the correct terminology:
* "fleet" instead of "team"
* "report" instead of "query" (where appropriate)
* "for unassigned hosts" in place of "No Team" where possible, and "for
fleet Unassigned" otherwise.

All changes other than tests are in `client.go` and are text-only; no
functional code is changed (and no code relies on the strings besides
tests).

# Checklist for submitter

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

- [ ] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files)
for more information.
n/a

## Testing

- [X] Added/updated automated tests
- [ ] QA'd all new/changed functionality manually

I did a `fleetctl generate-gitops` and a `fleetctl gitops` run and saw
the updated logs:
```
[+] would've applied EULA
[+] would've applied certificate authorities
[+] would've applied fleet config
[+] would've applied MDM profiles
[+] would've applied enroll secrets
[+] would've applied 1 report
[+] would've applied 1 software package for fleet 'Unassigned'
[+] would've applied 0 app store apps for fleet 'Unassigned'
[+] would've applied webhook settings for unassigned hosts
[+] would've applied 1 policy
[!] gitops dry run succeeded
```

but I did not go through and try and replicate every log or error
message. I think the best we can do on this one is eyeball the code
changes for mistakes.
@sgress454 sgress454 merged commit f0ba6c0 into rc-minor-fleet-v4.82.0 Feb 26, 2026
39 checks passed
@sgress454 sgress454 deleted the cherry-pick-40610 branch February 26, 2026 21:16
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 26, 2026

Codecov Report

❌ Patch coverage is 51.61290% with 30 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (rc-minor-fleet-v4.82.0@20cd27a). Learn more about missing BASE report.

Files with missing lines Patch % Lines
server/service/client.go 51.61% 30 Missing ⚠️
Additional details and impacted files
@@                    Coverage Diff                    @@
##             rc-minor-fleet-v4.82.0   #40650   +/-   ##
=========================================================
  Coverage                          ?   66.40%           
=========================================================
  Files                             ?     2456           
  Lines                             ?   197023           
  Branches                          ?     8556           
=========================================================
  Hits                              ?   130839           
  Misses                            ?    54348           
  Partials                          ?    11836           
Flag Coverage Δ
backend 68.16% <51.61%> (?)

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