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
Does this MR meet the acceptance criteria?
Conformity
-
Changelog entry -
Documentation (if required) -
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process.
Closes #213115 (closed)
Edited by Max Woolf