{"action":"created","comment":{"url":"https://api.github.com/repos/korablique/recipe_calculator/pulls/comments/157490685","pull_request_review_id":84139919,"id":157490685,"diff_hunk":"@@ -269,6 +269,34 @@ public void run() {\n         Assert.assertEquals(foodstuff2Id[0], updatedId);\n     }\n \n+    @Test\n+    public void savesPreviouslyDeletedFoodstuff() {\n+        DatabaseWorker databaseWorker = DatabaseWorker.getInstance();\n+        Foodstuff foodstuff = new Foodstuff(\"falafel\", -1, 10, 10, 10, 100);\n+        final long[] id = {-1};\n+        databaseWorker.saveUnlistedFoodstuff(\n+                mActivityRule.getActivity(),\n+                foodstuff,\n+                new DatabaseWorker.SaveUnlistedFoodstuffCallback() {\n+            @Override\n+            public void onResult(long foodstuffId) {\n+                id[0] = foodstuffId;","path":"app/src/androidTest/java/korablique/recipecalculator/database/DatabaseWorkerTest.java","position":48,"original_position":48,"commit_id":"1eb6ceecc421a29d2d6b5ab0b712c10fe82254b6","original_commit_id":"1eb6ceecc421a29d2d6b5ab0b712c10fe82254b6","user":{"login":"blazern","id":3338378,"avatar_url":"https://avatars1.githubusercontent.com/u/3338378?v=4","gravatar_id":"","url":"https://api.github.com/users/blazern","html_url":"https://github.com/blazern","followers_url":"https://api.github.com/users/blazern/followers","following_url":"https://api.github.com/users/blazern/following{/other_user}","gists_url":"https://api.github.com/users/blazern/gists{/gist_id}","starred_url":"https://api.github.com/users/blazern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blazern/subscriptions","organizations_url":"https://api.github.com/users/blazern/orgs","repos_url":"https://api.github.com/users/blazern/repos","events_url":"https://api.github.com/users/blazern/events{/privacy}","received_events_url":"https://api.github.com/users/blazern/received_events","type":"User","site_admin":false},"body":"Тут состояние гонки - нет мьютекса, который ждал бы сохранения продукта.\r\nАйдишник скорее всего так и остаётся `-1`.","created_at":"2017-12-18T14:00:03Z","updated_at":"2017-12-18T14:00:03Z","html_url":"https://github.com/korablique/recipe_calculator/pull/27#discussion_r157490685","pull_request_url":"https://api.github.com/repos/korablique/recipe_calculator/pulls/27","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/korablique/recipe_calculator/pulls/comments/157490685"},"html":{"href":"https://github.com/korablique/recipe_calculator/pull/27#discussion_r157490685"},"pull_request":{"href":"https://api.github.com/repos/korablique/recipe_calculator/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/korablique/recipe_calculator/pulls/27","id":158904168,"html_url":"https://github.com/korablique/recipe_calculator/pull/27","diff_url":"https://github.com/korablique/recipe_calculator/pull/27.diff","patch_url":"https://github.com/korablique/recipe_calculator/pull/27.patch","issue_url":"https://api.github.com/repos/korablique/recipe_calculator/issues/27","number":27,"state":"open","locked":false,"title":"Баг: удалённые продукты помечаются как unlisted, новые продукты с так…","user":{"login":"korablique","id":23254236,"avatar_url":"https://avatars1.githubusercontent.com/u/23254236?v=4","gravatar_id":"","url":"https://api.github.com/users/korablique","html_url":"https://github.com/korablique","followers_url":"https://api.github.com/users/korablique/followers","following_url":"https://api.github.com/users/korablique/following{/other_user}","gists_url":"https://api.github.com/users/korablique/gists{/gist_id}","starred_url":"https://api.github.com/users/korablique/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korablique/subscriptions","organizations_url":"https://api.github.com/users/korablique/orgs","repos_url":"https://api.github.com/users/korablique/repos","events_url":"https://api.github.com/users/korablique/events{/privacy}","received_events_url":"https://api.github.com/users/korablique/received_events","type":"User","site_admin":false},"body":"…ими же именами и БЖУКами нельзя создать\r\n\r\nhttps://trello.com/c/YerMZBPl/","created_at":"2017-12-18T12:41:23Z","updated_at":"2017-12-18T14:00:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"66dcb33892aec85fee7b416ef8aecf475675a530","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/korablique/recipe_calculator/pulls/27/commits","review_comments_url":"https://api.github.com/repos/korablique/recipe_calculator/pulls/27/comments","review_comment_url":"https://api.github.com/repos/korablique/recipe_calculator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/korablique/recipe_calculator/issues/27/comments","statuses_url":"https://api.github.com/repos/korablique/recipe_calculator/statuses/1eb6ceecc421a29d2d6b5ab0b712c10fe82254b6","head":{"label":"korablique:unlisted-bug","ref":"unlisted-bug","sha":"1eb6ceecc421a29d2d6b5ab0b712c10fe82254b6","user":{"login":"korablique","id":23254236,"avatar_url":"https://avatars1.githubusercontent.com/u/23254236?v=4","gravatar_id":"","url":"https://api.github.com/users/korablique","html_url":"https://github.com/korablique","followers_url":"https://api.github.com/users/korablique/followers","following_url":"https://api.github.com/users/korablique/following{/other_user}","gists_url":"https://api.github.com/users/korablique/gists{/gist_id}","starred_url":"https://api.github.com/users/korablique/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korablique/subscriptions","organizations_url":"https://api.github.com/users/korablique/orgs","repos_url":"https://api.github.com/users/korablique/repos","events_url":"https://api.github.com/users/korablique/events{/privacy}","received_events_url":"https://api.github.com/users/korablique/received_events","type":"User","site_admin":false},"repo":{"id":90014568,"name":"recipe_calculator","full_name":"korablique/recipe_calculator","owner":{"login":"korablique","id":23254236,"avatar_url":"https://avatars1.githubusercontent.com/u/23254236?v=4","gravatar_id":"","url":"https://api.github.com/users/korablique","html_url":"https://github.com/korablique","followers_url":"https://api.github.com/users/korablique/followers","following_url":"https://api.github.com/users/korablique/following{/other_user}","gists_url":"https://api.github.com/users/korablique/gists{/gist_id}","starred_url":"https://api.github.com/users/korablique/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korablique/subscriptions","organizations_url":"https://api.github.com/users/korablique/orgs","repos_url":"https://api.github.com/users/korablique/repos","events_url":"https://api.github.com/users/korablique/events{/privacy}","received_events_url":"https://api.github.com/users/korablique/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/korablique/recipe_calculator","description":null,"fork":false,"url":"https://api.github.com/repos/korablique/recipe_calculator","forks_url":"https://api.github.com/repos/korablique/recipe_calculator/forks","keys_url":"https://api.github.com/repos/korablique/recipe_calculator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/korablique/recipe_calculator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/korablique/recipe_calculator/teams","hooks_url":"https://api.github.com/repos/korablique/recipe_calculator/hooks","issue_events_url":"https://api.github.com/repos/korablique/recipe_calculator/issues/events{/number}","events_url":"https://api.github.com/repos/korablique/recipe_calculator/events","assignees_url":"https://api.github.com/repos/korablique/recipe_calculator/assignees{/user}","branches_url":"https://api.github.com/repos/korablique/recipe_calculator/branches{/branch}","tags_url":"https://api.github.com/repos/korablique/recipe_calculator/tags","blobs_url":"https://api.github.com/repos/korablique/recipe_calculator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/korablique/recipe_calculator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/korablique/recipe_calculator/git/refs{/sha}","trees_url":"https://api.github.com/repos/korablique/recipe_calculator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/korablique/recipe_calculator/statuses/{sha}","languages_url":"https://api.github.com/repos/korablique/recipe_calculator/languages","stargazers_url":"https://api.github.com/repos/korablique/recipe_calculator/stargazers","contributors_url":"https://api.github.com/repos/korablique/recipe_calculator/contributors","subscribers_url":"https://api.github.com/repos/korablique/recipe_calculator/subscribers","subscription_url":"https://api.github.com/repos/korablique/recipe_calculator/subscription","commits_url":"https://api.github.com/repos/korablique/recipe_calculator/commits{/sha}","git_commits_url":"https://api.github.com/repos/korablique/recipe_calculator/git/commits{/sha}","comments_url":"https://api.github.com/repos/korablique/recipe_calculator/comments{/number}","issue_comment_url":"https://api.github.com/repos/korablique/recipe_calculator/issues/comments{/number}","contents_url":"https://api.github.com/repos/korablique/recipe_calculator/contents/{+path}","compare_url":"https://api.github.com/repos/korablique/recipe_calculator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/korablique/recipe_calculator/merges","archive_url":"https://api.github.com/repos/korablique/recipe_calculator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/korablique/recipe_calculator/downloads","issues_url":"https://api.github.com/repos/korablique/recipe_calculator/issues{/number}","pulls_url":"https://api.github.com/repos/korablique/recipe_calculator/pulls{/number}","milestones_url":"https://api.github.com/repos/korablique/recipe_calculator/milestones{/number}","notifications_url":"https://api.github.com/repos/korablique/recipe_calculator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/korablique/recipe_calculator/labels{/name}","releases_url":"https://api.github.com/repos/korablique/recipe_calculator/releases{/id}","deployments_url":"https://api.github.com/repos/korablique/recipe_calculator/deployments","created_at":"2017-05-02T09:21:28Z","updated_at":"2017-08-18T05:46:02Z","pushed_at":"2017-12-18T12:41:24Z","git_url":"git://github.com/korablique/recipe_calculator.git","ssh_url":"git@github.com:korablique/recipe_calculator.git","clone_url":"https://github.com/korablique/recipe_calculator.git","svn_url":"https://github.com/korablique/recipe_calculator","homepage":null,"size":1103,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"korablique:master","ref":"master","sha":"e49eb41b2ae6c928c5b0215b4d930c190feea5a9","user":{"login":"korablique","id":23254236,"avatar_url":"https://avatars1.githubusercontent.com/u/23254236?v=4","gravatar_id":"","url":"https://api.github.com/users/korablique","html_url":"https://github.com/korablique","followers_url":"https://api.github.com/users/korablique/followers","following_url":"https://api.github.com/users/korablique/following{/other_user}","gists_url":"https://api.github.com/users/korablique/gists{/gist_id}","starred_url":"https://api.github.com/users/korablique/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korablique/subscriptions","organizations_url":"https://api.github.com/users/korablique/orgs","repos_url":"https://api.github.com/users/korablique/repos","events_url":"https://api.github.com/users/korablique/events{/privacy}","received_events_url":"https://api.github.com/users/korablique/received_events","type":"User","site_admin":false},"repo":{"id":90014568,"name":"recipe_calculator","full_name":"korablique/recipe_calculator","owner":{"login":"korablique","id":23254236,"avatar_url":"https://avatars1.githubusercontent.com/u/23254236?v=4","gravatar_id":"","url":"https://api.github.com/users/korablique","html_url":"https://github.com/korablique","followers_url":"https://api.github.com/users/korablique/followers","following_url":"https://api.github.com/users/korablique/following{/other_user}","gists_url":"https://api.github.com/users/korablique/gists{/gist_id}","starred_url":"https://api.github.com/users/korablique/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korablique/subscriptions","organizations_url":"https://api.github.com/users/korablique/orgs","repos_url":"https://api.github.com/users/korablique/repos","events_url":"https://api.github.com/users/korablique/events{/privacy}","received_events_url":"https://api.github.com/users/korablique/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/korablique/recipe_calculator","description":null,"fork":false,"url":"https://api.github.com/repos/korablique/recipe_calculator","forks_url":"https://api.github.com/repos/korablique/recipe_calculator/forks","keys_url":"https://api.github.com/repos/korablique/recipe_calculator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/korablique/recipe_calculator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/korablique/recipe_calculator/teams","hooks_url":"https://api.github.com/repos/korablique/recipe_calculator/hooks","issue_events_url":"https://api.github.com/repos/korablique/recipe_calculator/issues/events{/number}","events_url":"https://api.github.com/repos/korablique/recipe_calculator/events","assignees_url":"https://api.github.com/repos/korablique/recipe_calculator/assignees{/user}","branches_url":"https://api.github.com/repos/korablique/recipe_calculator/branches{/branch}","tags_url":"https://api.github.com/repos/korablique/recipe_calculator/tags","blobs_url":"https://api.github.com/repos/korablique/recipe_calculator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/korablique/recipe_calculator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/korablique/recipe_calculator/git/refs{/sha}","trees_url":"https://api.github.com/repos/korablique/recipe_calculator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/korablique/recipe_calculator/statuses/{sha}","languages_url":"https://api.github.com/repos/korablique/recipe_calculator/languages","stargazers_url":"https://api.github.com/repos/korablique/recipe_calculator/stargazers","contributors_url":"https://api.github.com/repos/korablique/recipe_calculator/contributors","subscribers_url":"https://api.github.com/repos/korablique/recipe_calculator/subscribers","subscription_url":"https://api.github.com/repos/korablique/recipe_calculator/subscription","commits_url":"https://api.github.com/repos/korablique/recipe_calculator/commits{/sha}","git_commits_url":"https://api.github.com/repos/korablique/recipe_calculator/git/commits{/sha}","comments_url":"https://api.github.com/repos/korablique/recipe_calculator/comments{/number}","issue_comment_url":"https://api.github.com/repos/korablique/recipe_calculator/issues/comments{/number}","contents_url":"https://api.github.com/repos/korablique/recipe_calculator/contents/{+path}","compare_url":"https://api.github.com/repos/korablique/recipe_calculator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/korablique/recipe_calculator/merges","archive_url":"https://api.github.com/repos/korablique/recipe_calculator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/korablique/recipe_calculator/downloads","issues_url":"https://api.github.com/repos/korablique/recipe_calculator/issues{/number}","pulls_url":"https://api.github.com/repos/korablique/recipe_calculator/pulls{/number}","milestones_url":"https://api.github.com/repos/korablique/recipe_calculator/milestones{/number}","notifications_url":"https://api.github.com/repos/korablique/recipe_calculator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/korablique/recipe_calculator/labels{/name}","releases_url":"https://api.github.com/repos/korablique/recipe_calculator/releases{/id}","deployments_url":"https://api.github.com/repos/korablique/recipe_calculator/deployments","created_at":"2017-05-02T09:21:28Z","updated_at":"2017-08-18T05:46:02Z","pushed_at":"2017-12-18T12:41:24Z","git_url":"git://github.com/korablique/recipe_calculator.git","ssh_url":"git@github.com:korablique/recipe_calculator.git","clone_url":"https://github.com/korablique/recipe_calculator.git","svn_url":"https://github.com/korablique/recipe_calculator","homepage":null,"size":1103,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/korablique/recipe_calculator/pulls/27"},"html":{"href":"https://github.com/korablique/recipe_calculator/pull/27"},"issue":{"href":"https://api.github.com/repos/korablique/recipe_calculator/issues/27"},"comments":{"href":"https://api.github.com/repos/korablique/recipe_calculator/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/korablique/recipe_calculator/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/korablique/recipe_calculator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/korablique/recipe_calculator/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/korablique/recipe_calculator/statuses/1eb6ceecc421a29d2d6b5ab0b712c10fe82254b6"}},"author_association":"OWNER"}}
{"actor":{"display_login":"blazern"}}