{"action":"created","issue":{"url":"https://api.github.com/repos/Katello/katello/issues/7235","repository_url":"https://api.github.com/repos/Katello/katello","labels_url":"https://api.github.com/repos/Katello/katello/issues/7235/labels{/name}","comments_url":"https://api.github.com/repos/Katello/katello/issues/7235/comments","events_url":"https://api.github.com/repos/Katello/katello/issues/7235/events","html_url":"https://github.com/Katello/katello/pull/7235","id":304588728,"number":7235,"title":"Fixes #22853: Allow add entitlements to manifest","user":{"login":"akofink","id":761923,"avatar_url":"https://avatars2.githubusercontent.com/u/761923?v=4","gravatar_id":"","url":"https://api.github.com/users/akofink","html_url":"https://github.com/akofink","followers_url":"https://api.github.com/users/akofink/followers","following_url":"https://api.github.com/users/akofink/following{/other_user}","gists_url":"https://api.github.com/users/akofink/gists{/gist_id}","starred_url":"https://api.github.com/users/akofink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akofink/subscriptions","organizations_url":"https://api.github.com/users/akofink/orgs","repos_url":"https://api.github.com/users/akofink/repos","events_url":"https://api.github.com/users/akofink/events{/privacy}","received_events_url":"https://api.github.com/users/akofink/received_events","type":"User","site_admin":false},"labels":[{"id":117819343,"url":"https://api.github.com/repos/Katello/katello/labels/Needs%20testing","name":"Needs testing","color":"fbca04","default":false},{"id":117819415,"url":"https://api.github.com/repos/Katello/katello/labels/Not%20yet%20reviewed","name":"Not yet reviewed","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-03-13T00:37:10Z","updated_at":"2018-03-26T20:37:12Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/Katello/katello/pulls/7235","html_url":"https://github.com/Katello/katello/pull/7235","diff_url":"https://github.com/Katello/katello/pull/7235.diff","patch_url":"https://github.com/Katello/katello/pull/7235.patch"},"body":"Allow adding entitlements to your manifest from Katello!\r\n\r\n```js\r\nGET organizations/1/select\r\n\r\nPOST katello/api/v2/organizations/1/upstream_subscriptions\r\n[\r\n  {\r\n    \"pool_id\": \"8a85f98c60c4fc0e0160c50f7eea0411\",\r\n    \"quantity\": 1\r\n  },\r\n  ...\r\n]\r\n```\r\n\r\n~WIP for:~\r\n\r\n- [x] tests\r\n- [x] ForemanTasks\r\n\r\nRequires https://github.com/theforeman/foreman-tasks/pull/324"},"comment":{"url":"https://api.github.com/repos/Katello/katello/issues/comments/376303375","html_url":"https://github.com/Katello/katello/pull/7235#issuecomment-376303375","issue_url":"https://api.github.com/repos/Katello/katello/issues/7235","id":376303375,"user":{"login":"jturel","id":1979598,"avatar_url":"https://avatars1.githubusercontent.com/u/1979598?v=4","gravatar_id":"","url":"https://api.github.com/users/jturel","html_url":"https://github.com/jturel","followers_url":"https://api.github.com/users/jturel/followers","following_url":"https://api.github.com/users/jturel/following{/other_user}","gists_url":"https://api.github.com/users/jturel/gists{/gist_id}","starred_url":"https://api.github.com/users/jturel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jturel/subscriptions","organizations_url":"https://api.github.com/users/jturel/orgs","repos_url":"https://api.github.com/users/jturel/repos","events_url":"https://api.github.com/users/jturel/events{/privacy}","received_events_url":"https://api.github.com/users/jturel/received_events","type":"User","site_admin":false},"created_at":"2018-03-26T20:37:12Z","updated_at":"2018-03-26T20:37:12Z","author_association":"MEMBER","body":"@akofink something seems off - and it could be something local to me entirely:\r\n\r\nmy input:\r\n\r\n```\r\n---\r\nservices_checked:\r\n- candlepin\r\n- candlepin_auth\r\npools:\r\n- poolId: 8a85f9815eaa2d9e015eaab23a5f2fc9\r\n  quantity: 1\r\ncurrent_organization_id: 4\r\ncurrent_location_id: \r\nsession_id: 863b1e03-8586-4384-8c74-f09327b655ca\r\nremote_user: admin\r\nremote_cp_user: admin\r\nlocale: en\r\ncurrent_user_id: 4\r\njob_resource: \"::Katello::Resources::Candlepin::UpstreamJob\"\r\n```\r\n\r\noutput:\r\n```\r\n---\r\ntask:\r\n  id: bind_by_products_60b8f3d6-6682-489d-83a0-60e385f9d2d0\r\n  state: FINISHED\r\n  startTime: '2018-03-26T19:52:41+0000'\r\n  finishTime: '2018-03-26T19:52:42+0000'\r\n  result: Entitlements created for owner\r\n  principalName: 38239dd3-2cc2-4551-bf85-f4d8f8b40cfb\r\n  targetType: consumer\r\n  targetId: 38239dd3-2cc2-4551-bf85-f4d8f8b40cfb\r\n  ownerId: '5394945'\r\n  correlationId: 863b1e03\r\n  resultData: \"[cloaked]\"\r\n  done: true\r\n  group: async group\r\n  statusPath: \"/jobs/bind_by_products_60b8f3d6-6682-489d-83a0-60e385f9d2d0\"\r\n  created: '2018-03-26T19:52:41+0000'\r\n  updated: '2018-03-26T19:52:42+0000'\r\npoll_attempts:\r\n  total: 1\r\n  failed: 0\r\n```\r\n\r\nIt all looks good, but I am suspect of if my input made it into the upstream request body. Mind taking a look on your end just to be sure?"}}
{"actor":{"display_login":"jturel"}}