Skip to content

Parse and store new statistics for patch policies and software automations #50760

Description

@cdcme

Related user story

#48005

Task

We need website changes to receive and store the new statistics fields:

  • numPoliciesAutomationEnabledSoftware (number)
  • fleetMaintainedAppsMacOS and fleetMaintainedAppsWindows change from an array of strings to an array of objects with name (string), patchPolicy (boolean), and softwareAutomation (boolean).

Note: Fleet servers before v4.91 keep sending the old array-of-strings shape to the same endpoint indefinitely, so these inputs need to accept both shapes (type: 'json'). A strict ['string'] or strict object type rejects one of them, and Sails turns that into a 400 for the entire usage-stats payload.

Metadata

Metadata

Assignees

Labels

#g-websiteProduct group: Website (fleetdm.com)~sub-taskA technical sub-task that is part of a story. (Not QA'd. Not estimated.)

Type

No type

Projects

Status
📨 New requests
Status
📨 Inbox

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions