{"action":"opened","number":3780,"pull_request":{"url":"https://api.github.com/repos/syncthing/syncthing/pulls/3780","id":96106820,"html_url":"https://github.com/syncthing/syncthing/pull/3780","diff_url":"https://github.com/syncthing/syncthing/pull/3780.diff","patch_url":"https://github.com/syncthing/syncthing/pull/3780.patch","issue_url":"https://api.github.com/repos/syncthing/syncthing/issues/3780","number":3780,"state":"open","locked":false,"title":"Add write-only folder type","user":{"login":"Smiley73","id":16527350,"avatar_url":"https://avatars.githubusercontent.com/u/16527350?v=3","gravatar_id":"","url":"https://api.github.com/users/Smiley73","html_url":"https://github.com/Smiley73","followers_url":"https://api.github.com/users/Smiley73/followers","following_url":"https://api.github.com/users/Smiley73/following{/other_user}","gists_url":"https://api.github.com/users/Smiley73/gists{/gist_id}","starred_url":"https://api.github.com/users/Smiley73/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Smiley73/subscriptions","organizations_url":"https://api.github.com/users/Smiley73/orgs","repos_url":"https://api.github.com/users/Smiley73/repos","events_url":"https://api.github.com/users/Smiley73/events{/privacy}","received_events_url":"https://api.github.com/users/Smiley73/received_events","type":"User","site_admin":false},"body":"### Purpose\r\n\r\nThis change adds a write-only folder type feature to Syncthing, as discussed under [8852](https://forum.syncthing.net/t/pull-only-folder-type/8592).\r\nThe wofolder type has an advanced boolean flag (DeleteLocalChanges), which enables the automatic deletion of locally detected changes. This needs to specifically be enabled. Versioning and sync conflicts work.\r\n\r\n### Testing\r\n\r\n**With DeleteLocalChanges** \r\n2 devices, 1 folder. Folder as rwfolder on one side and wofolder on the other side.\r\nEnable DeleteLocalChanges on wofolder on\r\nFile changed on wofolder. Hit sync. Warning on UI. File gets reverted to original version\r\nCreated file on wofolder. Hit sync. Warning on UI. File gets removed.\r\nCreated directory on wofolder. Hit sync. Warning on UI. Directory gets removed.\r\n\r\n**Without DeleteLocalChanges** \r\n2 devices, 1 folder. Folder as rwfolder on one side and wofolder on the other side.\r\nDisable DeleteLocalChanges on wofolder on\r\nFile changed on wofolder. Hit sync. Warning on UI. File gets reverted to original version\r\nCreated file on wofolder. Hit sync. Warning on UI. No local changes.\r\nCreated directory on wofolder. Hit sync. Warning on UI. No local changes.\r\n\r\n**Repeat all tests with versioning on & conflicts off.\r\nRepeat all tests with versioning off & conflicts on.**\r\n\r\n### Screenshots\r\n\r\n![image](https://cloud.githubusercontent.com/assets/16527350/20798546/d18ebbe0-b7a4-11e6-8d93-b25357114f93.png)\r\n\r\n### Documentation\r\n\r\nNo documentation changes done yet. Waiting for a decision on how the folder types will be called going forward.\r\n\r\n### Authorship\r\nHeiko Zuerker","created_at":"2016-12-01T15:13:06Z","updated_at":"2016-12-01T15:13:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/syncthing/syncthing/pulls/3780/commits","review_comments_url":"https://api.github.com/repos/syncthing/syncthing/pulls/3780/comments","review_comment_url":"https://api.github.com/repos/syncthing/syncthing/pulls/comments{/number}","comments_url":"https://api.github.com/repos/syncthing/syncthing/issues/3780/comments","statuses_url":"https://api.github.com/repos/syncthing/syncthing/statuses/fafdb33075d5f833a8e9cc5cf7139423d2c72d50","head":{"label":"Smiley73:pullonly","ref":"pullonly","sha":"fafdb33075d5f833a8e9cc5cf7139423d2c72d50","user":{"login":"Smiley73","id":16527350,"avatar_url":"https://avatars.githubusercontent.com/u/16527350?v=3","gravatar_id":"","url":"https://api.github.com/users/Smiley73","html_url":"https://github.com/Smiley73","followers_url":"https://api.github.com/users/Smiley73/followers","following_url":"https://api.github.com/users/Smiley73/following{/other_user}","gists_url":"https://api.github.com/users/Smiley73/gists{/gist_id}","starred_url":"https://api.github.com/users/Smiley73/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Smiley73/subscriptions","organizations_url":"https://api.github.com/users/Smiley73/orgs","repos_url":"https://api.github.com/users/Smiley73/repos","events_url":"https://api.github.com/users/Smiley73/events{/privacy}","received_events_url":"https://api.github.com/users/Smiley73/received_events","type":"User","site_admin":false},"repo":{"id":73866299,"name":"syncthing","full_name":"Smiley73/syncthing","owner":{"login":"Smiley73","id":16527350,"avatar_url":"https://avatars.githubusercontent.com/u/16527350?v=3","gravatar_id":"","url":"https://api.github.com/users/Smiley73","html_url":"https://github.com/Smiley73","followers_url":"https://api.github.com/users/Smiley73/followers","following_url":"https://api.github.com/users/Smiley73/following{/other_user}","gists_url":"https://api.github.com/users/Smiley73/gists{/gist_id}","starred_url":"https://api.github.com/users/Smiley73/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Smiley73/subscriptions","organizations_url":"https://api.github.com/users/Smiley73/orgs","repos_url":"https://api.github.com/users/Smiley73/repos","events_url":"https://api.github.com/users/Smiley73/events{/privacy}","received_events_url":"https://api.github.com/users/Smiley73/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Smiley73/syncthing","description":"Open Source Continuous File Synchronization","fork":true,"url":"https://api.github.com/repos/Smiley73/syncthing","forks_url":"https://api.github.com/repos/Smiley73/syncthing/forks","keys_url":"https://api.github.com/repos/Smiley73/syncthing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Smiley73/syncthing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Smiley73/syncthing/teams","hooks_url":"https://api.github.com/repos/Smiley73/syncthing/hooks","issue_events_url":"https://api.github.com/repos/Smiley73/syncthing/issues/events{/number}","events_url":"https://api.github.com/repos/Smiley73/syncthing/events","assignees_url":"https://api.github.com/repos/Smiley73/syncthing/assignees{/user}","branches_url":"https://api.github.com/repos/Smiley73/syncthing/branches{/branch}","tags_url":"https://api.github.com/repos/Smiley73/syncthing/tags","blobs_url":"https://api.github.com/repos/Smiley73/syncthing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Smiley73/syncthing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Smiley73/syncthing/git/refs{/sha}","trees_url":"https://api.github.com/repos/Smiley73/syncthing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Smiley73/syncthing/statuses/{sha}","languages_url":"https://api.github.com/repos/Smiley73/syncthing/languages","stargazers_url":"https://api.github.com/repos/Smiley73/syncthing/stargazers","contributors_url":"https://api.github.com/repos/Smiley73/syncthing/contributors","subscribers_url":"https://api.github.com/repos/Smiley73/syncthing/subscribers","subscription_url":"https://api.github.com/repos/Smiley73/syncthing/subscription","commits_url":"https://api.github.com/repos/Smiley73/syncthing/commits{/sha}","git_commits_url":"https://api.github.com/repos/Smiley73/syncthing/git/commits{/sha}","comments_url":"https://api.github.com/repos/Smiley73/syncthing/comments{/number}","issue_comment_url":"https://api.github.com/repos/Smiley73/syncthing/issues/comments{/number}","contents_url":"https://api.github.com/repos/Smiley73/syncthing/contents/{+path}","compare_url":"https://api.github.com/repos/Smiley73/syncthing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Smiley73/syncthing/merges","archive_url":"https://api.github.com/repos/Smiley73/syncthing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Smiley73/syncthing/downloads","issues_url":"https://api.github.com/repos/Smiley73/syncthing/issues{/number}","pulls_url":"https://api.github.com/repos/Smiley73/syncthing/pulls{/number}","milestones_url":"https://api.github.com/repos/Smiley73/syncthing/milestones{/number}","notifications_url":"https://api.github.com/repos/Smiley73/syncthing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Smiley73/syncthing/labels{/name}","releases_url":"https://api.github.com/repos/Smiley73/syncthing/releases{/id}","deployments_url":"https://api.github.com/repos/Smiley73/syncthing/deployments","created_at":"2016-11-16T00:01:26Z","updated_at":"2016-11-16T00:01:31Z","pushed_at":"2016-12-01T14:00:53Z","git_url":"git://github.com/Smiley73/syncthing.git","ssh_url":"git@github.com:Smiley73/syncthing.git","clone_url":"https://github.com/Smiley73/syncthing.git","svn_url":"https://github.com/Smiley73/syncthing","homepage":"http://forum.syncthing.net/","size":81985,"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":"e3cf7189980f04eea2eec8d9992c65095f412175","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}","deployments_url":"https://api.github.com/repos/syncthing/syncthing/deployments","created_at":"2013-11-26T09:48:21Z","updated_at":"2016-12-01T14:17:53Z","pushed_at":"2016-12-01T15:13:06Z","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":123678,"stargazers_count":14128,"watchers_count":14128,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1097,"mirror_url":null,"open_issues_count":207,"forks":1097,"open_issues":207,"watchers":14128,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/3780"},"html":{"href":"https://github.com/syncthing/syncthing/pull/3780"},"issue":{"href":"https://api.github.com/repos/syncthing/syncthing/issues/3780"},"comments":{"href":"https://api.github.com/repos/syncthing/syncthing/issues/3780/comments"},"review_comments":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/3780/comments"},"review_comment":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/3780/commits"},"statuses":{"href":"https://api.github.com/repos/syncthing/syncthing/statuses/fafdb33075d5f833a8e9cc5cf7139423d2c72d50"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":34,"additions":302,"deletions":70,"changed_files":10}}
{"actor":{"display_login":"Smiley73"}}