{"action":"created","comment":{"url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/pulls/comments/59994206","id":59994206,"diff_hunk":"@@ -1,18 +1,47 @@\n+var Seneca = require('seneca')\n+var Entities = require('seneca-entity')\n+var RedisQ = require('seneca-redis-queue-transport')\n+var MsgStats = require('seneca-msgstats')\n \n-var BEANSTALK = process.env.BEANSTALK || 'localhost'\n var STATS = process.env.STATS || 'localhost'\n \n-require('seneca')()\n-  .use('level-store')\n-  .use('beanstalk-transport')\n-  .use('msgstats',{\n-    udp: { host: STATS },\n-    pin:'role:npm,info:change'\n-  })\n-  .use('../npm-update.js')\n+var opts = {\n+  redisStore: {\n+    host: 'localhost',\n+    port: 6379\n+  },\n+  redisQ: {\n+    'redis-queue': {\n+      timeout: 22222,\n+      type: 'redis-queue',\n+      host: 'localhost',\n+      port: 6379\n+    }\n+  },\n+  msgStats: {\n+    udp: { host:STATS },\n+    pin: 'role:npm, info:change'\n+  },\n+  mesh: {\n+    auto: true\n+  }\n+}\n \n-  .client({ host:BEANSTALK, pin:'role:npm,info:change',type:'beanstalk' })\n+var Service = Seneca(opts.seneca)\n+var Consumer = Seneca(opts.seneca)\n \n-  .listen(44005)\n-  .repl(43005)\n+// Send to Q\n+Service.use(Entities)\n+       .use(RedisQ, opts.redisQ)\n+       .use(MsgStats, opts.msgStats)\n+       .use('../npm-update.js')\n+       .listen(44005)\n+       .repl(43005)\n+       .client({pin:'role:npm,info:change',type:'redis-queue'})\n \n+//Handle Packages Coming Off Q --- Needs to move elsewhere (nodezoo-info?)\n+Consumer.use(Entities)","path":"srv/update-dev.js","position":55,"original_position":55,"commit_id":"20f3178e2829417d921927ef11fa58f7ef77e70d","original_commit_id":"20f3178e2829417d921927ef11fa58f7ef77e70d","user":{"login":"mcdonnelldean","id":3625961,"avatar_url":"https://avatars.githubusercontent.com/u/3625961?v=3","gravatar_id":"","url":"https://api.github.com/users/mcdonnelldean","html_url":"https://github.com/mcdonnelldean","followers_url":"https://api.github.com/users/mcdonnelldean/followers","following_url":"https://api.github.com/users/mcdonnelldean/following{/other_user}","gists_url":"https://api.github.com/users/mcdonnelldean/gists{/gist_id}","starred_url":"https://api.github.com/users/mcdonnelldean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcdonnelldean/subscriptions","organizations_url":"https://api.github.com/users/mcdonnelldean/orgs","repos_url":"https://api.github.com/users/mcdonnelldean/repos","events_url":"https://api.github.com/users/mcdonnelldean/events{/privacy}","received_events_url":"https://api.github.com/users/mcdonnelldean/received_events","type":"User","site_admin":false},"body":"Drop, move listen to service.","created_at":"2016-04-17T22:07:21Z","updated_at":"2016-04-17T22:07:21Z","html_url":"https://github.com/nodezoo/nodezoo-npm-update/pull/8#discussion_r59994206","pull_request_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/pulls/comments/59994206"},"html":{"href":"https://github.com/nodezoo/nodezoo-npm-update/pull/8#discussion_r59994206"},"pull_request":{"href":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/pulls/8","id":66715751,"html_url":"https://github.com/nodezoo/nodezoo-npm-update/pull/8","diff_url":"https://github.com/nodezoo/nodezoo-npm-update/pull/8.diff","patch_url":"https://github.com/nodezoo/nodezoo-npm-update/pull/8.patch","issue_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/issues/8","number":8,"state":"open","locked":false,"title":"Rewrote to use redis-queue-transport","user":{"login":"Georgette","id":3783903,"avatar_url":"https://avatars.githubusercontent.com/u/3783903?v=3","gravatar_id":"","url":"https://api.github.com/users/Georgette","html_url":"https://github.com/Georgette","followers_url":"https://api.github.com/users/Georgette/followers","following_url":"https://api.github.com/users/Georgette/following{/other_user}","gists_url":"https://api.github.com/users/Georgette/gists{/gist_id}","starred_url":"https://api.github.com/users/Georgette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Georgette/subscriptions","organizations_url":"https://api.github.com/users/Georgette/orgs","repos_url":"https://api.github.com/users/Georgette/repos","events_url":"https://api.github.com/users/Georgette/events{/privacy}","received_events_url":"https://api.github.com/users/Georgette/received_events","type":"User","site_admin":false},"body":"Notes:\r\n\r\n1. I'm npm-linking @pelger seneca-redis-queue-transport [pull request](https://github.com/senecajs/seneca-redis-queue-transport/pull/19) locally \r\n\r\n2. May need better error handling than what I've done. Please advise\r\n\r\n4. consumer.js should go elsewhere, but was using it for testing purposes until I was sure of its home (node zoo-info?). To test without node zoo-system integration, just comment out the seneca.act, and log instead.\r\n\r\n5. registrySubscribe is working great --- I've been running it locally for 24 hours without issue. However, the pattern {role:info, res:part} seems to only be updating the package name in elastic search. This might be intended (see search screen below).\r\n<img width=\"802\" alt=\"screen shot 2016-04-15 at 6 53 23 pm\" src=\"https://cloud.githubusercontent.com/assets/3783903/14576897/77f722f2-033b-11e6-920f-dd978abd0ce7.png\">\r\n\r\n\r\n6. registryDownload is problematic, and I really think its a mesh issue. Things go into the queue, and off of it nicely, but the message send off to node zoo-info is failing (but not failing on registrySubscribe, which the only difference between the two are load). I need help navigating seneca logging. \r\n\r\n7. There are npm scripts in package.json for all 3 available commands. I didn't add them to readme yet, because it may or may not how we want to set this up. \r\n\r\nCommands are:  \r\n\r\nTo monitor package changes on NPM:\r\n``` npm run registrySubscribe```\r\n\r\nTo Stop monitoring:\r\n``` npm run registryUnsubscribe```\r\n\r\nTo grab the whole registry (warning, this pulls 260, 000 records )\r\n``` npm run registryDownload ```","created_at":"2016-04-15T22:55:16Z","updated_at":"2016-04-17T22:07:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1a23e28ec4050d7f859ce7f3d1bc57450d611128","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/pulls/8/commits","review_comments_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/pulls/8/comments","review_comment_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/issues/8/comments","statuses_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/statuses/20f3178e2829417d921927ef11fa58f7ef77e70d","head":{"label":"Georgette:master","ref":"master","sha":"20f3178e2829417d921927ef11fa58f7ef77e70d","user":{"login":"Georgette","id":3783903,"avatar_url":"https://avatars.githubusercontent.com/u/3783903?v=3","gravatar_id":"","url":"https://api.github.com/users/Georgette","html_url":"https://github.com/Georgette","followers_url":"https://api.github.com/users/Georgette/followers","following_url":"https://api.github.com/users/Georgette/following{/other_user}","gists_url":"https://api.github.com/users/Georgette/gists{/gist_id}","starred_url":"https://api.github.com/users/Georgette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Georgette/subscriptions","organizations_url":"https://api.github.com/users/Georgette/orgs","repos_url":"https://api.github.com/users/Georgette/repos","events_url":"https://api.github.com/users/Georgette/events{/privacy}","received_events_url":"https://api.github.com/users/Georgette/received_events","type":"User","site_admin":false},"repo":{"id":55999970,"name":"nodezoo-npm-update","full_name":"Georgette/nodezoo-npm-update","owner":{"login":"Georgette","id":3783903,"avatar_url":"https://avatars.githubusercontent.com/u/3783903?v=3","gravatar_id":"","url":"https://api.github.com/users/Georgette","html_url":"https://github.com/Georgette","followers_url":"https://api.github.com/users/Georgette/followers","following_url":"https://api.github.com/users/Georgette/following{/other_user}","gists_url":"https://api.github.com/users/Georgette/gists{/gist_id}","starred_url":"https://api.github.com/users/Georgette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Georgette/subscriptions","organizations_url":"https://api.github.com/users/Georgette/orgs","repos_url":"https://api.github.com/users/Georgette/repos","events_url":"https://api.github.com/users/Georgette/events{/privacy}","received_events_url":"https://api.github.com/users/Georgette/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Georgette/nodezoo-npm-update","description":"nodezoo-npm-update","fork":true,"url":"https://api.github.com/repos/Georgette/nodezoo-npm-update","forks_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/forks","keys_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/teams","hooks_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/hooks","issue_events_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/issues/events{/number}","events_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/events","assignees_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/assignees{/user}","branches_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/branches{/branch}","tags_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/tags","blobs_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/git/refs{/sha}","trees_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/statuses/{sha}","languages_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/languages","stargazers_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/stargazers","contributors_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/contributors","subscribers_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/subscribers","subscription_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/subscription","commits_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/commits{/sha}","git_commits_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/git/commits{/sha}","comments_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/comments{/number}","issue_comment_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/issues/comments{/number}","contents_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/contents/{+path}","compare_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/merges","archive_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/downloads","issues_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/issues{/number}","pulls_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/pulls{/number}","milestones_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/milestones{/number}","notifications_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/labels{/name}","releases_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/releases{/id}","deployments_url":"https://api.github.com/repos/Georgette/nodezoo-npm-update/deployments","created_at":"2016-04-11T19:12:42Z","updated_at":"2016-04-11T19:12:43Z","pushed_at":"2016-04-15T22:43:18Z","git_url":"git://github.com/Georgette/nodezoo-npm-update.git","ssh_url":"git@github.com:Georgette/nodezoo-npm-update.git","clone_url":"https://github.com/Georgette/nodezoo-npm-update.git","svn_url":"https://github.com/Georgette/nodezoo-npm-update","homepage":null,"size":731,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"nodezoo:master","ref":"master","sha":"3a86bd6c8bf8f60306d7d4ecfe4a25bbf6bfbd4a","user":{"login":"nodezoo","id":2903118,"avatar_url":"https://avatars.githubusercontent.com/u/2903118?v=3","gravatar_id":"","url":"https://api.github.com/users/nodezoo","html_url":"https://github.com/nodezoo","followers_url":"https://api.github.com/users/nodezoo/followers","following_url":"https://api.github.com/users/nodezoo/following{/other_user}","gists_url":"https://api.github.com/users/nodezoo/gists{/gist_id}","starred_url":"https://api.github.com/users/nodezoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodezoo/subscriptions","organizations_url":"https://api.github.com/users/nodezoo/orgs","repos_url":"https://api.github.com/users/nodezoo/repos","events_url":"https://api.github.com/users/nodezoo/events{/privacy}","received_events_url":"https://api.github.com/users/nodezoo/received_events","type":"Organization","site_admin":false},"repo":{"id":24316474,"name":"nodezoo-npm-update","full_name":"nodezoo/nodezoo-npm-update","owner":{"login":"nodezoo","id":2903118,"avatar_url":"https://avatars.githubusercontent.com/u/2903118?v=3","gravatar_id":"","url":"https://api.github.com/users/nodezoo","html_url":"https://github.com/nodezoo","followers_url":"https://api.github.com/users/nodezoo/followers","following_url":"https://api.github.com/users/nodezoo/following{/other_user}","gists_url":"https://api.github.com/users/nodezoo/gists{/gist_id}","starred_url":"https://api.github.com/users/nodezoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodezoo/subscriptions","organizations_url":"https://api.github.com/users/nodezoo/orgs","repos_url":"https://api.github.com/users/nodezoo/repos","events_url":"https://api.github.com/users/nodezoo/events{/privacy}","received_events_url":"https://api.github.com/users/nodezoo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nodezoo/nodezoo-npm-update","description":"nodezoo-npm-update","fork":false,"url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update","forks_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/forks","keys_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/teams","hooks_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/hooks","issue_events_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/issues/events{/number}","events_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/events","assignees_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/assignees{/user}","branches_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/branches{/branch}","tags_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/tags","blobs_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/git/refs{/sha}","trees_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/statuses/{sha}","languages_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/languages","stargazers_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/stargazers","contributors_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/contributors","subscribers_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/subscribers","subscription_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/subscription","commits_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/commits{/sha}","git_commits_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/git/commits{/sha}","comments_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/comments{/number}","issue_comment_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/issues/comments{/number}","contents_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/contents/{+path}","compare_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/merges","archive_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/downloads","issues_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/issues{/number}","pulls_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/pulls{/number}","milestones_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/milestones{/number}","notifications_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/labels{/name}","releases_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/releases{/id}","deployments_url":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/deployments","created_at":"2014-09-22T06:09:19Z","updated_at":"2016-03-10T13:10:12Z","pushed_at":"2016-04-15T22:55:18Z","git_url":"git://github.com/nodezoo/nodezoo-npm-update.git","ssh_url":"git@github.com:nodezoo/nodezoo-npm-update.git","clone_url":"https://github.com/nodezoo/nodezoo-npm-update.git","svn_url":"https://github.com/nodezoo/nodezoo-npm-update","homepage":null,"size":727,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":1,"forks":15,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/pulls/8"},"html":{"href":"https://github.com/nodezoo/nodezoo-npm-update/pull/8"},"issue":{"href":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/issues/8"},"comments":{"href":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/nodezoo/nodezoo-npm-update/statuses/20f3178e2829417d921927ef11fa58f7ef77e70d"}}}}