-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
cmd/syncthing, lib/config: Pause/resume all devices whithout argument #3989
Conversation
What is the state of this PR? |
@st-review lgtm |
@AudriusButkevicius: Noted! Need another LGTM or explicit merge command. |
|
||
cfg, ok := s.cfg.Devices()[device] | ||
if !ok { | ||
http.Error(w, "not found", http.StatusNotFound) |
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.
Potential missing return here?
cmd/syncthing/gui.go
Outdated
} else { | ||
device, err := protocol.DeviceIDFromString(deviceStr) | ||
if err != nil { | ||
|
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.
(spurious blank line)
@st-jenkins retest this please |
@st-review lgtm |
GitHub-Pull-Request: #3989 LGTM: AudriusButkevicius, calmh
GitHub-Pull-Request: #305
Purpose
This allows to pause/resume all devices at once via API, essentially pausing/resuming syncthing. Use case: https://forum.syncthing.net/t/syncthing-server-client-and-backup-strategy-with-rsnapshot/9256
Testing
Just manual testing.
Documentation
Definitely needs an update - will do, but not tonight.