Skip to content

Auto collapse Viewed files in merge request not working

Summary

In changes in a merge request where a large number of files (200+) are changed, an error occurs after clicking the Viewed property on the changed files after I refresh the page. Files with the Viewed property checked should be collapsed by default. The files at the beginning are collapsed, however from about 30 files onwards some are no longer collapsed.

Steps to reproduce

Make MR with many changed files and some first mark as Viewed and then refresh page.

Example Project

Private project

What is the current bug behavior?

The files at the beginning are collapsed, however from about 30 files onwards some are no longer collapsed.

What is the expected correct behavior?

All files marked like Viewed are collapsed.

Relevant logs and/or screenshots

Screen_Recording_2023-07-31_at_13.01.31

Directly after page refresh and scroll down.

image.png

Possible fixes

All files marked like Viewed are collapsed after page refresh.

Edited by Jay McCure