{"action":"closed","number":2417,"pull_request":{"url":"https://api.github.com/repos/syncthing/syncthing/pulls/2417","id":49096206,"html_url":"https://github.com/syncthing/syncthing/pull/2417","diff_url":"https://github.com/syncthing/syncthing/pull/2417.diff","patch_url":"https://github.com/syncthing/syncthing/pull/2417.patch","issue_url":"https://api.github.com/repos/syncthing/syncthing/issues/2417","number":2417,"state":"closed","locked":false,"title":"[WIP] Master & Slave folders","user":{"login":"Tracerneo","id":660285,"avatar_url":"https://avatars.githubusercontent.com/u/660285?v=3","gravatar_id":"","url":"https://api.github.com/users/Tracerneo","html_url":"https://github.com/Tracerneo","followers_url":"https://api.github.com/users/Tracerneo/followers","following_url":"https://api.github.com/users/Tracerneo/following{/other_user}","gists_url":"https://api.github.com/users/Tracerneo/gists{/gist_id}","starred_url":"https://api.github.com/users/Tracerneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tracerneo/subscriptions","organizations_url":"https://api.github.com/users/Tracerneo/orgs","repos_url":"https://api.github.com/users/Tracerneo/repos","events_url":"https://api.github.com/users/Tracerneo/events{/privacy}","received_events_url":"https://api.github.com/users/Tracerneo/received_events","type":"User","site_admin":false},"body":"Restructures and cleans up folder structs, renames functions and fields.\r\nFrom compatibility breaking stuff, it replaces *ro* config field with *master* and *slave* fields.\r\n\r\nParticular master/slave setting combinations should work as described:\r\n* both false – normal push&pull folder, keep in sync\r\n* master true – push-only folder, not accepting changesets\r\n* slave true – pull-only folder, copy pushing nodes, always override local changes\r\n* both true – no push nor pull, locally inform about sync status, possibly allow downloading as a mirror\r\n\r\nForce Push and Force Pull could be added and act alike Override Changes on current ReadOnly (Master) folders.\r\n\r\nTodo:\r\n- [x] rename config field *ReadOnly* to *Master*\r\n- [x] add *Slave* config field\r\n- [x] prepare code for new folder types\r\n- [ ] add Slave folders\r\n- [ ] add Snapshot (Master+Slave) folders\r\n- [ ] add Force Pull and Force Push\r\n- [ ] update web interface\r\n- [ ] update docs\r\n\r\nShould solve #62 and #1439\r\nI'm still working on it, not yet to be merged.\r\n","created_at":"2015-10-29T03:54:01Z","updated_at":"2015-11-19T13:09:00Z","closed_at":"2015-11-19T13:09:00Z","merged_at":null,"merge_commit_sha":"55789c7cad18573f2cb9258d7b819a31b4b459c9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/syncthing/syncthing/pulls/2417/commits","review_comments_url":"https://api.github.com/repos/syncthing/syncthing/pulls/2417/comments","review_comment_url":"https://api.github.com/repos/syncthing/syncthing/pulls/comments{/number}","comments_url":"https://api.github.com/repos/syncthing/syncthing/issues/2417/comments","statuses_url":"https://api.github.com/repos/syncthing/syncthing/statuses/a382c8a11e0683cba3d87bbd3a95d9df2eac16f5","head":{"label":"Tracerneo:master-slave","ref":"master-slave","sha":"a382c8a11e0683cba3d87bbd3a95d9df2eac16f5","user":{"login":"Tracerneo","id":660285,"avatar_url":"https://avatars.githubusercontent.com/u/660285?v=3","gravatar_id":"","url":"https://api.github.com/users/Tracerneo","html_url":"https://github.com/Tracerneo","followers_url":"https://api.github.com/users/Tracerneo/followers","following_url":"https://api.github.com/users/Tracerneo/following{/other_user}","gists_url":"https://api.github.com/users/Tracerneo/gists{/gist_id}","starred_url":"https://api.github.com/users/Tracerneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tracerneo/subscriptions","organizations_url":"https://api.github.com/users/Tracerneo/orgs","repos_url":"https://api.github.com/users/Tracerneo/repos","events_url":"https://api.github.com/users/Tracerneo/events{/privacy}","received_events_url":"https://api.github.com/users/Tracerneo/received_events","type":"User","site_admin":false},"repo":{"id":45156887,"name":"syncthing","full_name":"Tracerneo/syncthing","owner":{"login":"Tracerneo","id":660285,"avatar_url":"https://avatars.githubusercontent.com/u/660285?v=3","gravatar_id":"","url":"https://api.github.com/users/Tracerneo","html_url":"https://github.com/Tracerneo","followers_url":"https://api.github.com/users/Tracerneo/followers","following_url":"https://api.github.com/users/Tracerneo/following{/other_user}","gists_url":"https://api.github.com/users/Tracerneo/gists{/gist_id}","starred_url":"https://api.github.com/users/Tracerneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tracerneo/subscriptions","organizations_url":"https://api.github.com/users/Tracerneo/orgs","repos_url":"https://api.github.com/users/Tracerneo/repos","events_url":"https://api.github.com/users/Tracerneo/events{/privacy}","received_events_url":"https://api.github.com/users/Tracerneo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Tracerneo/syncthing","description":"Open Source Continuous File Synchronization","fork":true,"url":"https://api.github.com/repos/Tracerneo/syncthing","forks_url":"https://api.github.com/repos/Tracerneo/syncthing/forks","keys_url":"https://api.github.com/repos/Tracerneo/syncthing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tracerneo/syncthing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tracerneo/syncthing/teams","hooks_url":"https://api.github.com/repos/Tracerneo/syncthing/hooks","issue_events_url":"https://api.github.com/repos/Tracerneo/syncthing/issues/events{/number}","events_url":"https://api.github.com/repos/Tracerneo/syncthing/events","assignees_url":"https://api.github.com/repos/Tracerneo/syncthing/assignees{/user}","branches_url":"https://api.github.com/repos/Tracerneo/syncthing/branches{/branch}","tags_url":"https://api.github.com/repos/Tracerneo/syncthing/tags","blobs_url":"https://api.github.com/repos/Tracerneo/syncthing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tracerneo/syncthing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tracerneo/syncthing/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tracerneo/syncthing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tracerneo/syncthing/statuses/{sha}","languages_url":"https://api.github.com/repos/Tracerneo/syncthing/languages","stargazers_url":"https://api.github.com/repos/Tracerneo/syncthing/stargazers","contributors_url":"https://api.github.com/repos/Tracerneo/syncthing/contributors","subscribers_url":"https://api.github.com/repos/Tracerneo/syncthing/subscribers","subscription_url":"https://api.github.com/repos/Tracerneo/syncthing/subscription","commits_url":"https://api.github.com/repos/Tracerneo/syncthing/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tracerneo/syncthing/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tracerneo/syncthing/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tracerneo/syncthing/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tracerneo/syncthing/contents/{+path}","compare_url":"https://api.github.com/repos/Tracerneo/syncthing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tracerneo/syncthing/merges","archive_url":"https://api.github.com/repos/Tracerneo/syncthing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tracerneo/syncthing/downloads","issues_url":"https://api.github.com/repos/Tracerneo/syncthing/issues{/number}","pulls_url":"https://api.github.com/repos/Tracerneo/syncthing/pulls{/number}","milestones_url":"https://api.github.com/repos/Tracerneo/syncthing/milestones{/number}","notifications_url":"https://api.github.com/repos/Tracerneo/syncthing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tracerneo/syncthing/labels{/name}","releases_url":"https://api.github.com/repos/Tracerneo/syncthing/releases{/id}","created_at":"2015-10-29T03:05:12Z","updated_at":"2015-10-29T03:05:18Z","pushed_at":"2015-11-19T12:55:21Z","git_url":"git://github.com/Tracerneo/syncthing.git","ssh_url":"git@github.com:Tracerneo/syncthing.git","clone_url":"https://github.com/Tracerneo/syncthing.git","svn_url":"https://github.com/Tracerneo/syncthing","homepage":"http://forum.syncthing.net/","size":53235,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"syncthing:master","ref":"master","sha":"a9691dbdf4eee8a398c487ba9e1a376aa52faba1","user":{"login":"syncthing","id":7628018,"avatar_url":"https://avatars.githubusercontent.com/u/7628018?v=3","gravatar_id":"","url":"https://api.github.com/users/syncthing","html_url":"https://github.com/syncthing","followers_url":"https://api.github.com/users/syncthing/followers","following_url":"https://api.github.com/users/syncthing/following{/other_user}","gists_url":"https://api.github.com/users/syncthing/gists{/gist_id}","starred_url":"https://api.github.com/users/syncthing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syncthing/subscriptions","organizations_url":"https://api.github.com/users/syncthing/orgs","repos_url":"https://api.github.com/users/syncthing/repos","events_url":"https://api.github.com/users/syncthing/events{/privacy}","received_events_url":"https://api.github.com/users/syncthing/received_events","type":"Organization","site_admin":false},"repo":{"id":14712850,"name":"syncthing","full_name":"syncthing/syncthing","owner":{"login":"syncthing","id":7628018,"avatar_url":"https://avatars.githubusercontent.com/u/7628018?v=3","gravatar_id":"","url":"https://api.github.com/users/syncthing","html_url":"https://github.com/syncthing","followers_url":"https://api.github.com/users/syncthing/followers","following_url":"https://api.github.com/users/syncthing/following{/other_user}","gists_url":"https://api.github.com/users/syncthing/gists{/gist_id}","starred_url":"https://api.github.com/users/syncthing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syncthing/subscriptions","organizations_url":"https://api.github.com/users/syncthing/orgs","repos_url":"https://api.github.com/users/syncthing/repos","events_url":"https://api.github.com/users/syncthing/events{/privacy}","received_events_url":"https://api.github.com/users/syncthing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/syncthing/syncthing","description":"Open Source Continuous File Synchronization","fork":false,"url":"https://api.github.com/repos/syncthing/syncthing","forks_url":"https://api.github.com/repos/syncthing/syncthing/forks","keys_url":"https://api.github.com/repos/syncthing/syncthing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/syncthing/syncthing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/syncthing/syncthing/teams","hooks_url":"https://api.github.com/repos/syncthing/syncthing/hooks","issue_events_url":"https://api.github.com/repos/syncthing/syncthing/issues/events{/number}","events_url":"https://api.github.com/repos/syncthing/syncthing/events","assignees_url":"https://api.github.com/repos/syncthing/syncthing/assignees{/user}","branches_url":"https://api.github.com/repos/syncthing/syncthing/branches{/branch}","tags_url":"https://api.github.com/repos/syncthing/syncthing/tags","blobs_url":"https://api.github.com/repos/syncthing/syncthing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/syncthing/syncthing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/syncthing/syncthing/git/refs{/sha}","trees_url":"https://api.github.com/repos/syncthing/syncthing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/syncthing/syncthing/statuses/{sha}","languages_url":"https://api.github.com/repos/syncthing/syncthing/languages","stargazers_url":"https://api.github.com/repos/syncthing/syncthing/stargazers","contributors_url":"https://api.github.com/repos/syncthing/syncthing/contributors","subscribers_url":"https://api.github.com/repos/syncthing/syncthing/subscribers","subscription_url":"https://api.github.com/repos/syncthing/syncthing/subscription","commits_url":"https://api.github.com/repos/syncthing/syncthing/commits{/sha}","git_commits_url":"https://api.github.com/repos/syncthing/syncthing/git/commits{/sha}","comments_url":"https://api.github.com/repos/syncthing/syncthing/comments{/number}","issue_comment_url":"https://api.github.com/repos/syncthing/syncthing/issues/comments{/number}","contents_url":"https://api.github.com/repos/syncthing/syncthing/contents/{+path}","compare_url":"https://api.github.com/repos/syncthing/syncthing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/syncthing/syncthing/merges","archive_url":"https://api.github.com/repos/syncthing/syncthing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/syncthing/syncthing/downloads","issues_url":"https://api.github.com/repos/syncthing/syncthing/issues{/number}","pulls_url":"https://api.github.com/repos/syncthing/syncthing/pulls{/number}","milestones_url":"https://api.github.com/repos/syncthing/syncthing/milestones{/number}","notifications_url":"https://api.github.com/repos/syncthing/syncthing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/syncthing/syncthing/labels{/name}","releases_url":"https://api.github.com/repos/syncthing/syncthing/releases{/id}","created_at":"2013-11-26T09:48:21Z","updated_at":"2015-11-19T12:59:17Z","pushed_at":"2015-11-19T13:00:16Z","git_url":"git://github.com/syncthing/syncthing.git","ssh_url":"git@github.com:syncthing/syncthing.git","clone_url":"https://github.com/syncthing/syncthing.git","svn_url":"https://github.com/syncthing/syncthing","homepage":"http://forum.syncthing.net/","size":62311,"stargazers_count":10381,"watchers_count":10381,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":764,"mirror_url":null,"open_issues_count":194,"forks":764,"open_issues":194,"watchers":10381,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/2417"},"html":{"href":"https://github.com/syncthing/syncthing/pull/2417"},"issue":{"href":"https://api.github.com/repos/syncthing/syncthing/issues/2417"},"comments":{"href":"https://api.github.com/repos/syncthing/syncthing/issues/2417/comments"},"review_comments":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/2417/comments"},"review_comment":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/2417/commits"},"statuses":{"href":"https://api.github.com/repos/syncthing/syncthing/statuses/a382c8a11e0683cba3d87bbd3a95d9df2eac16f5"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":22,"review_comments":0,"commits":26,"additions":241,"deletions":335,"changed_files":14}}