Skip to content

[Activity] Patch policies: Install new version when app is closed - #49106

Merged
marko-lisica merged 3 commits into
docs-v4.91.0from
activity-docs-39962
Aug 3, 2026
Merged

[Activity] Patch policies: Install new version when app is closed#49106
marko-lisica merged 3 commits into
docs-v4.91.0from
activity-docs-39962

Conversation

@marko-lisica

Copy link
Copy Markdown
Member

Added explanation for 'install_skipped_when_app_open' field in audit logs.
Comment thread docs/Contributing/reference/audit-logs.md Outdated
@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • :ai

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 4e186dab-9cf5-4a0d-a0a2-f50d47b8ac03

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch activity-docs-39962

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@marko-lisica
marko-lisica marked this pull request as ready for review July 17, 2026 11:33
Comment thread docs/Contributing/reference/audit-logs.md Outdated
Co-authored-by: Rachael Shaw <r@rachael.wtf>
@marko-lisica
marko-lisica merged commit c359870 into docs-v4.91.0 Aug 3, 2026
6 checks passed
@marko-lisica
marko-lisica deleted the activity-docs-39962 branch August 3, 2026 11:33
cdcme added a commit that referenced this pull request Aug 14, 2026
**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 -->
rachaelshaw pushed a commit that referenced this pull request Aug 25, 2026
)

**Related issue:** #51052

The `installed_software` activity reference cross-referenced the patch
policy field as `patch_only_when_closed`. The field has always been
`patch_when_closed` in GitOps and the API — the old name only ever
existed in docs. `yaml-files.md` was corrected during review; this line
was missed and carried onto this branch by #49106.

The `skipped_install` key documented on the same line is already correct
and unchanged — that name is what #51102 renames the code
to match.

Docs-only, one line.

# Checklist for submitter

## Testing
- [ ] QA'd all new/changed functionality manually
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