{"action":"closed","number":264,"pull_request":{"url":"https://api.github.com/repos/megamsys/megam_gateway/pulls/264","id":51048462,"html_url":"https://github.com/megamsys/megam_gateway/pull/264","diff_url":"https://github.com/megamsys/megam_gateway/pull/264.diff","patch_url":"https://github.com/megamsys/megam_gateway/pull/264.patch","issue_url":"https://api.github.com/repos/megamsys/megam_gateway/issues/264","number":264,"state":"closed","locked":false,"title":"The queue publish code is cleaned up, colored debugs, preparation for 1.0 refactoring","user":{"login":"indykish","id":1402479,"avatar_url":"https://avatars.githubusercontent.com/u/1402479?v=3","gravatar_id":"","url":"https://api.github.com/users/indykish","html_url":"https://github.com/indykish","followers_url":"https://api.github.com/users/indykish/followers","following_url":"https://api.github.com/users/indykish/following{/other_user}","gists_url":"https://api.github.com/users/indykish/gists{/gist_id}","starred_url":"https://api.github.com/users/indykish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indykish/subscriptions","organizations_url":"https://api.github.com/users/indykish/orgs","repos_url":"https://api.github.com/users/indykish/repos","events_url":"https://api.github.com/users/indykish/events{/privacy}","received_events_url":"https://api.github.com/users/indykish/received_events","type":"User","site_admin":false},"body":"1. Colored debug\r\n![megam_gw](https://cloud.githubusercontent.com/assets/1402479/11234443/ef7bce5e-8ded-11e5-90e6-d366e16babc5.png)\r\n\r\n2. CloudStandupPublisher, CloudPernodePubliser replaced with AOneWasher.\r\n\r\n3. AOneWasher added which wash payload to a queue.\r\n\r\n  > If the TOSCA_TYPE is *dockercontainer* then publish req to `megam.dockerup.queue`\r\n  > If the TOSCA_TYPE isn't *dockercontainer` and **action** is `[create, delete]` then publish req to `megam.standup.queue`\r\n  > If the TOSCA_TYPE isn't *dockercontainer` and **name** is `there` then publish req to `megam.<name.domain>.queue`\r\n\r\n3. Parameters in gateway.conf renamed for the following\r\n\r\n```\r\n  val standup_queue = play.api.Play.application(play.api.Play.current).configuration.getString(\"amqp.standup.queue\").get\r\n  val standup_exchange = play.api.Play.application(play.api.Play.current).configuration.getString(\"amqp.standup.exchange\").get\r\n  val dockerup_queue = play.api.Play.application(play.api.Play.current).configuration.getString(\"amqp.dockerup.queue\").get\r\n  val dockerup_exchange = play.api.Play.application(play.api.Play.current).configuration.getString(\"amqp.dockerup.exchange\").get\r\n\r\n```\r\n\r\n5. Rearranged packages to the following\r\n\r\n```\r\napp\\Global, Hellow, MConfig (all global stuff)\r\n\r\napp\\db                   #riak\r\n\r\napp\\controllers\\billing  #billing related\r\napp\\controllers\\camp     #camp related [assemblies, assembly, components, sensors, csars]\r\napp\\controllers\\funnel\\  #post stack, funnel actions\r\napp\\controllers\\stack\\   #stacked actions for the request\r\napp\\controllers\\team     #namespace (org/domain)\r\napp\\controllers\\         #accounts, marketplaces, sshkeys, requests\r\n\r\napp\\models\\              #accounts, marketplaces, sshkeys, requests\r\napp\\models\\billing       #billing related\r\napp\\models\\tosca         #assemblies, assembly, components, sensors, csars\r\napp\\models\\team          #namespace (org/domain)\r\napp\\models\\json          #serialzationbase, accounts, marketplaces, sshkeys. requests\r\napp\\models\\json\\billing  #availableunits, balances, billedhistories, credithistories, promos, invoices, subscriptions\r\napp\\models\\json\\funnel   #funnel response\r\napp\\models\\json\\sensors  #sensors, metrics\r\napp\\models\\json\\team            #orgs, domains\r\napp\\models\\json\\tosca    #keyvalue, csar\r\napp\\models\\json\\tosca\\carton    #assemblies, assembly\r\napp\\models\\json\\tosca\\box       #components, operations, policies, repo, bindlinks\r\n\r\napp\\utils                #MKP parker, Primer\r\napp\\wash                 #payload washer to queue\r\n\r\n\r\n```\r\n\r\n\r\n","created_at":"2015-11-18T06:47:06Z","updated_at":"2015-11-18T06:47:55Z","closed_at":"2015-11-18T06:47:55Z","merged_at":"2015-11-18T06:47:55Z","merge_commit_sha":"07d2497af4ffe1924e1e1987eb9d8e2a8b70d087","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/megamsys/megam_gateway/pulls/264/commits","review_comments_url":"https://api.github.com/repos/megamsys/megam_gateway/pulls/264/comments","review_comment_url":"https://api.github.com/repos/megamsys/megam_gateway/pulls/comments{/number}","comments_url":"https://api.github.com/repos/megamsys/megam_gateway/issues/264/comments","statuses_url":"https://api.github.com/repos/megamsys/megam_gateway/statuses/30950c437d5db55b45102daf462c15b3978bf9db","head":{"label":"indykish:0.9","ref":"0.9","sha":"30950c437d5db55b45102daf462c15b3978bf9db","user":{"login":"indykish","id":1402479,"avatar_url":"https://avatars.githubusercontent.com/u/1402479?v=3","gravatar_id":"","url":"https://api.github.com/users/indykish","html_url":"https://github.com/indykish","followers_url":"https://api.github.com/users/indykish/followers","following_url":"https://api.github.com/users/indykish/following{/other_user}","gists_url":"https://api.github.com/users/indykish/gists{/gist_id}","starred_url":"https://api.github.com/users/indykish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indykish/subscriptions","organizations_url":"https://api.github.com/users/indykish/orgs","repos_url":"https://api.github.com/users/indykish/repos","events_url":"https://api.github.com/users/indykish/events{/privacy}","received_events_url":"https://api.github.com/users/indykish/received_events","type":"User","site_admin":false},"repo":{"id":18205024,"name":"megam_gateway","full_name":"indykish/megam_gateway","owner":{"login":"indykish","id":1402479,"avatar_url":"https://avatars.githubusercontent.com/u/1402479?v=3","gravatar_id":"","url":"https://api.github.com/users/indykish","html_url":"https://github.com/indykish","followers_url":"https://api.github.com/users/indykish/followers","following_url":"https://api.github.com/users/indykish/following{/other_user}","gists_url":"https://api.github.com/users/indykish/gists{/gist_id}","starred_url":"https://api.github.com/users/indykish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indykish/subscriptions","organizations_url":"https://api.github.com/users/indykish/orgs","repos_url":"https://api.github.com/users/indykish/repos","events_url":"https://api.github.com/users/indykish/events{/privacy}","received_events_url":"https://api.github.com/users/indykish/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/indykish/megam_gateway","description":"REST server which performs HMAC based authorization for any API access to \"megam\"","fork":true,"url":"https://api.github.com/repos/indykish/megam_gateway","forks_url":"https://api.github.com/repos/indykish/megam_gateway/forks","keys_url":"https://api.github.com/repos/indykish/megam_gateway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/indykish/megam_gateway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/indykish/megam_gateway/teams","hooks_url":"https://api.github.com/repos/indykish/megam_gateway/hooks","issue_events_url":"https://api.github.com/repos/indykish/megam_gateway/issues/events{/number}","events_url":"https://api.github.com/repos/indykish/megam_gateway/events","assignees_url":"https://api.github.com/repos/indykish/megam_gateway/assignees{/user}","branches_url":"https://api.github.com/repos/indykish/megam_gateway/branches{/branch}","tags_url":"https://api.github.com/repos/indykish/megam_gateway/tags","blobs_url":"https://api.github.com/repos/indykish/megam_gateway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/indykish/megam_gateway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/indykish/megam_gateway/git/refs{/sha}","trees_url":"https://api.github.com/repos/indykish/megam_gateway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/indykish/megam_gateway/statuses/{sha}","languages_url":"https://api.github.com/repos/indykish/megam_gateway/languages","stargazers_url":"https://api.github.com/repos/indykish/megam_gateway/stargazers","contributors_url":"https://api.github.com/repos/indykish/megam_gateway/contributors","subscribers_url":"https://api.github.com/repos/indykish/megam_gateway/subscribers","subscription_url":"https://api.github.com/repos/indykish/megam_gateway/subscription","commits_url":"https://api.github.com/repos/indykish/megam_gateway/commits{/sha}","git_commits_url":"https://api.github.com/repos/indykish/megam_gateway/git/commits{/sha}","comments_url":"https://api.github.com/repos/indykish/megam_gateway/comments{/number}","issue_comment_url":"https://api.github.com/repos/indykish/megam_gateway/issues/comments{/number}","contents_url":"https://api.github.com/repos/indykish/megam_gateway/contents/{+path}","compare_url":"https://api.github.com/repos/indykish/megam_gateway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/indykish/megam_gateway/merges","archive_url":"https://api.github.com/repos/indykish/megam_gateway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/indykish/megam_gateway/downloads","issues_url":"https://api.github.com/repos/indykish/megam_gateway/issues{/number}","pulls_url":"https://api.github.com/repos/indykish/megam_gateway/pulls{/number}","milestones_url":"https://api.github.com/repos/indykish/megam_gateway/milestones{/number}","notifications_url":"https://api.github.com/repos/indykish/megam_gateway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/indykish/megam_gateway/labels{/name}","releases_url":"https://api.github.com/repos/indykish/megam_gateway/releases{/id}","created_at":"2014-03-28T08:03:12Z","updated_at":"2015-11-06T09:12:43Z","pushed_at":"2015-11-18T06:42:03Z","git_url":"git://github.com/indykish/megam_gateway.git","ssh_url":"git@github.com:indykish/megam_gateway.git","clone_url":"https://github.com/indykish/megam_gateway.git","svn_url":"https://github.com/indykish/megam_gateway","homepage":null,"size":3841,"stargazers_count":1,"watchers_count":1,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"0.9"}},"base":{"label":"megamsys:0.9","ref":"0.9","sha":"f13391bbadb67bc97446ac19223616d43dbb7854","user":{"login":"megamsys","id":5526825,"avatar_url":"https://avatars.githubusercontent.com/u/5526825?v=3","gravatar_id":"","url":"https://api.github.com/users/megamsys","html_url":"https://github.com/megamsys","followers_url":"https://api.github.com/users/megamsys/followers","following_url":"https://api.github.com/users/megamsys/following{/other_user}","gists_url":"https://api.github.com/users/megamsys/gists{/gist_id}","starred_url":"https://api.github.com/users/megamsys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/megamsys/subscriptions","organizations_url":"https://api.github.com/users/megamsys/orgs","repos_url":"https://api.github.com/users/megamsys/repos","events_url":"https://api.github.com/users/megamsys/events{/privacy}","received_events_url":"https://api.github.com/users/megamsys/received_events","type":"Organization","site_admin":false},"repo":{"id":9075226,"name":"megam_gateway","full_name":"megamsys/megam_gateway","owner":{"login":"megamsys","id":5526825,"avatar_url":"https://avatars.githubusercontent.com/u/5526825?v=3","gravatar_id":"","url":"https://api.github.com/users/megamsys","html_url":"https://github.com/megamsys","followers_url":"https://api.github.com/users/megamsys/followers","following_url":"https://api.github.com/users/megamsys/following{/other_user}","gists_url":"https://api.github.com/users/megamsys/gists{/gist_id}","starred_url":"https://api.github.com/users/megamsys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/megamsys/subscriptions","organizations_url":"https://api.github.com/users/megamsys/orgs","repos_url":"https://api.github.com/users/megamsys/repos","events_url":"https://api.github.com/users/megamsys/events{/privacy}","received_events_url":"https://api.github.com/users/megamsys/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/megamsys/megam_gateway","description":"REST API server with built in auth,  interface to Riak","fork":false,"url":"https://api.github.com/repos/megamsys/megam_gateway","forks_url":"https://api.github.com/repos/megamsys/megam_gateway/forks","keys_url":"https://api.github.com/repos/megamsys/megam_gateway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/megamsys/megam_gateway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/megamsys/megam_gateway/teams","hooks_url":"https://api.github.com/repos/megamsys/megam_gateway/hooks","issue_events_url":"https://api.github.com/repos/megamsys/megam_gateway/issues/events{/number}","events_url":"https://api.github.com/repos/megamsys/megam_gateway/events","assignees_url":"https://api.github.com/repos/megamsys/megam_gateway/assignees{/user}","branches_url":"https://api.github.com/repos/megamsys/megam_gateway/branches{/branch}","tags_url":"https://api.github.com/repos/megamsys/megam_gateway/tags","blobs_url":"https://api.github.com/repos/megamsys/megam_gateway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/megamsys/megam_gateway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/megamsys/megam_gateway/git/refs{/sha}","trees_url":"https://api.github.com/repos/megamsys/megam_gateway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/megamsys/megam_gateway/statuses/{sha}","languages_url":"https://api.github.com/repos/megamsys/megam_gateway/languages","stargazers_url":"https://api.github.com/repos/megamsys/megam_gateway/stargazers","contributors_url":"https://api.github.com/repos/megamsys/megam_gateway/contributors","subscribers_url":"https://api.github.com/repos/megamsys/megam_gateway/subscribers","subscription_url":"https://api.github.com/repos/megamsys/megam_gateway/subscription","commits_url":"https://api.github.com/repos/megamsys/megam_gateway/commits{/sha}","git_commits_url":"https://api.github.com/repos/megamsys/megam_gateway/git/commits{/sha}","comments_url":"https://api.github.com/repos/megamsys/megam_gateway/comments{/number}","issue_comment_url":"https://api.github.com/repos/megamsys/megam_gateway/issues/comments{/number}","contents_url":"https://api.github.com/repos/megamsys/megam_gateway/contents/{+path}","compare_url":"https://api.github.com/repos/megamsys/megam_gateway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/megamsys/megam_gateway/merges","archive_url":"https://api.github.com/repos/megamsys/megam_gateway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/megamsys/megam_gateway/downloads","issues_url":"https://api.github.com/repos/megamsys/megam_gateway/issues{/number}","pulls_url":"https://api.github.com/repos/megamsys/megam_gateway/pulls{/number}","milestones_url":"https://api.github.com/repos/megamsys/megam_gateway/milestones{/number}","notifications_url":"https://api.github.com/repos/megamsys/megam_gateway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/megamsys/megam_gateway/labels{/name}","releases_url":"https://api.github.com/repos/megamsys/megam_gateway/releases{/id}","created_at":"2013-03-28T10:55:24Z","updated_at":"2015-11-05T15:23:49Z","pushed_at":"2015-11-18T06:47:55Z","git_url":"git://github.com/megamsys/megam_gateway.git","ssh_url":"git@github.com:megamsys/megam_gateway.git","clone_url":"https://github.com/megamsys/megam_gateway.git","svn_url":"https://github.com/megamsys/megam_gateway","homepage":"https://www.megam.io","size":5337,"stargazers_count":15,"watchers_count":15,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":6,"forks":19,"open_issues":6,"watchers":15,"default_branch":"0.9"}},"_links":{"self":{"href":"https://api.github.com/repos/megamsys/megam_gateway/pulls/264"},"html":{"href":"https://github.com/megamsys/megam_gateway/pull/264"},"issue":{"href":"https://api.github.com/repos/megamsys/megam_gateway/issues/264"},"comments":{"href":"https://api.github.com/repos/megamsys/megam_gateway/issues/264/comments"},"review_comments":{"href":"https://api.github.com/repos/megamsys/megam_gateway/pulls/264/comments"},"review_comment":{"href":"https://api.github.com/repos/megamsys/megam_gateway/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/megamsys/megam_gateway/pulls/264/commits"},"statuses":{"href":"https://api.github.com/repos/megamsys/megam_gateway/statuses/30950c437d5db55b45102daf462c15b3978bf9db"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"indykish","id":1402479,"avatar_url":"https://avatars.githubusercontent.com/u/1402479?v=3","gravatar_id":"","url":"https://api.github.com/users/indykish","html_url":"https://github.com/indykish","followers_url":"https://api.github.com/users/indykish/followers","following_url":"https://api.github.com/users/indykish/following{/other_user}","gists_url":"https://api.github.com/users/indykish/gists{/gist_id}","starred_url":"https://api.github.com/users/indykish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indykish/subscriptions","organizations_url":"https://api.github.com/users/indykish/orgs","repos_url":"https://api.github.com/users/indykish/repos","events_url":"https://api.github.com/users/indykish/events{/privacy}","received_events_url":"https://api.github.com/users/indykish/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":3,"additions":1517,"deletions":3878,"changed_files":196}}