Skip to content
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

Closed
wants to merge 3 commits into from

Conversation

imsodin
Copy link
Member

@imsodin imsodin commented Feb 14, 2017

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.

@imsodin
Copy link
Member Author

imsodin commented Mar 1, 2017

What is the state of this PR?

@AudriusButkevicius
Copy link
Member

@st-review lgtm

@st-review
Copy link

@AudriusButkevicius: Noted! Need another LGTM or explicit merge command.


cfg, ok := s.cfg.Devices()[device]
if !ok {
http.Error(w, "not found", http.StatusNotFound)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Potential missing return here?

} else {
device, err := protocol.DeviceIDFromString(deviceStr)
if err != nil {

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(spurious blank line)

@calmh
Copy link
Member

calmh commented Mar 4, 2017

@st-jenkins retest this please

@calmh
Copy link
Member

calmh commented Mar 4, 2017

@st-review lgtm

@st-review
Copy link

👌 Merged as 416811a. Thanks, @imsodin!

@st-review st-review closed this Mar 4, 2017
st-review pushed a commit that referenced this pull request Mar 4, 2017
GitHub-Pull-Request: #3989
LGTM: AudriusButkevicius, calmh
imsodin added a commit to imsodin/docs that referenced this pull request Mar 4, 2017
st-review pushed a commit to syncthing/docs that referenced this pull request Mar 31, 2017
@st-review st-review added the pr-merged Legacy label used in the past for pull requests merged to the main tree label Jan 15, 2018
@st-review st-review added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Jul 15, 2018
@syncthing syncthing locked and limited conversation to collaborators Jul 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion pr-merged Legacy label used in the past for pull requests merged to the main tree
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants