Generalize avoiding the remote file existence check in uploads
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
🔥 Problem
In Optimize the upload confirmation endpoint in th... (!171297 - merged), we updated a specific upload (virtual registry) to not HEAD the object storage file since that upload is a workhorse assisted one. Thus, when the upload confirmation endpoint is called, we are guaranteed that the remote file exists. There is no need to check it again from the rails side.
🚒 Solution
Generalize the above solution to other workhorse assisted uploads as this saves one HEAD request to object storage.
Edited by 🤖 GitLab Bot 🤖