Skip to content

Cherry-pick #51102: Rename skipped install activity flag - #51273

Merged
cdcme merged 1 commit into
rc-minor-fleet-v4.91.0from
cp-51102-rename-skipped-install-activity-flag
Aug 14, 2026
Merged

Cherry-pick #51102: Rename skipped install activity flag#51273
cdcme merged 1 commit into
rc-minor-fleet-v4.91.0from
cp-51102-rename-skipped-install-activity-flag

Conversation

@cdcme

@cdcme cdcme commented Aug 14, 2026

Copy link
Copy Markdown
Member

Cherry-pick of #51102 into the 4.91 RC branch.

Renames the installed_software activity detail flag install_skipped_when_app_openskipped_install (Resolves #51052). Needed here because this branch was cut on 2026-08-11, before the rename landed on main, and docs-v4.91.0 already publishes the field as skipped_install — without this, 4.91.0 ships an API field whose own reference docs name something else.

**Related issue:** Resolves #51052

Renames the `installed_software` activity detail flag from
`install_skipped_when_app_open` to `skipped_install`, the name Product
approved and the one `docs-v4.91.0` already publishes
(`audit-logs.md:1661`). The implementation (#49858) landed six days
before the activity docs (#49106), so the two diverged; since
patch-when-closed is unreleased, this renames outright rather than
aliasing.

The name is deliberately reason-agnostic: #39178 will set the same flag
for a second skip reason (notify-then-defer), where
`install_skipped_when_app_open` would be false.

Rename only — no behavior change. Covers the JSON tag, the Go field
(`InstallSkippedWhenAppOpen` → `SkippedInstall`), and the frontend,
where all four readers were swept: activity feed, host activity card,
policy automations table, and the install-details modal (including its
`installSkippedWhenAppOpen` prop). No endpoint paths changed.

Deliberately unchanged: `isAppOpenSkip` in `orbit.go` still names the
detection of the app-open case specifically, and the pre-existing
frontend-only `"skipped_install"` display status
(`interfaces/software.ts`) is not an API value — after this rename the
two simply agree.

No changes file: `~unreleased bug`, and
`changes/39962-patch-when-closed` already covers the feature. No
migration: activity details are an opaque `activity_past.details` JSON
blob and no SQL reads this key. A `renameto:` alias was considered and
rejected — aliases are applied before the INSERT, so it would
permanently double-write a never-released key into every row.

> [!IMPORTANT]
> `rc-minor-fleet-v4.91.0` was cut on 2026-08-11 and still carries the
old name. This needs a cherry-pick into that branch before the 4.91.0
cut, or 4.91.0 ships `install_skipped_when_app_open` while its own
reference docs document `skipped_install`.

# Checklist for submitter

## Testing

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

For unreleased bug fixes in a release candidate, one of:

- [x] Confirmed that the fix is not expected to adversely impact load
test results


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Updated installed-software activity handling to consistently identify
installations skipped because the app was open.
* Preserved skipped-install status messages, labels, icons, and detail
visibility across activity views and policy automation tables.

* **Refactor**
* Standardized the activity field name used for skipped installations
across the application.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@cdcme
cdcme requested review from a team as code owners August 14, 2026 18:20
@codecov

codecov Bot commented Aug 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (rc-minor-fleet-v4.91.0@504e2be). Learn more about missing BASE report.

Additional details and impacted files
@@                    Coverage Diff                    @@
##             rc-minor-fleet-v4.91.0   #51273   +/-   ##
=========================================================
  Coverage                          ?   68.54%           
=========================================================
  Files                             ?     3981           
  Lines                             ?   256447           
  Branches                          ?    13674           
=========================================================
  Hits                              ?   175782           
  Misses                            ?    65020           
  Partials                          ?    15645           
Flag Coverage Δ
backend 69.64% <100.00%> (?)
frontend 62.75% <100.00%> (?)

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 merged commit 1ba789a into rc-minor-fleet-v4.91.0 Aug 14, 2026
36 of 38 checks passed
@cdcme
cdcme deleted the cp-51102-rename-skipped-install-activity-flag branch August 14, 2026 18:34
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.

3 participants