Skip to content

Cherry pick: Support categories for in-house apps (#35542) - #35618

Merged
jkatz01 merged 2 commits into
rc-minor-fleet-v4.77.0from
35464-cherry-pick
Nov 12, 2025
Merged

Cherry pick: Support categories for in-house apps (#35542)#35618
jkatz01 merged 2 commits into
rc-minor-fleet-v4.77.0from
35464-cherry-pick

Conversation

@jkatz01

@jkatz01 jkatz01 commented Nov 12, 2025

Copy link
Copy Markdown
Member

Merged into main in #35542
Adds categories support for in-house apps and minor bug fixes.

<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #35464 
Also allows #35531 to be merged
Adds self-service categories for #32247

Changes:
- Move category insertion up in update installer so in house apps can
use it
- Add migration for in_house_app_software_categories table
- Fix some overly wrapped errors
- Add new tests for categories
- Fix unused param in another test

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

- [ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [ ] If paths of existing endpoints are modified without backwards
compatibility, checked the frontend/CLI for any necessary changes

## Testing

- [x] Added/updated automated tests
- [ ] 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

## Database migrations

- [ ] Checked schema for all modified table for columns that will
auto-update timestamps during migration.
- [ ] Confirmed that updating the timestamps is acceptable, and will not
cause unwanted side effects.
- [ ] Ensured the correct collation is explicitly set for character
columns (`COLLATE utf8mb4_unicode_ci`).
@codecov

codecov Bot commented Nov 12, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 78.57143% with 12 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (rc-minor-fleet-v4.77.0@af92109). Learn more about missing BASE report.

Files with missing lines Patch % Lines
server/datastore/mysql/in_house_apps.go 45.45% 4 Missing and 2 partials ⚠️
...ions/tables/20251110172137_InHouseAppCategories.go 80.00% 3 Missing and 1 partial ⚠️
ee/server/service/software_installers.go 81.81% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@                    Coverage Diff                    @@
##             rc-minor-fleet-v4.77.0   #35618   +/-   ##
=========================================================
  Coverage                          ?   66.14%           
=========================================================
  Files                             ?     2101           
  Lines                             ?   177496           
  Branches                          ?     7382           
=========================================================
  Hits                              ?   117406           
  Misses                            ?    49324           
  Partials                          ?    10766           
Flag Coverage Δ
backend 67.79% <78.57%> (?)

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.

@jkatz01
jkatz01 marked this pull request as ready for review November 12, 2025 16:28
@jkatz01
jkatz01 requested a review from a team as a code owner November 12, 2025 16:28
@jkatz01
jkatz01 merged commit 04ee844 into rc-minor-fleet-v4.77.0 Nov 12, 2025
30 of 31 checks passed
@jkatz01
jkatz01 deleted the 35464-cherry-pick branch November 12, 2025 17:07
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