Skip to content

Track code quality report views more accurately

What does this MR do?

In !49079 (merged) we implemented usage ping tracking to count how many users view the full code quality report, but it was done on component mount, meaning the event was also tracked when any other tab the pipeline page was viewed, not just the "Code Quality" tab.

This MR moves the trigger to track the event from the report component's mounted() function into an action that we call at the same time that we call the fetchReports action: if the tab is active when the page is loaded then immediately, otherwise bind an event listener to be called when it becomes the active tab.

Screenshots (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #276380 (closed)

Edited by Miranda Fluharty

Merge request reports

Loading