GPG status does not load on repository tree page if the last commit is very old
Summary
The GPG status badge keeps on displaying a loading spinner on the repository tree page if there have been many commits after the last one on the directory.
Steps to reproduce
- create a signed commit in a sub directory
- create many other commits in other directories
- open repository tree for the sub directory from first step
What is the current bug behavior?
loading spinner keeps showing
https://dev.gitlab.org/winh/gitlab-test/tree/gpg-test/subdir
What is the expected correct behavior?
GPG status badge is shown
https://dev.gitlab.org/winh/gitlab-test/tree/ead9c0edb8366ef28c3f78b98715697f015e8d54/subdir
Possible fixes
Load signatures for the most recent commit of the directory rather than for the current branch.
Edited by Inactive Account