Omit label value when is empty
What does this MR do?
Omits the Label field when it doesn't have a value. This problem occurs for the following event:
{
"event": "collect_ds_analyzer_scan_java_sr_coverage_metrics_from_pipeline",
"property": "cb519dc1-2175-416a-bedf-d881e3fc5d24",
"label": "",
"value": 77
}
collect_ds_analyzer_scan_java_sr_coverage_metrics_from_pipeline is not using the label value. Although this is not breaking anything it is nicer to send it as
{
"event": "collect_ds_analyzer_scan_java_sr_coverage_metrics_from_pipeline",
"property": "cb519dc1-2175-416a-bedf-d881e3fc5d24",
"value": 77
}
What are the relevant issue numbers?
New DS analyzer: SR: Java: Track import mapping... (gitlab-org/gitlab#561261 - closed)
Does this MR meet the acceptance criteria?
-
Changelog entry added -
Documentation created/updated for GitLab EE, if necessary -
Documentation created/updated for this project, if necessary -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Job definition updated, if necessary -
Ensure the report version matches the equivalent schema version -
Conforms to the code review guidelines -
Conforms to the Go guidelines -
Security reports checked/validated by reviewer