Navigate to subfolder shows parent children folders in subfolder view
Summary
If you are in a folder with a lot of files, navigate to a subfolder before files list is fully loaded shows you rest of files (not yet loaded in parent view) in child view and if commit details aren't loaded, child folder's commit details are never loaded.
Steps to reproduce
- Create a repo with more than a hundred of sub-repositories(cf example below)
- Navigate to a sub-folder before list of files is fully loaded
- If the bug doesn't come out, go back to root, refresh and try again.
Example Project
https://gitlab.com/remyj38/big_repo/-/tree/master/subfolder/
What is the current bug behavior?
Parent's children items (folders/files) shown in child folder
Also, if commit details for each file of parent aren't loaded before navigate to child folder, child folder commits details never loaded
What is the expected correct behavior?
Correct list of items and commit details
Output of checks
This bug happens on GitLab.com
Discovered on self-hosted instance of gitlab-ce 12.8.6
Results of GitLab environment info
This bug happens on GitLab.com
Results of GitLab application Check
This bug happens on GitLab.com
Possible fixes
Parent folder items list continue to load (25 items per 25 items) even when your navigate to an other folder.