GPG status does not load on repository blob / file page for merge commits
Summary
The GPG status badge keeps on displaying a loading spinner on the repository blog / file page for some commits.
Steps to reproduce
- merge branch with conflicts
- resolve conflicts and sign merge commit
- open file that had conflicts in repository view
Example project
What is the current bug behavior?
loading spinner keeps spinning
What is the expected correct behavior?
badge is loaded:
Possible fixes
The corresponding commit is missing from the backend response:
fetch('https://dev.gitlab.org/gitlab/gitlab-ee/commits/3d42bbdc13895d6ec61aace9e3f503bb36d36a67/app/assets/javascripts/pipelines/components/graph/graph_component.vue/signatures')
.then(res => res.json())
.then(({signatures}) => console.log(signatures.find(({commit_sha}) => commit_sha === '3d42bbdc13895d6ec61aace9e3f503bb36d36a67')))
For other commits it is included:
fetch('https://dev.gitlab.org/gitlab/gitlab-ee/commits/6f5bf2cfe08b1ed621c2c5dfc0e9f8ed530ce1b9/app/assets/javascripts/pipelines/components/graph/graph_component.vue/signatures')
.then(res => res.json())
.then(({signatures}) => console.log(signatures.find(({commit_sha}) => commit_sha === '6f5bf2cfe08b1ed621c2c5dfc0e9f8ed530ce1b9')))
It is happening on merge commits.
Edited by Inactive Account