GitHub PullRequestReviewCommentEvent at 2014-03-27 12:42:13
Repository: candlepin
Actor: cakofony
Payload: {"comment":{"url":"https://api.github.com/repos/candlepin/candlepin/pulls/comments/11020446","id":11020446,"diff_hunk":"@@ -748,6 +745,21 @@ public String getProductAttributeValue(String name) {\n         return findAttributeValue(this.productAttributes, name);\n     }\n \n+    public boolean hasAnyAttribute(String name) {\n+        return this.getAnyAttribute(name) != null;\n+    }\n+\n+    /*\n+     * Gets either pool or product attributes, not derived attributes\n+     */\n+    public AbstractPoolAttribute getAnyAttribute(String name) {","path":"src/main/java/org/candlepin/model/Pool.java","position":23,"original_position":23,"commit_id":"e8dfcb8e596bfae32e60594ac0f7a31ea07a44f3","original_commit_id":"e8dfcb8e596bfae32e60594ac0f7a31ea07a44f3","user":{"login":"cakofony","id":3854321,"avatar_url":"https://avatars.githubusercontent.com/u/3854321?","gravatar_id":"ab111ab05cd1e4f33434d9f76bb0c96d","url":"https://api.github.com/users/cakofony","html_url":"https://github.com/cakofony","followers_url":"https://api.github.com/users/cakofony/followers","following_url":"https://api.github.com/users/cakofony/following{/other_user}","gists_url":"https://api.github.com/users/cakofony/gists{/gist_id}","starred_url":"https://api.github.com/users/cakofony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakofony/subscriptions","organizations_url":"https://api.github.com/users/cakofony/orgs","repos_url":"https://api.github.com/users/cakofony/repos","events_url":"https://api.github.com/users/cakofony/events{/privacy}","received_events_url":"https://api.github.com/users/cakofony/received_events","type":"User","site_admin":false},"body":"There's got to be a better name for this than {has,get}AnyAttribute()\r\nideas?","created_at":"2014-03-27T12:42:13Z","updated_at":"2014-03-27T12:42:13Z","html_url":"https://github.com/candlepin/candlepin/pull/548#discussion_r11020446","pull_request_url":"https://api.github.com/repos/candlepin/candlepin/pulls/548","_links":{"self":{"href":"https://api.github.com/repos/candlepin/candlepin/pulls/comments/11020446"},"html":{"href":"https://github.com/candlepin/candlepin/pull/548#discussion_r11020446"},"pull_request":{"href":"https://api.github.com/repos/candlepin/candlepin/pulls/548"}}}}