Skip to content

Cherry pick: Return icon in in-house app metadata (#35568) - #35624

Merged
jkatz01 merged 1 commit into
rc-minor-fleet-v4.77.0from
35559-cherry-pick
Nov 12, 2025
Merged

Cherry pick: Return icon in in-house app metadata (#35568)#35624
jkatz01 merged 1 commit into
rc-minor-fleet-v4.77.0from
35559-cherry-pick

Conversation

@jkatz01

@jkatz01 jkatz01 commented Nov 12, 2025

Copy link
Copy Markdown
Member

Merged into main in #35568
Fixes in-house app icon not being deleted when title is deleted #35559

**Related issue:** Resolves #35559

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

- [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
@jkatz01 jkatz01 changed the title Return icon in in-house app metadata (#35568) Cherry pick: Return icon in in-house app metadata (#35568) Nov 12, 2025
@jkatz01
jkatz01 marked this pull request as ready for review November 12, 2025 16:35
@jkatz01
jkatz01 requested a review from a team as a code owner November 12, 2025 16:35
@codecov

codecov Bot commented Nov 12, 2025

Copy link
Copy Markdown

Codecov Report

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

Files with missing lines Patch % Lines
server/datastore/mysql/in_house_apps.go 45.45% 3 Missing and 3 partials ⚠️
Additional details and impacted files
@@                    Coverage Diff                    @@
##             rc-minor-fleet-v4.77.0   #35624   +/-   ##
=========================================================
  Coverage                          ?   66.14%           
=========================================================
  Files                             ?     2100           
  Lines                             ?   177458           
  Branches                          ?     7382           
=========================================================
  Hits                              ?   117377           
  Misses                            ?    49319           
  Partials                          ?    10762           
Flag Coverage Δ
backend 67.79% <45.45%> (?)

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.

Comment on lines +234 to +241
categoryMap, err := ds.GetCategoriesForSoftwareTitles(ctx, []uint{titleID}, teamID)
if err != nil {
return nil, ctxerr.Wrap(ctx, err, "getting categories for in house app metadata")
}

if categories, ok := categoryMap[titleID]; ok {
dest.Categories = categories
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just double-checking, is it meant to include this? The original PR that his cherry-picks does not have this change.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Though self-service is definitely in 4.77 so that' sprobably fine, but maybe this was meant to be another cherry-pick?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Oh nevermind, I see that https://github.com/fleetdm/fleet/pull/35618/files is the categories cherry-pick and is probably meant to merge first.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes @mna I accidentally merged this cherry pick before that. Good catch!

@jkatz01
jkatz01 merged commit af92109 into rc-minor-fleet-v4.77.0 Nov 12, 2025
55 of 57 checks passed
@jkatz01
jkatz01 deleted the 35559-cherry-pick branch November 12, 2025 17:05
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