Description diffs system notes shows only latest change
Steps to reproduce
- Create an epic or issue
- Edit the description
- Edit the description again
- Click on any of the compare with previous version link
Result
Now if you click on any other compare link the description diff will show the same result.
Expected
Each time the compare link is clicked the desired description diff should be fetched.
Possible solution
When clicking on compare with previous version link we are updating the state for all notes instead of the one for the clicked link. So after fetching a single description version all notes are updated with the same description diff. We have to filter the request response by note.
This seems to be where the problem is coming from:
The same is happening when deleting a diff:
Feature flag
Feature that has this issue is still behind a feature flag: save_description_versions
Edited by Donald Cook