Add option to disable automatic mirror syncing.#5242
Conversation
Setting the interval to 0 will disable to automatic syncing.
Codecov Report
@@ Coverage Diff @@
## master #5242 +/- ##
=========================================
Coverage ? 37.37%
=========================================
Files ? 312
Lines ? 46322
Branches ? 0
=========================================
Hits ? 17314
Misses ? 26527
Partials ? 2481
Continue to review full report at Codecov.
|
zeripath
left a comment
There was a problem hiding this comment.
hmm... why not just set the mirror interval to blank to disable automatic sync?
|
@zeripath because it is number and can not be empty, imho |
|
Ah but it's not a number - It's an interval 😉 . You have units. By using
|
|
@zeripath but in the end interval is still converted to number of seconds (golang variable is number so it can not contain anything fancy :) ) |
|
Ah, I see - using 0 makes the minimal change to the codebase. Sorry, I was coming at it from a UI view. Exposing the 0 semantics doesn't make for the nicest UI - but it could be improved later with a little switch that says autosynchronize on/off and the interval box - requiring a non-zero value if on. I'll lgtm this though in the meantime from a point of view that it works, is simple and can be improved later. |
Setting the interval to 0 will disable to automatic syncing.
Closes #3562