Skip to content

For 4.89 RC: Fix installed_software status in policy automation activities#48629

Merged
juan-fdz-hawa merged 1 commit into
rc-minor-fleet-v4.89.0from
cherry-pick-48579-into-4.89
Jul 2, 2026
Merged

For 4.89 RC: Fix installed_software status in policy automation activities#48629
juan-fdz-hawa merged 1 commit into
rc-minor-fleet-v4.89.0from
cherry-pick-48579-into-4.89

Conversation

@juan-fdz-hawa

Copy link
Copy Markdown
Contributor

Cherry picks #48579

Relates to #38670

The policies/:id/automation_activities endpoint derived the top-level
status for installed_software activities from the live
host_software_installs.status generated column. That column becomes NULL
when the install row is marked removed=1 (e.g. after the installer
package is edited/updated or the software is re-installed), so a
historically-successful install was miscategorized as "error".

Derive the outcome from the activity's recorded details.status instead,
which reflects the install result at the time the activity was created.
The install output still comes from host_software_installs. This applies
to both the displayed status and the ?status=error|success filter.

Also fixed alignment with the info icon on the policy automations table.
@juan-fdz-hawa juan-fdz-hawa requested review from a team as code owners July 2, 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 Jul 2, 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.89.0@bd3cc4d). Learn more about missing BASE report.

Additional details and impacted files
@@                    Coverage Diff                    @@
##             rc-minor-fleet-v4.89.0   #48629   +/-   ##
=========================================================
  Coverage                          ?   67.49%           
=========================================================
  Files                             ?     3677           
  Lines                             ?   233690           
  Branches                          ?    12266           
=========================================================
  Hits                              ?   157732           
  Misses                            ?    61807           
  Partials                          ?    14151           
Flag Coverage Δ
backend 69.05% <ø> (?)
frontend 58.95% <ø> (?)

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.

@juan-fdz-hawa juan-fdz-hawa merged commit 757bcbf into rc-minor-fleet-v4.89.0 Jul 2, 2026
34 of 35 checks passed
@juan-fdz-hawa juan-fdz-hawa deleted the cherry-pick-48579-into-4.89 branch July 2, 2026 14:12
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