Double weight change notes on issues when weight change tracking is enabled
Summary
When applying a new weight on an issue with enabled weight change tracking two weight change notes appearing on the issue page instead of one). Database entries are ok, so this might be a caching issue.
Steps to reproduce
- Make sure feature flag for weight change tracking
track_issue_weight_change_events
is enabled - Create a new issue.
- Apply a new weight by quick action:
/weight 1
- Sometimes two weight change notes appear on the page.
Example Project
What is the current bug behavior?
Two weight change notes appear instead of one.
Reloading the page by using e.g. Shift+Ctrl+R makes the second note dissapear.
What is the expected correct behavior?
Just one weight change note appears.
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Results of GitLab application Check
Possible fixes
Resource Weight Event records on the database are ok, so this could be a caching issue.
Edited by charlie ablett