-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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