{"action":"opened","number":32,"pull_request":{"url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/pulls/32","id":232684156,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyNjg0MTU2","html_url":"https://github.com/ColuLocalNetwork/inventory-manager/pull/32","diff_url":"https://github.com/ColuLocalNetwork/inventory-manager/pull/32.diff","patch_url":"https://github.com/ColuLocalNetwork/inventory-manager/pull/32.patch","issue_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/issues/32","number":32,"state":"open","locked":false,"title":"stop using websockets - still unstable","user":{"login":"LiorRabin","id":6675831,"node_id":"MDQ6VXNlcjY2NzU4MzE=","avatar_url":"https://avatars3.githubusercontent.com/u/6675831?v=4","gravatar_id":"","url":"https://api.github.com/users/LiorRabin","html_url":"https://github.com/LiorRabin","followers_url":"https://api.github.com/users/LiorRabin/followers","following_url":"https://api.github.com/users/LiorRabin/following{/other_user}","gists_url":"https://api.github.com/users/LiorRabin/gists{/gist_id}","starred_url":"https://api.github.com/users/LiorRabin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiorRabin/subscriptions","organizations_url":"https://api.github.com/users/LiorRabin/orgs","repos_url":"https://api.github.com/users/LiorRabin/repos","events_url":"https://api.github.com/users/LiorRabin/events{/privacy}","received_events_url":"https://api.github.com/users/LiorRabin/received_events","type":"User","site_admin":false},"body":"## Proposed changes\r\n\r\nThe purpose of this PR is to stop listening to contract events using websockets, and keep polling for past events in a defined interval.\r\n\r\n## Types of changes\r\n\r\nWhat types of changes does your code introduce?\r\n_Put an `x` in the boxes that apply_\r\n\r\n- [x] Bugfix (non-breaking change which fixes an issue)\r\n- [ ] New feature (non-breaking change which adds functionality)\r\n- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)\r\n\r\n## Checklist\r\n\r\n_Put an `x` in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code._\r\n\r\n- [x] I have read the [CONTRIBUTING](https://github.com/ColuLocalNetwork/inventory-manager/blob/master/.github/CONTRIBUTING.md) doc\r\n- [x] Lint and unit tests pass locally with my changes\r\n- [ ] I have added tests that prove my fix is effective or that my feature works\r\n- [ ] I have added necessary documentation (if appropriate)\r\n- [ ] Any dependent changes have been merged and published in downstream modules","created_at":"2018-11-21T14:30:47Z","updated_at":"2018-11-21T14:30:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/pulls/32/commits","review_comments_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/pulls/32/comments","review_comment_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/issues/32/comments","statuses_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/statuses/26257acd1539f9cbbea16ce4add183528aa8aa1d","head":{"label":"ColuLocalNetwork:stop-using-ws","ref":"stop-using-ws","sha":"26257acd1539f9cbbea16ce4add183528aa8aa1d","user":{"login":"ColuLocalNetwork","id":42146365,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyMTQ2MzY1","avatar_url":"https://avatars3.githubusercontent.com/u/42146365?v=4","gravatar_id":"","url":"https://api.github.com/users/ColuLocalNetwork","html_url":"https://github.com/ColuLocalNetwork","followers_url":"https://api.github.com/users/ColuLocalNetwork/followers","following_url":"https://api.github.com/users/ColuLocalNetwork/following{/other_user}","gists_url":"https://api.github.com/users/ColuLocalNetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/ColuLocalNetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColuLocalNetwork/subscriptions","organizations_url":"https://api.github.com/users/ColuLocalNetwork/orgs","repos_url":"https://api.github.com/users/ColuLocalNetwork/repos","events_url":"https://api.github.com/users/ColuLocalNetwork/events{/privacy}","received_events_url":"https://api.github.com/users/ColuLocalNetwork/received_events","type":"Organization","site_admin":false},"repo":{"id":143604801,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM2MDQ4MDE=","name":"inventory-manager","full_name":"ColuLocalNetwork/inventory-manager","private":false,"owner":{"login":"ColuLocalNetwork","id":42146365,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyMTQ2MzY1","avatar_url":"https://avatars3.githubusercontent.com/u/42146365?v=4","gravatar_id":"","url":"https://api.github.com/users/ColuLocalNetwork","html_url":"https://github.com/ColuLocalNetwork","followers_url":"https://api.github.com/users/ColuLocalNetwork/followers","following_url":"https://api.github.com/users/ColuLocalNetwork/following{/other_user}","gists_url":"https://api.github.com/users/ColuLocalNetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/ColuLocalNetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColuLocalNetwork/subscriptions","organizations_url":"https://api.github.com/users/ColuLocalNetwork/orgs","repos_url":"https://api.github.com/users/ColuLocalNetwork/repos","events_url":"https://api.github.com/users/ColuLocalNetwork/events{/privacy}","received_events_url":"https://api.github.com/users/ColuLocalNetwork/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ColuLocalNetwork/inventory-manager","description":"The inventory manager is a server implementation for community currency issuers","fork":false,"url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager","forks_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/forks","keys_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/teams","hooks_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/hooks","issue_events_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/issues/events{/number}","events_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/events","assignees_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/assignees{/user}","branches_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/branches{/branch}","tags_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/tags","blobs_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/languages","stargazers_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/stargazers","contributors_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/contributors","subscribers_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/subscribers","subscription_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/subscription","commits_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/contents/{+path}","compare_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/merges","archive_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/downloads","issues_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/issues{/number}","pulls_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/labels{/name}","releases_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/releases{/id}","deployments_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/deployments","created_at":"2018-08-05T10:52:34Z","updated_at":"2018-11-21T14:15:03Z","pushed_at":"2018-11-21T14:29:48Z","git_url":"git://github.com/ColuLocalNetwork/inventory-manager.git","ssh_url":"git@github.com:ColuLocalNetwork/inventory-manager.git","clone_url":"https://github.com/ColuLocalNetwork/inventory-manager.git","svn_url":"https://github.com/ColuLocalNetwork/inventory-manager","homepage":"","size":444,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":4,"watchers":1,"default_branch":"master"}},"base":{"label":"ColuLocalNetwork:master","ref":"master","sha":"6f0845aa3407529b39280ef226ae46f293a577b3","user":{"login":"ColuLocalNetwork","id":42146365,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyMTQ2MzY1","avatar_url":"https://avatars3.githubusercontent.com/u/42146365?v=4","gravatar_id":"","url":"https://api.github.com/users/ColuLocalNetwork","html_url":"https://github.com/ColuLocalNetwork","followers_url":"https://api.github.com/users/ColuLocalNetwork/followers","following_url":"https://api.github.com/users/ColuLocalNetwork/following{/other_user}","gists_url":"https://api.github.com/users/ColuLocalNetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/ColuLocalNetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColuLocalNetwork/subscriptions","organizations_url":"https://api.github.com/users/ColuLocalNetwork/orgs","repos_url":"https://api.github.com/users/ColuLocalNetwork/repos","events_url":"https://api.github.com/users/ColuLocalNetwork/events{/privacy}","received_events_url":"https://api.github.com/users/ColuLocalNetwork/received_events","type":"Organization","site_admin":false},"repo":{"id":143604801,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM2MDQ4MDE=","name":"inventory-manager","full_name":"ColuLocalNetwork/inventory-manager","private":false,"owner":{"login":"ColuLocalNetwork","id":42146365,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyMTQ2MzY1","avatar_url":"https://avatars3.githubusercontent.com/u/42146365?v=4","gravatar_id":"","url":"https://api.github.com/users/ColuLocalNetwork","html_url":"https://github.com/ColuLocalNetwork","followers_url":"https://api.github.com/users/ColuLocalNetwork/followers","following_url":"https://api.github.com/users/ColuLocalNetwork/following{/other_user}","gists_url":"https://api.github.com/users/ColuLocalNetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/ColuLocalNetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColuLocalNetwork/subscriptions","organizations_url":"https://api.github.com/users/ColuLocalNetwork/orgs","repos_url":"https://api.github.com/users/ColuLocalNetwork/repos","events_url":"https://api.github.com/users/ColuLocalNetwork/events{/privacy}","received_events_url":"https://api.github.com/users/ColuLocalNetwork/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ColuLocalNetwork/inventory-manager","description":"The inventory manager is a server implementation for community currency issuers","fork":false,"url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager","forks_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/forks","keys_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/teams","hooks_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/hooks","issue_events_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/issues/events{/number}","events_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/events","assignees_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/assignees{/user}","branches_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/branches{/branch}","tags_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/tags","blobs_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/languages","stargazers_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/stargazers","contributors_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/contributors","subscribers_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/subscribers","subscription_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/subscription","commits_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/contents/{+path}","compare_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/merges","archive_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/downloads","issues_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/issues{/number}","pulls_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/labels{/name}","releases_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/releases{/id}","deployments_url":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/deployments","created_at":"2018-08-05T10:52:34Z","updated_at":"2018-11-21T14:15:03Z","pushed_at":"2018-11-21T14:29:48Z","git_url":"git://github.com/ColuLocalNetwork/inventory-manager.git","ssh_url":"git@github.com:ColuLocalNetwork/inventory-manager.git","clone_url":"https://github.com/ColuLocalNetwork/inventory-manager.git","svn_url":"https://github.com/ColuLocalNetwork/inventory-manager","homepage":"","size":444,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/pulls/32"},"html":{"href":"https://github.com/ColuLocalNetwork/inventory-manager/pull/32"},"issue":{"href":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/issues/32"},"comments":{"href":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/ColuLocalNetwork/inventory-manager/statuses/26257acd1539f9cbbea16ce4add183528aa8aa1d"}},"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":0,"deletions":23,"changed_files":4}}
{"actor":{"display_login":"LiorRabin"}}