Refactor gen_metrics_html.py
What does this MR do?
This MR refactor gen_metrics_html.py
to address the repetition problem (see the detailed comment here).
Specifically, it
- extracts the repeated HTML code into a separate function.
- fixes a bug where only the first record was processed, but it should have calculated the average across multiple records.
What are the relevant issue numbers?
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