Metric reports show no change until the page is refreshed
Summary
A merge request that contains a custom metric report doesn't report any change to the metric until the page is refreshed:
(The pause in the middle of the GIF is me hitting ⌘+R to refresh the page.)
Steps to reproduce
-
Create a new repository that publishes a metric report that is gauranteed to change. For example, here is the
.gitlab-ci.yml
I was using to test this behavior:create_metrics: script: - echo timestamp $(date +%s) > metrics.txt artifacts: reports: metrics: metrics.txt
-
Create a new merge request and navigate away from the merge request page.
-
Once the pipeline has finished, navigate back to the merge request page.
At this point in time, the metrics widget will incorrectly show "Metrics report did not change". Refreshing the page will cause the widget to update and correctly register a change to the metric.
Example Project
I'm not sure if this will be helpful, but here is the repository I was using to test this behavior: https://gitlab.com/nfriend/metrics-testing
What is the current bug behavior?
The metrics widget shows "Metrics report did not change" when the metric did change.
What is the expected correct behavior?
The metrics widget reports a change to the metric if the metric changes without needing to refresh the page.
Output of checks
This bug happens on GitLab.com.
Possible fixes
@matteeyah mentioned in Slack that this might be a caching issue.