Skip to content

applying a control tag failure does NOT change the control failures count #1835

Open
@vjeffrey

Description

@vjeffrey

Describe the bug

We display a field "control failures" on the nodes list in the Automate UI. This correlates to node.latest_report.controls.failed.total value returned by the api.
When we filter by profile, this number changes to reflect the amount of controls that failed that were part of the selected profile. When we filter by control, this number changes to reflect the status of the selected control on that node (i.e. 1 failed, or passed/skipped).

When filtering by control tag, this number is not modified. I spent a bit of time reading the code yesterday to see about addressing this. It doesn't look like it'll be a simple fix - it basically means introducing a new depth, "control tag filter depth", which would aggregate totals across multiple profiles and controls.
Let's check with @rickmarry to see what the options are on this/brainstorm a bit with the team.

Note: this issue was called out by our CFT that are showing the feature to customers.

To Reproduce

Steps to reproduce the behavior:

  • run a scan with a profile that has control tags
  • note the total failed controls on that node object
  • filter by a control tag
  • see the number does not change

Expected behavior

Expect control failure total to reflect the amount of controls that failed on that node that matched the requested tag filter.

Screenshots

Screen Shot 2019-10-10 at 09 04 07

Versions (please complete the following information):

  • Automate Build Number: 20191007115919

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedbug 🐛Something isn't workingcompliance reportingThis issue or pull request applies to the compliance reporting part of Automate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions