{"action":"created","comment":{"url":"https://api.github.com/repos/fedora-infra/bodhi/pulls/comments/175824197","pull_request_review_id":105408567,"id":175824197,"diff_hunk":"@@ -1248,6 +1305,43 @@ class Build(Base):\n         'polymorphic_identity': ContentType.base,\n     }\n \n+    # Local cache in case we need more koji info\n+    _kojiinfo = None\n+\n+    def _get_kojiinfo(self):\n+        if not self._kojiinfo:\n+            koji_session = buildsys.get_session()\n+            self._kojiinfo = koji_session.getBuild(self.nvr)\n+        return self._kojiinfo\n+\n+    def _get_n_v_r(self):\n+        \"\"\"Return the N, V and R components of an RPM build from NVR.\"\"\"\n+        return self.nvr.rsplit('-', 2)\n+\n+    @property\n+    def nvr_name(self):\n+        \"\"\"Return the RPM Name.\"\"\"\n+        return self._get_n_v_r()[0]\n+\n+    @property\n+    def nvr_version(self):\n+        \"\"\"Return the RPM Version.\"\"\"","path":"bodhi/server/models.py","position":104,"original_position":104,"commit_id":"7afd9f4c69e64dda22024e54bed3e3846f8931dd","original_commit_id":"7afd9f4c69e64dda22024e54bed3e3846f8931dd","user":{"login":"bowlofeggs","id":354506,"avatar_url":"https://avatars2.githubusercontent.com/u/354506?v=4","gravatar_id":"","url":"https://api.github.com/users/bowlofeggs","html_url":"https://github.com/bowlofeggs","followers_url":"https://api.github.com/users/bowlofeggs/followers","following_url":"https://api.github.com/users/bowlofeggs/following{/other_user}","gists_url":"https://api.github.com/users/bowlofeggs/gists{/gist_id}","starred_url":"https://api.github.com/users/bowlofeggs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bowlofeggs/subscriptions","organizations_url":"https://api.github.com/users/bowlofeggs/orgs","repos_url":"https://api.github.com/users/bowlofeggs/repos","events_url":"https://api.github.com/users/bowlofeggs/events{/privacy}","received_events_url":"https://api.github.com/users/bowlofeggs/received_events","type":"User","site_admin":false},"body":"```\r\n\"\"\"\r\nReturn the RPM version.\r\n\r\nReturns:\r\n    str: The version of the RPM.\r\n\"\"\"\r\n```","created_at":"2018-03-20T16:01:31Z","updated_at":"2018-03-20T16:55:52Z","html_url":"https://github.com/fedora-infra/bodhi/pull/2226#discussion_r175824197","pull_request_url":"https://api.github.com/repos/fedora-infra/bodhi/pulls/2226","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/fedora-infra/bodhi/pulls/comments/175824197"},"html":{"href":"https://github.com/fedora-infra/bodhi/pull/2226#discussion_r175824197"},"pull_request":{"href":"https://api.github.com/repos/fedora-infra/bodhi/pulls/2226"}}},"pull_request":{"url":"https://api.github.com/repos/fedora-infra/bodhi/pulls/2226","id":176063916,"html_url":"https://github.com/fedora-infra/bodhi/pull/2226","diff_url":"https://github.com/fedora-infra/bodhi/pull/2226.diff","patch_url":"https://github.com/fedora-infra/bodhi/pull/2226.patch","issue_url":"https://api.github.com/repos/fedora-infra/bodhi/issues/2226","number":2226,"state":"open","locked":false,"title":"Use correct N, V, R splitting for module builds and add stream support","user":{"login":"puiterwijk","id":967561,"avatar_url":"https://avatars0.githubusercontent.com/u/967561?v=4","gravatar_id":"","url":"https://api.github.com/users/puiterwijk","html_url":"https://github.com/puiterwijk","followers_url":"https://api.github.com/users/puiterwijk/followers","following_url":"https://api.github.com/users/puiterwijk/following{/other_user}","gists_url":"https://api.github.com/users/puiterwijk/gists{/gist_id}","starred_url":"https://api.github.com/users/puiterwijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puiterwijk/subscriptions","organizations_url":"https://api.github.com/users/puiterwijk/orgs","repos_url":"https://api.github.com/users/puiterwijk/repos","events_url":"https://api.github.com/users/puiterwijk/events{/privacy}","received_events_url":"https://api.github.com/users/puiterwijk/received_events","type":"User","site_admin":false},"body":"This patch adds nvr_name, nvr_version and nvr_release to Build models that will\r\nrepresent the correct n, v and r components for different build types.\r\nThis will also allow multiple builds of different module streams without them\r\noverriding eachother.\r\n\r\nSigned-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>","created_at":"2018-03-20T00:59:49Z","updated_at":"2018-03-20T16:55:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ddc41d9781d19323b19007902a5ef45a583d30dd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":51880971,"url":"https://api.github.com/repos/fedora-infra/bodhi/labels/Critical","name":"Critical","color":"b60205","default":false},{"id":461014182,"url":"https://api.github.com/repos/fedora-infra/bodhi/labels/Refactor","name":"Refactor","color":"d93f0b","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/fedora-infra/bodhi/pulls/2226/commits","review_comments_url":"https://api.github.com/repos/fedora-infra/bodhi/pulls/2226/comments","review_comment_url":"https://api.github.com/repos/fedora-infra/bodhi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fedora-infra/bodhi/issues/2226/comments","statuses_url":"https://api.github.com/repos/fedora-infra/bodhi/statuses/7afd9f4c69e64dda22024e54bed3e3846f8931dd","head":{"label":"puiterwijk:modularstreampackage","ref":"modularstreampackage","sha":"7afd9f4c69e64dda22024e54bed3e3846f8931dd","user":{"login":"puiterwijk","id":967561,"avatar_url":"https://avatars0.githubusercontent.com/u/967561?v=4","gravatar_id":"","url":"https://api.github.com/users/puiterwijk","html_url":"https://github.com/puiterwijk","followers_url":"https://api.github.com/users/puiterwijk/followers","following_url":"https://api.github.com/users/puiterwijk/following{/other_user}","gists_url":"https://api.github.com/users/puiterwijk/gists{/gist_id}","starred_url":"https://api.github.com/users/puiterwijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puiterwijk/subscriptions","organizations_url":"https://api.github.com/users/puiterwijk/orgs","repos_url":"https://api.github.com/users/puiterwijk/repos","events_url":"https://api.github.com/users/puiterwijk/events{/privacy}","received_events_url":"https://api.github.com/users/puiterwijk/received_events","type":"User","site_admin":false},"repo":{"id":106849494,"name":"bodhi","full_name":"puiterwijk/bodhi","owner":{"login":"puiterwijk","id":967561,"avatar_url":"https://avatars0.githubusercontent.com/u/967561?v=4","gravatar_id":"","url":"https://api.github.com/users/puiterwijk","html_url":"https://github.com/puiterwijk","followers_url":"https://api.github.com/users/puiterwijk/followers","following_url":"https://api.github.com/users/puiterwijk/following{/other_user}","gists_url":"https://api.github.com/users/puiterwijk/gists{/gist_id}","starred_url":"https://api.github.com/users/puiterwijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puiterwijk/subscriptions","organizations_url":"https://api.github.com/users/puiterwijk/orgs","repos_url":"https://api.github.com/users/puiterwijk/repos","events_url":"https://api.github.com/users/puiterwijk/events{/privacy}","received_events_url":"https://api.github.com/users/puiterwijk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/puiterwijk/bodhi","description":"Bodhi is a web-system that facilitates the process of publishing updates for a Fedora-based software distribution.","fork":true,"url":"https://api.github.com/repos/puiterwijk/bodhi","forks_url":"https://api.github.com/repos/puiterwijk/bodhi/forks","keys_url":"https://api.github.com/repos/puiterwijk/bodhi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puiterwijk/bodhi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puiterwijk/bodhi/teams","hooks_url":"https://api.github.com/repos/puiterwijk/bodhi/hooks","issue_events_url":"https://api.github.com/repos/puiterwijk/bodhi/issues/events{/number}","events_url":"https://api.github.com/repos/puiterwijk/bodhi/events","assignees_url":"https://api.github.com/repos/puiterwijk/bodhi/assignees{/user}","branches_url":"https://api.github.com/repos/puiterwijk/bodhi/branches{/branch}","tags_url":"https://api.github.com/repos/puiterwijk/bodhi/tags","blobs_url":"https://api.github.com/repos/puiterwijk/bodhi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puiterwijk/bodhi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puiterwijk/bodhi/git/refs{/sha}","trees_url":"https://api.github.com/repos/puiterwijk/bodhi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puiterwijk/bodhi/statuses/{sha}","languages_url":"https://api.github.com/repos/puiterwijk/bodhi/languages","stargazers_url":"https://api.github.com/repos/puiterwijk/bodhi/stargazers","contributors_url":"https://api.github.com/repos/puiterwijk/bodhi/contributors","subscribers_url":"https://api.github.com/repos/puiterwijk/bodhi/subscribers","subscription_url":"https://api.github.com/repos/puiterwijk/bodhi/subscription","commits_url":"https://api.github.com/repos/puiterwijk/bodhi/commits{/sha}","git_commits_url":"https://api.github.com/repos/puiterwijk/bodhi/git/commits{/sha}","comments_url":"https://api.github.com/repos/puiterwijk/bodhi/comments{/number}","issue_comment_url":"https://api.github.com/repos/puiterwijk/bodhi/issues/comments{/number}","contents_url":"https://api.github.com/repos/puiterwijk/bodhi/contents/{+path}","compare_url":"https://api.github.com/repos/puiterwijk/bodhi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puiterwijk/bodhi/merges","archive_url":"https://api.github.com/repos/puiterwijk/bodhi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puiterwijk/bodhi/downloads","issues_url":"https://api.github.com/repos/puiterwijk/bodhi/issues{/number}","pulls_url":"https://api.github.com/repos/puiterwijk/bodhi/pulls{/number}","milestones_url":"https://api.github.com/repos/puiterwijk/bodhi/milestones{/number}","notifications_url":"https://api.github.com/repos/puiterwijk/bodhi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puiterwijk/bodhi/labels{/name}","releases_url":"https://api.github.com/repos/puiterwijk/bodhi/releases{/id}","deployments_url":"https://api.github.com/repos/puiterwijk/bodhi/deployments","created_at":"2017-10-13T16:41:43Z","updated_at":"2017-10-13T16:41:46Z","pushed_at":"2018-03-20T09:57:37Z","git_url":"git://github.com/puiterwijk/bodhi.git","ssh_url":"git@github.com:puiterwijk/bodhi.git","clone_url":"https://github.com/puiterwijk/bodhi.git","svn_url":"https://github.com/puiterwijk/bodhi","homepage":"https://bodhi.fedoraproject.org","size":41053,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"fedora-infra:develop","ref":"develop","sha":"97ee1b3b8b801864ecba0303d5bfd4916bc0bd5e","user":{"login":"fedora-infra","id":3316637,"avatar_url":"https://avatars1.githubusercontent.com/u/3316637?v=4","gravatar_id":"","url":"https://api.github.com/users/fedora-infra","html_url":"https://github.com/fedora-infra","followers_url":"https://api.github.com/users/fedora-infra/followers","following_url":"https://api.github.com/users/fedora-infra/following{/other_user}","gists_url":"https://api.github.com/users/fedora-infra/gists{/gist_id}","starred_url":"https://api.github.com/users/fedora-infra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedora-infra/subscriptions","organizations_url":"https://api.github.com/users/fedora-infra/orgs","repos_url":"https://api.github.com/users/fedora-infra/repos","events_url":"https://api.github.com/users/fedora-infra/events{/privacy}","received_events_url":"https://api.github.com/users/fedora-infra/received_events","type":"Organization","site_admin":false},"repo":{"id":123299,"name":"bodhi","full_name":"fedora-infra/bodhi","owner":{"login":"fedora-infra","id":3316637,"avatar_url":"https://avatars1.githubusercontent.com/u/3316637?v=4","gravatar_id":"","url":"https://api.github.com/users/fedora-infra","html_url":"https://github.com/fedora-infra","followers_url":"https://api.github.com/users/fedora-infra/followers","following_url":"https://api.github.com/users/fedora-infra/following{/other_user}","gists_url":"https://api.github.com/users/fedora-infra/gists{/gist_id}","starred_url":"https://api.github.com/users/fedora-infra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedora-infra/subscriptions","organizations_url":"https://api.github.com/users/fedora-infra/orgs","repos_url":"https://api.github.com/users/fedora-infra/repos","events_url":"https://api.github.com/users/fedora-infra/events{/privacy}","received_events_url":"https://api.github.com/users/fedora-infra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fedora-infra/bodhi","description":"Bodhi is a web-system that facilitates the process of publishing updates for a Fedora-based software distribution.","fork":false,"url":"https://api.github.com/repos/fedora-infra/bodhi","forks_url":"https://api.github.com/repos/fedora-infra/bodhi/forks","keys_url":"https://api.github.com/repos/fedora-infra/bodhi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fedora-infra/bodhi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fedora-infra/bodhi/teams","hooks_url":"https://api.github.com/repos/fedora-infra/bodhi/hooks","issue_events_url":"https://api.github.com/repos/fedora-infra/bodhi/issues/events{/number}","events_url":"https://api.github.com/repos/fedora-infra/bodhi/events","assignees_url":"https://api.github.com/repos/fedora-infra/bodhi/assignees{/user}","branches_url":"https://api.github.com/repos/fedora-infra/bodhi/branches{/branch}","tags_url":"https://api.github.com/repos/fedora-infra/bodhi/tags","blobs_url":"https://api.github.com/repos/fedora-infra/bodhi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fedora-infra/bodhi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fedora-infra/bodhi/git/refs{/sha}","trees_url":"https://api.github.com/repos/fedora-infra/bodhi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fedora-infra/bodhi/statuses/{sha}","languages_url":"https://api.github.com/repos/fedora-infra/bodhi/languages","stargazers_url":"https://api.github.com/repos/fedora-infra/bodhi/stargazers","contributors_url":"https://api.github.com/repos/fedora-infra/bodhi/contributors","subscribers_url":"https://api.github.com/repos/fedora-infra/bodhi/subscribers","subscription_url":"https://api.github.com/repos/fedora-infra/bodhi/subscription","commits_url":"https://api.github.com/repos/fedora-infra/bodhi/commits{/sha}","git_commits_url":"https://api.github.com/repos/fedora-infra/bodhi/git/commits{/sha}","comments_url":"https://api.github.com/repos/fedora-infra/bodhi/comments{/number}","issue_comment_url":"https://api.github.com/repos/fedora-infra/bodhi/issues/comments{/number}","contents_url":"https://api.github.com/repos/fedora-infra/bodhi/contents/{+path}","compare_url":"https://api.github.com/repos/fedora-infra/bodhi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fedora-infra/bodhi/merges","archive_url":"https://api.github.com/repos/fedora-infra/bodhi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fedora-infra/bodhi/downloads","issues_url":"https://api.github.com/repos/fedora-infra/bodhi/issues{/number}","pulls_url":"https://api.github.com/repos/fedora-infra/bodhi/pulls{/number}","milestones_url":"https://api.github.com/repos/fedora-infra/bodhi/milestones{/number}","notifications_url":"https://api.github.com/repos/fedora-infra/bodhi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fedora-infra/bodhi/labels{/name}","releases_url":"https://api.github.com/repos/fedora-infra/bodhi/releases{/id}","deployments_url":"https://api.github.com/repos/fedora-infra/bodhi/deployments","created_at":"2009-02-06T19:38:10Z","updated_at":"2018-03-20T15:20:15Z","pushed_at":"2018-03-20T15:20:12Z","git_url":"git://github.com/fedora-infra/bodhi.git","ssh_url":"git@github.com:fedora-infra/bodhi.git","clone_url":"https://github.com/fedora-infra/bodhi.git","svn_url":"https://github.com/fedora-infra/bodhi","homepage":"https://bodhi.fedoraproject.org","size":41291,"stargazers_count":72,"watchers_count":72,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":126,"mirror_url":null,"archived":false,"open_issues_count":286,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":126,"open_issues":286,"watchers":72,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/fedora-infra/bodhi/pulls/2226"},"html":{"href":"https://github.com/fedora-infra/bodhi/pull/2226"},"issue":{"href":"https://api.github.com/repos/fedora-infra/bodhi/issues/2226"},"comments":{"href":"https://api.github.com/repos/fedora-infra/bodhi/issues/2226/comments"},"review_comments":{"href":"https://api.github.com/repos/fedora-infra/bodhi/pulls/2226/comments"},"review_comment":{"href":"https://api.github.com/repos/fedora-infra/bodhi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fedora-infra/bodhi/pulls/2226/commits"},"statuses":{"href":"https://api.github.com/repos/fedora-infra/bodhi/statuses/7afd9f4c69e64dda22024e54bed3e3846f8931dd"}},"author_association":"OWNER"}}
{"actor":{"display_login":"bowlofeggs"}}