{"action":"opened","number":1557,"pull_request":{"url":"https://api.github.com/repos/sonm-io/core/pulls/1557","id":218387838,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4Mzg3ODM4","html_url":"https://github.com/sonm-io/core/pull/1557","diff_url":"https://github.com/sonm-io/core/pull/1557.diff","patch_url":"https://github.com/sonm-io/core/pull/1557.patch","issue_url":"https://api.github.com/repos/sonm-io/core/issues/1557","number":1557,"state":"open","locked":false,"title":"fix: check for deal existance before processing","user":{"login":"sshaman1101","id":5667740,"node_id":"MDQ6VXNlcjU2Njc3NDA=","avatar_url":"https://avatars1.githubusercontent.com/u/5667740?v=4","gravatar_id":"","url":"https://api.github.com/users/sshaman1101","html_url":"https://github.com/sshaman1101","followers_url":"https://api.github.com/users/sshaman1101/followers","following_url":"https://api.github.com/users/sshaman1101/following{/other_user}","gists_url":"https://api.github.com/users/sshaman1101/gists{/gist_id}","starred_url":"https://api.github.com/users/sshaman1101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sshaman1101/subscriptions","organizations_url":"https://api.github.com/users/sshaman1101/orgs","repos_url":"https://api.github.com/users/sshaman1101/repos","events_url":"https://api.github.com/users/sshaman1101/events{/privacy}","received_events_url":"https://api.github.com/users/sshaman1101/received_events","type":"User","site_admin":false},"body":"We can get a race when `waitForDeal`'s timer ticks after the `waitForExternalUpdates`'s one.\r\nDeal will be traited as externally opened and its processing will be started. Then waitForDeal will make a tick, detected new deal opened for known order and add the same deal to the processing. This commit adds check that deal is not in the state storage before starting the processing routine.","created_at":"2018-09-26T16:57:12Z","updated_at":"2018-09-26T16:57:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":953294465,"node_id":"MDU6TGFiZWw5NTMyOTQ0NjU=","url":"https://api.github.com/repos/sonm-io/core/labels/P:%20high","name":"P: high","color":"d93f0b","default":false},{"id":1011943174,"node_id":"MDU6TGFiZWwxMDExOTQzMTc0","url":"https://api.github.com/repos/sonm-io/core/labels/S:%20Connor","name":"S: Connor","color":"9a05bf","default":false},{"id":655420511,"node_id":"MDU6TGFiZWw2NTU0MjA1MTE=","url":"https://api.github.com/repos/sonm-io/core/labels/T:%20bug","name":"T: bug","color":"ee0701","default":false},{"id":953295567,"node_id":"MDU6TGFiZWw5NTMyOTU1Njc=","url":"https://api.github.com/repos/sonm-io/core/labels/V:%20patch","name":"V: patch","color":"c9d356","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/sonm-io/core/pulls/1557/commits","review_comments_url":"https://api.github.com/repos/sonm-io/core/pulls/1557/comments","review_comment_url":"https://api.github.com/repos/sonm-io/core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sonm-io/core/issues/1557/comments","statuses_url":"https://api.github.com/repos/sonm-io/core/statuses/ba76bf2a32b6d03b4fad55313a2d17ce1ed8707e","head":{"label":"sonm-io:fix/connor/proper-deal-restore","ref":"fix/connor/proper-deal-restore","sha":"ba76bf2a32b6d03b4fad55313a2d17ce1ed8707e","user":{"login":"sonm-io","id":25040195,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDQwMTk1","avatar_url":"https://avatars1.githubusercontent.com/u/25040195?v=4","gravatar_id":"","url":"https://api.github.com/users/sonm-io","html_url":"https://github.com/sonm-io","followers_url":"https://api.github.com/users/sonm-io/followers","following_url":"https://api.github.com/users/sonm-io/following{/other_user}","gists_url":"https://api.github.com/users/sonm-io/gists{/gist_id}","starred_url":"https://api.github.com/users/sonm-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonm-io/subscriptions","organizations_url":"https://api.github.com/users/sonm-io/orgs","repos_url":"https://api.github.com/users/sonm-io/repos","events_url":"https://api.github.com/users/sonm-io/events{/privacy}","received_events_url":"https://api.github.com/users/sonm-io/received_events","type":"Organization","site_admin":false},"repo":{"id":98422971,"node_id":"MDEwOlJlcG9zaXRvcnk5ODQyMjk3MQ==","name":"core","full_name":"sonm-io/core","private":false,"owner":{"login":"sonm-io","id":25040195,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDQwMTk1","avatar_url":"https://avatars1.githubusercontent.com/u/25040195?v=4","gravatar_id":"","url":"https://api.github.com/users/sonm-io","html_url":"https://github.com/sonm-io","followers_url":"https://api.github.com/users/sonm-io/followers","following_url":"https://api.github.com/users/sonm-io/following{/other_user}","gists_url":"https://api.github.com/users/sonm-io/gists{/gist_id}","starred_url":"https://api.github.com/users/sonm-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonm-io/subscriptions","organizations_url":"https://api.github.com/users/sonm-io/orgs","repos_url":"https://api.github.com/users/sonm-io/repos","events_url":"https://api.github.com/users/sonm-io/events{/privacy}","received_events_url":"https://api.github.com/users/sonm-io/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/sonm-io/core","description":"Decentralized Fog Computing Platform","fork":false,"url":"https://api.github.com/repos/sonm-io/core","forks_url":"https://api.github.com/repos/sonm-io/core/forks","keys_url":"https://api.github.com/repos/sonm-io/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sonm-io/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sonm-io/core/teams","hooks_url":"https://api.github.com/repos/sonm-io/core/hooks","issue_events_url":"https://api.github.com/repos/sonm-io/core/issues/events{/number}","events_url":"https://api.github.com/repos/sonm-io/core/events","assignees_url":"https://api.github.com/repos/sonm-io/core/assignees{/user}","branches_url":"https://api.github.com/repos/sonm-io/core/branches{/branch}","tags_url":"https://api.github.com/repos/sonm-io/core/tags","blobs_url":"https://api.github.com/repos/sonm-io/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sonm-io/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sonm-io/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/sonm-io/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sonm-io/core/statuses/{sha}","languages_url":"https://api.github.com/repos/sonm-io/core/languages","stargazers_url":"https://api.github.com/repos/sonm-io/core/stargazers","contributors_url":"https://api.github.com/repos/sonm-io/core/contributors","subscribers_url":"https://api.github.com/repos/sonm-io/core/subscribers","subscription_url":"https://api.github.com/repos/sonm-io/core/subscription","commits_url":"https://api.github.com/repos/sonm-io/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/sonm-io/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/sonm-io/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/sonm-io/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/sonm-io/core/contents/{+path}","compare_url":"https://api.github.com/repos/sonm-io/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sonm-io/core/merges","archive_url":"https://api.github.com/repos/sonm-io/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sonm-io/core/downloads","issues_url":"https://api.github.com/repos/sonm-io/core/issues{/number}","pulls_url":"https://api.github.com/repos/sonm-io/core/pulls{/number}","milestones_url":"https://api.github.com/repos/sonm-io/core/milestones{/number}","notifications_url":"https://api.github.com/repos/sonm-io/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sonm-io/core/labels{/name}","releases_url":"https://api.github.com/repos/sonm-io/core/releases{/id}","deployments_url":"https://api.github.com/repos/sonm-io/core/deployments","created_at":"2017-07-26T12:57:50Z","updated_at":"2018-09-25T19:41:34Z","pushed_at":"2018-09-26T16:56:13Z","git_url":"git://github.com/sonm-io/core.git","ssh_url":"git@github.com:sonm-io/core.git","clone_url":"https://github.com/sonm-io/core.git","svn_url":"https://github.com/sonm-io/core","homepage":"https://sonm.com","size":36237,"stargazers_count":297,"watchers_count":297,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":53,"mirror_url":null,"archived":false,"open_issues_count":88,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":53,"open_issues":88,"watchers":297,"default_branch":"master"}},"base":{"label":"sonm-io:master","ref":"master","sha":"1f2155b5b07212089a4834a7e4fe626ede2eddc4","user":{"login":"sonm-io","id":25040195,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDQwMTk1","avatar_url":"https://avatars1.githubusercontent.com/u/25040195?v=4","gravatar_id":"","url":"https://api.github.com/users/sonm-io","html_url":"https://github.com/sonm-io","followers_url":"https://api.github.com/users/sonm-io/followers","following_url":"https://api.github.com/users/sonm-io/following{/other_user}","gists_url":"https://api.github.com/users/sonm-io/gists{/gist_id}","starred_url":"https://api.github.com/users/sonm-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonm-io/subscriptions","organizations_url":"https://api.github.com/users/sonm-io/orgs","repos_url":"https://api.github.com/users/sonm-io/repos","events_url":"https://api.github.com/users/sonm-io/events{/privacy}","received_events_url":"https://api.github.com/users/sonm-io/received_events","type":"Organization","site_admin":false},"repo":{"id":98422971,"node_id":"MDEwOlJlcG9zaXRvcnk5ODQyMjk3MQ==","name":"core","full_name":"sonm-io/core","private":false,"owner":{"login":"sonm-io","id":25040195,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDQwMTk1","avatar_url":"https://avatars1.githubusercontent.com/u/25040195?v=4","gravatar_id":"","url":"https://api.github.com/users/sonm-io","html_url":"https://github.com/sonm-io","followers_url":"https://api.github.com/users/sonm-io/followers","following_url":"https://api.github.com/users/sonm-io/following{/other_user}","gists_url":"https://api.github.com/users/sonm-io/gists{/gist_id}","starred_url":"https://api.github.com/users/sonm-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonm-io/subscriptions","organizations_url":"https://api.github.com/users/sonm-io/orgs","repos_url":"https://api.github.com/users/sonm-io/repos","events_url":"https://api.github.com/users/sonm-io/events{/privacy}","received_events_url":"https://api.github.com/users/sonm-io/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/sonm-io/core","description":"Decentralized Fog Computing Platform","fork":false,"url":"https://api.github.com/repos/sonm-io/core","forks_url":"https://api.github.com/repos/sonm-io/core/forks","keys_url":"https://api.github.com/repos/sonm-io/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sonm-io/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sonm-io/core/teams","hooks_url":"https://api.github.com/repos/sonm-io/core/hooks","issue_events_url":"https://api.github.com/repos/sonm-io/core/issues/events{/number}","events_url":"https://api.github.com/repos/sonm-io/core/events","assignees_url":"https://api.github.com/repos/sonm-io/core/assignees{/user}","branches_url":"https://api.github.com/repos/sonm-io/core/branches{/branch}","tags_url":"https://api.github.com/repos/sonm-io/core/tags","blobs_url":"https://api.github.com/repos/sonm-io/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sonm-io/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sonm-io/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/sonm-io/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sonm-io/core/statuses/{sha}","languages_url":"https://api.github.com/repos/sonm-io/core/languages","stargazers_url":"https://api.github.com/repos/sonm-io/core/stargazers","contributors_url":"https://api.github.com/repos/sonm-io/core/contributors","subscribers_url":"https://api.github.com/repos/sonm-io/core/subscribers","subscription_url":"https://api.github.com/repos/sonm-io/core/subscription","commits_url":"https://api.github.com/repos/sonm-io/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/sonm-io/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/sonm-io/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/sonm-io/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/sonm-io/core/contents/{+path}","compare_url":"https://api.github.com/repos/sonm-io/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sonm-io/core/merges","archive_url":"https://api.github.com/repos/sonm-io/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sonm-io/core/downloads","issues_url":"https://api.github.com/repos/sonm-io/core/issues{/number}","pulls_url":"https://api.github.com/repos/sonm-io/core/pulls{/number}","milestones_url":"https://api.github.com/repos/sonm-io/core/milestones{/number}","notifications_url":"https://api.github.com/repos/sonm-io/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sonm-io/core/labels{/name}","releases_url":"https://api.github.com/repos/sonm-io/core/releases{/id}","deployments_url":"https://api.github.com/repos/sonm-io/core/deployments","created_at":"2017-07-26T12:57:50Z","updated_at":"2018-09-25T19:41:34Z","pushed_at":"2018-09-26T16:56:13Z","git_url":"git://github.com/sonm-io/core.git","ssh_url":"git@github.com:sonm-io/core.git","clone_url":"https://github.com/sonm-io/core.git","svn_url":"https://github.com/sonm-io/core","homepage":"https://sonm.com","size":36237,"stargazers_count":297,"watchers_count":297,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":53,"mirror_url":null,"archived":false,"open_issues_count":88,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":53,"open_issues":88,"watchers":297,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sonm-io/core/pulls/1557"},"html":{"href":"https://github.com/sonm-io/core/pull/1557"},"issue":{"href":"https://api.github.com/repos/sonm-io/core/issues/1557"},"comments":{"href":"https://api.github.com/repos/sonm-io/core/issues/1557/comments"},"review_comments":{"href":"https://api.github.com/repos/sonm-io/core/pulls/1557/comments"},"review_comment":{"href":"https://api.github.com/repos/sonm-io/core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sonm-io/core/pulls/1557/commits"},"statuses":{"href":"https://api.github.com/repos/sonm-io/core/statuses/ba76bf2a32b6d03b4fad55313a2d17ce1ed8707e"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":3,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"sshaman1101"}}