Pull mirroring UX: There's not enough feedback to know what's going on when there's an error after clicking Update now
Summary
Now that manual mirror updates can only happen once every 5 minutes, as a user I find it unclear what's happening when I click the Update now button.
A message appears at the top of the screen stating The repository is being updated...
but when I refresh the page the message is gone and the status shows an error:
(assume that Last successful update
shows Never
. There's an issue for that)
If I quickly add the SSH key to the source and try again, it still shows the error because 5 minutes haven't passed.
This was not an issue before !30157 (merged) because it was possible to immediately update mirroring after copying the key.
Steps to reproduce
- On the mirror target, configure pull mirroring with SSH key.
- Copy the public key.
- On the mirror source, add the key as a deploy key.
- On the mirror target, click the Update now button.
What is the current bug behavior?
The error persists and it's not clear that you have to wait 5 minutes before trying again.
What is the expected correct behavior?
The error goes away.
OR
It's clear that I have to wait five minutes for the next update to occur (preferably without having to click Update now).
Output of checks
This bug happens on GitLab.com
/cc @patrickbajao