Skip to content

feat installers labels include all#42061

Merged
georgekarrv merged 9 commits intomainfrom
feat-installers-labels-include-all
Mar 19, 2026
Merged

feat installers labels include all#42061
georgekarrv merged 9 commits intomainfrom
feat-installers-labels-include-all

Conversation

@jahzielv
Copy link
Copy Markdown
Contributor

Related issue: Resolves #39916

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 for more information.

  • Input data is properly validated, SELECT * is avoided, SQL injection is prevented (using placeholders for values in statements), JS inline code is prevented especially for url redirects, and untrusted data interpolated into shell scripts/commands is validated against shell metacharacters.

Testing

Database migrations

  • Checked schema for all modified table for columns that will auto-update timestamps during migration.

New Fleet configuration settings

  • Verified that the setting is exported via fleetctl generate-gitops
  • Verified the setting is documented in a separate PR to the GitOps documentation
  • Verified that the setting is cleared on the server if it is not supplied in a YAML file (or that it is documented as being optional)
  • Verified that any relevant UI is disabled when GitOps mode is enabled

mna and others added 4 commits March 10, 2026 08:22
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #40721 

# Checklist for submitter

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

- [x] 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.

- [x] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements), JS
inline code is prevented especially for url redirects

## 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)

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

I (Martin) did test `labels_include_all` for FMA, custom installer, IPA
and VPP apps, and it seemed to all work great for gitops apply and
gitops generate, **except for VPP apps** which seem to have 2 important
pre-existing bugs, see
#40723 (comment)

## New Fleet configuration settings

- [ ] Verified that the setting is exported via `fleetctl
generate-gitops`
- [ ] Verified the setting is documented in a separate PR to [the GitOps
documentation](https://github.com/fleetdm/fleet/blob/main/docs/Configuration/yaml-files.md#L485)
- [ ] Verified that the setting is cleared on the server if it is not
supplied in a YAML file (or that it is documented as being optional)
- [ ] Verified that any relevant UI is disabled when GitOps mode is
enabled

---------

Co-authored-by: Jahziel Villasana-Espinoza <jahziel@fleetdm.com>
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #40724 

# Checklist for submitter

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

## Testing

- [x] Added/updated automated tests
- [x] QA'd all new/changed functionality manually
@jahzielv jahzielv requested review from a team as code owners March 19, 2026 14:09
Copy link
Copy Markdown

@claude claude bot left a comment

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 19, 2026

Codecov Report

❌ Patch coverage is 84.24908% with 86 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.46%. Comparing base (e8ea01d) to head (c14569c).
⚠️ Report is 19 commits behind head on main.

Files with missing lines Patch % Lines
frontend/services/entities/software.ts 5.55% 17 Missing ⚠️
frontend/pages/SoftwarePage/helpers.tsx 20.00% 12 Missing ⚠️
cmd/fleetctl/fleetctl/gitops.go 40.00% 6 Missing and 3 partials ⚠️
...ftwareInstallerVPPAppInHouseAppIncludeAllLabels.go 46.66% 5 Missing and 3 partials ⚠️
server/datastore/mysql/vpp.go 87.50% 6 Missing and 2 partials ⚠️
server/datastore/mysql/in_house_apps.go 78.57% 5 Missing and 1 partial ⚠️
server/service/software_installers.go 72.72% 6 Missing ⚠️
ee/server/service/vpp.go 76.19% 5 Missing ⚠️
server/datastore/mysql/software_installers.go 93.10% 3 Missing and 1 partial ⚠️
ee/server/service/software_installers.go 94.91% 3 Missing ⚠️
... and 4 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #42061      +/-   ##
==========================================
+ Coverage   66.40%   66.46%   +0.06%     
==========================================
  Files        2513     2514       +1     
  Lines      201457   201833     +376     
  Branches     8945     9074     +129     
==========================================
+ Hits       133772   134158     +386     
+ Misses      55582    55540      -42     
- Partials    12103    12135      +32     
Flag Coverage Δ
backend 68.26% <88.88%> (+0.08%) ⬆️
frontend 54.36% <12.12%> (-0.06%) ⬇️

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.

@georgekarrv georgekarrv merged commit 99f8639 into main Mar 19, 2026
51 of 55 checks passed
@georgekarrv georgekarrv deleted the feat-installers-labels-include-all branch March 19, 2026 20:11
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.

Custom scope for software: "Labels include all"

4 participants