Skip to content

Add number of projects with compliance framework to usage ping

What does this MR do?

Adds the number of projects with a compliance framework assigned to the usage ping payload.

It adds a new key projects_with_compliance_framework to the usage_activity_by_stage.manage key path.

Note: This value is the count of ComplianceManagement::ComplianceFramework::ProjectSettings rather than Project.where.not(compliance_framework_settings: nil) to avoid joining tables unneccessarily since the association between Project and ComplianceManagement::ComplianceFramework::ProjectSettings is 1:1.

Screenshots

Screenshot_2020-05-13_at_16.08.56

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Closes #213115 (closed)

Edited by Max Woolf

Merge request reports