GitLab release evidence is not being collected if release is created via UI
Summary
(Summarize the bug encountered concisely)
As discovered in #212090 (closed), Release evidence is not generated consistently when you create a release from a tag in the UI.
Steps to reproduce
(How one can reproduce the issue - this is very important)
- Go to Project > Project Overview > Releases
- Click Create a Release button
- Fill out relevant release details
- Navigate to the created Release and see if Evidence has been collected
What is the current bug behavior?
(What actually happens)
Evidence is NOT collected
What is the expected correct behavior?
(What you should see instead)
Evidence is collected
Possible fixes
Move code related to evidence creation from the API layer(https://gitlab.com/gitlab-org/gitlab/-/blob/f79ec5e60772350abef9b494abe1f40e6dbf2cd4/lib/api/releases.rb#L70) to the service layer(https://gitlab.com/gitlab-org/gitlab/blob/master/app/services/releases/create_service.rb#L49)