{"action":"created","issue":{"url":"https://api.github.com/repos/SatelliteQE/nailgun/issues/555","repository_url":"https://api.github.com/repos/SatelliteQE/nailgun","labels_url":"https://api.github.com/repos/SatelliteQE/nailgun/issues/555/labels{/name}","comments_url":"https://api.github.com/repos/SatelliteQE/nailgun/issues/555/comments","events_url":"https://api.github.com/repos/SatelliteQE/nailgun/issues/555/events","html_url":"https://github.com/SatelliteQE/nailgun/pull/555","id":377295181,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4MjczNzM2","number":555,"title":"Adding Module Stream Entity for 6.5 Feature","user":{"login":"omkarkhatavkar","id":3190629,"node_id":"MDQ6VXNlcjMxOTA2Mjk=","avatar_url":"https://avatars3.githubusercontent.com/u/3190629?v=4","gravatar_id":"","url":"https://api.github.com/users/omkarkhatavkar","html_url":"https://github.com/omkarkhatavkar","followers_url":"https://api.github.com/users/omkarkhatavkar/followers","following_url":"https://api.github.com/users/omkarkhatavkar/following{/other_user}","gists_url":"https://api.github.com/users/omkarkhatavkar/gists{/gist_id}","starred_url":"https://api.github.com/users/omkarkhatavkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omkarkhatavkar/subscriptions","organizations_url":"https://api.github.com/users/omkarkhatavkar/orgs","repos_url":"https://api.github.com/users/omkarkhatavkar/repos","events_url":"https://api.github.com/users/omkarkhatavkar/events{/privacy}","received_events_url":"https://api.github.com/users/omkarkhatavkar/received_events","type":"User","site_admin":false},"labels":[{"id":1104018100,"node_id":"MDU6TGFiZWwxMTA0MDE4MTAw","url":"https://api.github.com/repos/SatelliteQE/nailgun/labels/6.5","name":"6.5","color":"d6804a","default":false},{"id":427746613,"node_id":"MDU6TGFiZWw0Mjc3NDY2MTM=","url":"https://api.github.com/repos/SatelliteQE/nailgun/labels/review","name":"review","color":"00ff00","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-05T08:29:39Z","updated_at":"2018-11-13T06:54:50Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/SatelliteQE/nailgun/pulls/555","html_url":"https://github.com/SatelliteQE/nailgun/pull/555","diff_url":"https://github.com/SatelliteQE/nailgun/pull/555.diff","patch_url":"https://github.com/SatelliteQE/nailgun/pull/555.patch"},"body":"**Objective:** The purpose of this PR is to add missing entities related to module stream now exist in Satellite 6.5 Features.\r\n\r\n**How to Use:**\r\n1. #Module Stream\r\n```\r\nfrom nailgun import entities\r\nfrom nailgun.config import ServerConfig\r\nfrom nailgun.entities import ModuleStream\r\nfrom nailgun.entities import Errata\r\nfrom nailgun.entities import ContentViewVersion\r\nfrom nailgun.entities import ContentView\r\n\r\n> modules = entities.ModuleStream().search(query={'per_page': 1000})\r\n> len(modules)\r\n12\r\n\r\n> print(modules[1])\r\nnailgun.entities.ModuleStream(uuid='cc2e48e9-b962-452a-8ff9-7bb0cd891584', name='duck', version='20180730233102', module_spec='duck:0:20180730233102:deadbeef:noarch', id=6, stream='0', description='A module for the duck 0.7 package', summary='Duck 0.7 module', context='deadbeef', arch='noarch')\r\n\r\n> modules[1].name\r\n'duck'\r\n\r\n> modules[1].module_spec\r\n'duck:0:20180730233102:deadbeef:noarch'\r\n\r\n> module = entities.ModuleStream(id=1).read()\r\n\r\n> module \r\nOut[36]: nailgun.entities.ModuleStream(summary='Duck 0.8 module', name='duck', uuid='04637bf8-9973-4efa-9fc7-99945d46438e', module_spec='duck:0:201809302113907:deadbeef:noarch', description='A module for the duck 0.8 package', version='201809302113907', arch='noarch', context='deadbeef', id=1, stream='0')\r\n\r\n> module.module_spec\r\nOut[37]: 'duck:0:201809302113907:deadbeef:noarch'\r\n\r\n\r\n\r\n\r\n``` \r\n2. #Repository\r\n```\r\n> repo = entities.Repository(id=3).read()\r\n> repo.module_streams()['results'][0]\r\n{'arch': 'noarch',\r\n 'context': 'deadbeef',\r\n 'description': 'A module for the duck 0.7 package',\r\n 'id': 6,\r\n 'module_spec': 'duck:0:20180730233102:deadbeef:noarch',\r\n 'name': 'duck',\r\n 'stream': '0',\r\n 'summary': 'Duck 0.7 module',\r\n 'uuid': 'cc2e48e9-b962-452a-8ff9-7bb0cd891584',\r\n 'version': '20180730233102'}\r\n```\r\n3.#ContentViewVersion\r\n\r\n```\r\n> content_version = entities.ContentViewVersion(id=2).read()\r\n> content_version.module_stream_count\r\nOut[29]: 7\r\n```\r\n4.#Errata\r\n\r\n```\r\n> errata = entities.Errata(id=2).read()\r\n> errata.module_streams[1]\r\n{'arch': 'noarch',\r\n 'context': 'deadbeef',\r\n 'id': 5,\r\n 'name': 'kangaroo',\r\n 'packages': ['kangaroo-0.3-1.noarch'],\r\n 'stream': '0',\r\n 'version': '20180730223407'}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/SatelliteQE/nailgun/issues/comments/438157588","html_url":"https://github.com/SatelliteQE/nailgun/pull/555#issuecomment-438157588","issue_url":"https://api.github.com/repos/SatelliteQE/nailgun/issues/555","id":438157588,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODE1NzU4OA==","user":{"login":"jyejare","id":11752425,"node_id":"MDQ6VXNlcjExNzUyNDI1","avatar_url":"https://avatars0.githubusercontent.com/u/11752425?v=4","gravatar_id":"","url":"https://api.github.com/users/jyejare","html_url":"https://github.com/jyejare","followers_url":"https://api.github.com/users/jyejare/followers","following_url":"https://api.github.com/users/jyejare/following{/other_user}","gists_url":"https://api.github.com/users/jyejare/gists{/gist_id}","starred_url":"https://api.github.com/users/jyejare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jyejare/subscriptions","organizations_url":"https://api.github.com/users/jyejare/orgs","repos_url":"https://api.github.com/users/jyejare/repos","events_url":"https://api.github.com/users/jyejare/events{/privacy}","received_events_url":"https://api.github.com/users/jyejare/received_events","type":"User","site_admin":false},"created_at":"2018-11-13T06:54:50Z","updated_at":"2018-11-13T06:54:50Z","author_association":"MEMBER","body":"@ldjebran and @sean797 , Please help review."}}
{"actor":{"display_login":"jyejare"}}