{"action":"created","issue":{"url":"https://api.github.com/repos/nextcloud/android/issues/2886","repository_url":"https://api.github.com/repos/nextcloud/android","labels_url":"https://api.github.com/repos/nextcloud/android/issues/2886/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/android/issues/2886/comments","events_url":"https://api.github.com/repos/nextcloud/android/issues/2886/events","html_url":"https://github.com/nextcloud/android/pull/2886","id":350315738,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4MTk0OTky","number":2886,"title":"Sync downloaded","user":{"login":"tobiasKaminsky","id":5836855,"node_id":"MDQ6VXNlcjU4MzY4NTU=","avatar_url":"https://avatars3.githubusercontent.com/u/5836855?v=4","gravatar_id":"","url":"https://api.github.com/users/tobiasKaminsky","html_url":"https://github.com/tobiasKaminsky","followers_url":"https://api.github.com/users/tobiasKaminsky/followers","following_url":"https://api.github.com/users/tobiasKaminsky/following{/other_user}","gists_url":"https://api.github.com/users/tobiasKaminsky/gists{/gist_id}","starred_url":"https://api.github.com/users/tobiasKaminsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobiasKaminsky/subscriptions","organizations_url":"https://api.github.com/users/tobiasKaminsky/orgs","repos_url":"https://api.github.com/users/tobiasKaminsky/repos","events_url":"https://api.github.com/users/tobiasKaminsky/events{/privacy}","received_events_url":"https://api.github.com/users/tobiasKaminsky/received_events","type":"User","site_admin":false},"labels":[{"id":392413889,"node_id":"MDU6TGFiZWwzOTI0MTM4ODk=","url":"https://api.github.com/repos/nextcloud/android/labels/2.%20to%20review","name":"2. to review","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":36,"created_at":"2018-08-14T07:44:33Z","updated_at":"2018-12-15T00:06:35Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/nextcloud/android/pulls/2886","html_url":"https://github.com/nextcloud/android/pull/2886","diff_url":"https://github.com/nextcloud/android/pull/2886.diff","patch_url":"https://github.com/nextcloud/android/pull/2886.patch"},"body":"Enhancement discussed in https://github.com/nextcloud/android/issues/2718\r\n\r\n- remove \"keep available offline\"\r\n- sync job\r\n\t- only on wifi\r\n\t- syncs all downloaded files\r\n\t\t- if conflict, just do nothing\r\n\t\t- deletes local files that are not on server any longer\r\n- when entering folder with outdated downloaded file, a red icon is shown on file\r\n\r\nTODO\r\n- [x] check handling after upgrade"},"comment":{"url":"https://api.github.com/repos/nextcloud/android/issues/comments/447515037","html_url":"https://github.com/nextcloud/android/pull/2886#issuecomment-447515037","issue_url":"https://api.github.com/repos/nextcloud/android/issues/2886","id":447515037,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzUxNTAzNw==","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"created_at":"2018-12-15T00:06:35Z","updated_at":"2018-12-15T00:06:35Z","author_association":"NONE","body":"\n![Codacy](https://app.codacy.com/assets/images/favicon.png) Here is an overview of what got changed by this pull request:\n\n\n```diff\n\nIssues\n======\n+ Solved 5\n- Added 1\n           \n\nComplexity increasing per file\n==============================\n- src/main/java/com/owncloud/android/providers/FileContentProvider.java  3\n- src/main/java/com/owncloud/android/operations/SynchronizeFileOperation.java  1\n         \n\nComplexity decreasing per file\n==============================\n+ src/main/java/com/owncloud/android/ui/fragment/FileDetailFragment.java  -1\n+ src/main/java/com/owncloud/android/datamodel/OCFile.java  -2\n+ src/main/java/com/owncloud/android/jobs/OfflineSyncJob.java  -5\n+ src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java  -2\n         \n```\n\n\nSee the complete overview on [Codacy](https://app.codacy.com/app/Nextcloud/android/pullRequest?prid=2040366&bid=8389276)\n        "}}
{"actor":{"display_login":"codacy-bot"}}