Timestamp shown when replacing mirror URL refers to the old location
Summary
When replacing the location a project is mirrored from the timestamps shown will refer to the old location.
Steps to reproduce
- set up a repository that mirrors another one
- let it sync successfully
- delete that mirror location
- create another location to mirror from (my customer has moved his repo to another server)
What is the current bug behavior?
Right after creation of the new location it will show
- Last update attempt: 15 minutes ago
- Last successful update: 15 minutes ago
This is somewhat correct but misleading, as the repository was synced at that time, but it shows this for the new URL, which has never synced.
After a few minutes the repo was actually synced and then it showed
- Last update attempt: just now
- Last successful update: 20 minutes ago
- Error
Now it looks like there has been a successful sync for the new location, but currently it fails. In fact it had never worked for that one because there was a permission error in my case.
What is the expected correct behavior?
When the new location is shown the timestamp columns should show "never".
Results of GitLab environment info
Gitlab v16.6.0-ee