Skip to content

Pin-cleanup on FMA delete - #48333

Merged
cdcme merged 2 commits into
feat/38504-auto-update-pin-rollback-fmafrom
fix-48309-stale-pin
Jun 26, 2026
Merged

Pin-cleanup on FMA delete#48333
cdcme merged 2 commits into
feat/38504-auto-update-pin-rollback-fmafrom
fix-48309-stale-pin

Conversation

@cdcme

@cdcme cdcme commented Jun 26, 2026

Copy link
Copy Markdown
Member

Related issue: Resolves #48309

Deleting a Fleet-maintained app from a team now also deletes its software_title_team_pins row. Previously the pin survived the delete (the FK cascades only on title deletion, and the title row outlives the installer rows), so re-adding the app resurfaced a stale pin pointing at a version no longer cached.

Checklist for submitter

  • 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

  • Added/updated automated tests
  • QA'd all new/changed functionality manually

@cdcme
cdcme marked this pull request as ready for review June 26, 2026 14:03
@cdcme
cdcme requested a review from a team as a code owner June 26, 2026 14:03

@claude claude Bot left a comment

Copy link
Copy Markdown

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 and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 33.33333% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 67.45%. Comparing base (d8c4faa) to head (061398e).
⚠️ Report is 1 commits behind head on feat/38504-auto-update-pin-rollback-fma.

Files with missing lines Patch % Lines
server/datastore/mysql/software_installers.go 40.00% 3 Missing and 3 partials ⚠️
ee/server/service/software_installers.go 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@                             Coverage Diff                             @@
##           feat/38504-auto-update-pin-rollback-fma   #48333      +/-   ##
===========================================================================
+ Coverage                                    67.36%   67.45%   +0.09%     
===========================================================================
  Files                                         3668     3668              
  Lines                                       232220   232225       +5     
  Branches                                     12401    12401              
===========================================================================
+ Hits                                        156428   156649     +221     
+ Misses                                       61790    61535     -255     
- Partials                                     14002    14041      +39     
Flag Coverage Δ
backend 68.99% <33.33%> (+0.11%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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.

@cdcme cdcme linked an issue Jun 26, 2026 that may be closed by this pull request
2 tasks
@cdcme
cdcme marked this pull request as draft June 26, 2026 15:55
@cdcme
cdcme marked this pull request as ready for review June 26, 2026 16:47
@cdcme
cdcme merged commit d5afa45 into feat/38504-auto-update-pin-rollback-fma Jun 26, 2026
37 checks passed
@cdcme
cdcme deleted the fix-48309-stale-pin branch June 26, 2026 17:18
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.

Auto update, pin, and rollback FMA - pinned version not deleted

2 participants