Skip to content

🎸❤️‍🩹 Revise activity display logic to show author information when Fleet-initiated flag is set but author is not set to "Fleet" #28056

@eugkuo

Description

@eugkuo

Goal

User story
As an IT admin,
I want to see which user triggered a higher-level action that resulted in e.g. Fleet creating a policy
so that I can keep track of who is doing what and can reach out to them if I have questions.

Key result

Auto-update (patch) any software without writing custom policies

Original requests

#21825

Context

Changes

Product

  • UI changes: Figma design

    Revise activity display logic to show author information when Fleet-initiated flag is set but author is not set to "Fleet". This will be used for auto-install/patch later.

  • CLI (fleetctl) usage changes: No changes.

  • YAML changes: No changes.

  • REST API changes: No changes.

  • Fleet's agent (fleetd) changes: No changes.

  • GitOps mode changes: No changes.

  • Activity changes: No activity format changes. This is a UI-only change for display of existing activities.

  • Permissions changes: No changes.

  • Changes to paid features or tiers: N/A

  • My device and fleetdm.com/better changes: No changes

  • First draft of test plan added

  • Other reference documentation changes: No changes

  • Once shipped, requester has been notified

  • Once shipped, dogfooding issue has been filed

Engineering

  • Test plan is finalized
  • Contributor API changes: No changes
  • Feature guide changes: No changes

ℹ️  Please read this issue carefully and understand it. Pay special attention to UI wireframes, especially "dev notes".

QA

Risk assessment

  • Risk level: Low

Test plan

Make sure to go through the list and consider all events that might be related to this story, so we catch edge cases earlier.

Steps

  1. From /software/add/ add a software installer (FMA, VPP or non-exe custom installer), and set it to be installed automatically, ensure the policy is created in /policies/manage (assuming No global activity item is shown when a policy is automatically created during software installer add #28259 is resolved first, otherwise, the policy will need to be added manually for a global activity item to show up)
  2. Find the activity associated with the creation of the policy in the database and set the fleet_initiated value to true
  3. On the Global activity feed, verify that the actor for the creation/edit/deletion of the policy is the currently logged in user, not "Fleet"

Testing notes

Confirmation

  1. Engineer: Added comment to user story confirming successful completion of test plan.
  2. QA: Added comment to user story confirming successful completion of test plan.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions