{"action":"created","comment":{"url":"https://api.github.com/repos/PRX/cms.prx.org/pulls/comments/29190899","id":29190899,"diff_hunk":"@@ -0,0 +1,120 @@\n+module HalActions::Resources\n+  private\n+\n+  # action specific resources\n+\n+  def index_collection\n+    PagedCollection.new(\n+      resources,\n+      request,\n+      item_class: self.class.resource_class,\n+      item_decorator: self.class.resource_representer\n+    )\n+  end\n+\n+  def show_resource\n+    resource\n+  end\n+\n+  def update_resource\n+    resource\n+  end\n+\n+  def create_resource\n+    resource\n+  end\n+\n+  def destroy_resource\n+    resource\n+  end\n+\n+  def resource","path":"app/controllers/concerns/hal_actions/resources.rb","position":31,"original_position":31,"commit_id":"9d9f9cc9191463724ff3712c2e9d6fc19f59fd22","original_commit_id":"9d9f9cc9191463724ff3712c2e9d6fc19f59fd22","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Assignment Branch Condition size for resource is too high. [15.33/15]","created_at":"2015-04-27T21:03:31Z","updated_at":"2015-04-27T21:03:31Z","html_url":"https://github.com/PRX/cms.prx.org/pull/103#discussion_r29190899","pull_request_url":"https://api.github.com/repos/PRX/cms.prx.org/pulls/103","_links":{"self":{"href":"https://api.github.com/repos/PRX/cms.prx.org/pulls/comments/29190899"},"html":{"href":"https://github.com/PRX/cms.prx.org/pull/103#discussion_r29190899"},"pull_request":{"href":"https://api.github.com/repos/PRX/cms.prx.org/pulls/103"}}},"pull_request":{"url":"https://api.github.com/repos/PRX/cms.prx.org/pulls/103","id":34183122,"html_url":"https://github.com/PRX/cms.prx.org/pull/103","diff_url":"https://github.com/PRX/cms.prx.org/pull/103.diff","patch_url":"https://github.com/PRX/cms.prx.org/pull/103.patch","issue_url":"https://api.github.com/repos/PRX/cms.prx.org/issues/103","number":103,"state":"open","locked":false,"title":"Refactor HalActions concern for better filtering and organization","user":{"login":"chrisrhoden","id":61664,"avatar_url":"https://avatars.githubusercontent.com/u/61664?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisrhoden","html_url":"https://github.com/chrisrhoden","followers_url":"https://api.github.com/users/chrisrhoden/followers","following_url":"https://api.github.com/users/chrisrhoden/following{/other_user}","gists_url":"https://api.github.com/users/chrisrhoden/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisrhoden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisrhoden/subscriptions","organizations_url":"https://api.github.com/users/chrisrhoden/orgs","repos_url":"https://api.github.com/users/chrisrhoden/repos","events_url":"https://api.github.com/users/chrisrhoden/events{/privacy}","received_events_url":"https://api.github.com/users/chrisrhoden/received_events","type":"User","site_admin":false},"body":"Break HalActions controller concern into multiple modules for easier navigation.\r\n\r\nIn `HalActions::Resources` module, change the way that `resources_base` and\r\n`resources` behave so that `resources_base` can be used to build new resources\r\nwith the appropriate relationships based on route parameters.\r\n\r\nIntroduce the `scoped` and `included` relation transformers, which are skipped\r\nwhen building models and generating a collection cache key.\r\n\r\nRename `with_params` to `filtered`\r\nRename `with_ordering` to `sorted`\r\nRename `with_paging` to `paged`\r\n\r\n`resources_base` should now return a relation which can have the transformations\r\nselectively applied to it depending on its use.\r\n\r\n\r\nAction            | scoped | included | filtered | sorted | paged | find\r\n----------------- | ------ | -------- | -------- | ------ | ----- | ----\r\n`index`            | *yes*  | *yes*    | *yes*    | *yes*  | *yes* | no\r\n`show`            | *yes*  | *yes*    | *yes*    | no     | no    | *yes*\r\n`create`          | no     | no       | *yes*    | no     | no    | no\r\n`update`          | *yes*  | *yes*    | *yes*    | no     | no    | *yes*\r\n`index` cache key | *yes*  | no       | *yes*    | *yes*  | *yes* | no\r\n\r\n","created_at":"2015-04-27T15:58:51Z","updated_at":"2015-04-27T21:03:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e52d8563c2a96f39fa72580022c883775732d82","assignee":{"login":"kookster","id":46439,"avatar_url":"https://avatars.githubusercontent.com/u/46439?v=3","gravatar_id":"","url":"https://api.github.com/users/kookster","html_url":"https://github.com/kookster","followers_url":"https://api.github.com/users/kookster/followers","following_url":"https://api.github.com/users/kookster/following{/other_user}","gists_url":"https://api.github.com/users/kookster/gists{/gist_id}","starred_url":"https://api.github.com/users/kookster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kookster/subscriptions","organizations_url":"https://api.github.com/users/kookster/orgs","repos_url":"https://api.github.com/users/kookster/repos","events_url":"https://api.github.com/users/kookster/events{/privacy}","received_events_url":"https://api.github.com/users/kookster/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/PRX/cms.prx.org/pulls/103/commits","review_comments_url":"https://api.github.com/repos/PRX/cms.prx.org/pulls/103/comments","review_comment_url":"https://api.github.com/repos/PRX/cms.prx.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PRX/cms.prx.org/issues/103/comments","statuses_url":"https://api.github.com/repos/PRX/cms.prx.org/statuses/9d9f9cc9191463724ff3712c2e9d6fc19f59fd22","head":{"label":"PRX:chore/refactor_hal_actions","ref":"chore/refactor_hal_actions","sha":"9d9f9cc9191463724ff3712c2e9d6fc19f59fd22","user":{"login":"PRX","id":160453,"avatar_url":"https://avatars.githubusercontent.com/u/160453?v=3","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"repo":{"id":14878369,"name":"cms.prx.org","full_name":"PRX/cms.prx.org","owner":{"login":"PRX","id":160453,"avatar_url":"https://avatars.githubusercontent.com/u/160453?v=3","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PRX/cms.prx.org","description":"Rails App for PRX (under development)","fork":false,"url":"https://api.github.com/repos/PRX/cms.prx.org","forks_url":"https://api.github.com/repos/PRX/cms.prx.org/forks","keys_url":"https://api.github.com/repos/PRX/cms.prx.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PRX/cms.prx.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PRX/cms.prx.org/teams","hooks_url":"https://api.github.com/repos/PRX/cms.prx.org/hooks","issue_events_url":"https://api.github.com/repos/PRX/cms.prx.org/issues/events{/number}","events_url":"https://api.github.com/repos/PRX/cms.prx.org/events","assignees_url":"https://api.github.com/repos/PRX/cms.prx.org/assignees{/user}","branches_url":"https://api.github.com/repos/PRX/cms.prx.org/branches{/branch}","tags_url":"https://api.github.com/repos/PRX/cms.prx.org/tags","blobs_url":"https://api.github.com/repos/PRX/cms.prx.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PRX/cms.prx.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PRX/cms.prx.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/PRX/cms.prx.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PRX/cms.prx.org/statuses/{sha}","languages_url":"https://api.github.com/repos/PRX/cms.prx.org/languages","stargazers_url":"https://api.github.com/repos/PRX/cms.prx.org/stargazers","contributors_url":"https://api.github.com/repos/PRX/cms.prx.org/contributors","subscribers_url":"https://api.github.com/repos/PRX/cms.prx.org/subscribers","subscription_url":"https://api.github.com/repos/PRX/cms.prx.org/subscription","commits_url":"https://api.github.com/repos/PRX/cms.prx.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/PRX/cms.prx.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/PRX/cms.prx.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/PRX/cms.prx.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/PRX/cms.prx.org/contents/{+path}","compare_url":"https://api.github.com/repos/PRX/cms.prx.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PRX/cms.prx.org/merges","archive_url":"https://api.github.com/repos/PRX/cms.prx.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PRX/cms.prx.org/downloads","issues_url":"https://api.github.com/repos/PRX/cms.prx.org/issues{/number}","pulls_url":"https://api.github.com/repos/PRX/cms.prx.org/pulls{/number}","milestones_url":"https://api.github.com/repos/PRX/cms.prx.org/milestones{/number}","notifications_url":"https://api.github.com/repos/PRX/cms.prx.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PRX/cms.prx.org/labels{/name}","releases_url":"https://api.github.com/repos/PRX/cms.prx.org/releases{/id}","created_at":"2013-12-02T23:48:10Z","updated_at":"2015-04-17T15:45:08Z","pushed_at":"2015-04-27T21:03:16Z","git_url":"git://github.com/PRX/cms.prx.org.git","ssh_url":"git@github.com:PRX/cms.prx.org.git","clone_url":"https://github.com/PRX/cms.prx.org.git","svn_url":"https://github.com/PRX/cms.prx.org","homepage":"http://www.prx.org","size":2786,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":17,"forks":2,"open_issues":17,"watchers":1,"default_branch":"master"}},"base":{"label":"PRX:master","ref":"master","sha":"a2eb026d39eca798fa9364aa023e67ae5d6bf0ed","user":{"login":"PRX","id":160453,"avatar_url":"https://avatars.githubusercontent.com/u/160453?v=3","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"repo":{"id":14878369,"name":"cms.prx.org","full_name":"PRX/cms.prx.org","owner":{"login":"PRX","id":160453,"avatar_url":"https://avatars.githubusercontent.com/u/160453?v=3","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PRX/cms.prx.org","description":"Rails App for PRX (under development)","fork":false,"url":"https://api.github.com/repos/PRX/cms.prx.org","forks_url":"https://api.github.com/repos/PRX/cms.prx.org/forks","keys_url":"https://api.github.com/repos/PRX/cms.prx.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PRX/cms.prx.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PRX/cms.prx.org/teams","hooks_url":"https://api.github.com/repos/PRX/cms.prx.org/hooks","issue_events_url":"https://api.github.com/repos/PRX/cms.prx.org/issues/events{/number}","events_url":"https://api.github.com/repos/PRX/cms.prx.org/events","assignees_url":"https://api.github.com/repos/PRX/cms.prx.org/assignees{/user}","branches_url":"https://api.github.com/repos/PRX/cms.prx.org/branches{/branch}","tags_url":"https://api.github.com/repos/PRX/cms.prx.org/tags","blobs_url":"https://api.github.com/repos/PRX/cms.prx.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PRX/cms.prx.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PRX/cms.prx.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/PRX/cms.prx.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PRX/cms.prx.org/statuses/{sha}","languages_url":"https://api.github.com/repos/PRX/cms.prx.org/languages","stargazers_url":"https://api.github.com/repos/PRX/cms.prx.org/stargazers","contributors_url":"https://api.github.com/repos/PRX/cms.prx.org/contributors","subscribers_url":"https://api.github.com/repos/PRX/cms.prx.org/subscribers","subscription_url":"https://api.github.com/repos/PRX/cms.prx.org/subscription","commits_url":"https://api.github.com/repos/PRX/cms.prx.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/PRX/cms.prx.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/PRX/cms.prx.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/PRX/cms.prx.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/PRX/cms.prx.org/contents/{+path}","compare_url":"https://api.github.com/repos/PRX/cms.prx.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PRX/cms.prx.org/merges","archive_url":"https://api.github.com/repos/PRX/cms.prx.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PRX/cms.prx.org/downloads","issues_url":"https://api.github.com/repos/PRX/cms.prx.org/issues{/number}","pulls_url":"https://api.github.com/repos/PRX/cms.prx.org/pulls{/number}","milestones_url":"https://api.github.com/repos/PRX/cms.prx.org/milestones{/number}","notifications_url":"https://api.github.com/repos/PRX/cms.prx.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PRX/cms.prx.org/labels{/name}","releases_url":"https://api.github.com/repos/PRX/cms.prx.org/releases{/id}","created_at":"2013-12-02T23:48:10Z","updated_at":"2015-04-17T15:45:08Z","pushed_at":"2015-04-27T21:03:16Z","git_url":"git://github.com/PRX/cms.prx.org.git","ssh_url":"git@github.com:PRX/cms.prx.org.git","clone_url":"https://github.com/PRX/cms.prx.org.git","svn_url":"https://github.com/PRX/cms.prx.org","homepage":"http://www.prx.org","size":2786,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":17,"forks":2,"open_issues":17,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PRX/cms.prx.org/pulls/103"},"html":{"href":"https://github.com/PRX/cms.prx.org/pull/103"},"issue":{"href":"https://api.github.com/repos/PRX/cms.prx.org/issues/103"},"comments":{"href":"https://api.github.com/repos/PRX/cms.prx.org/issues/103/comments"},"review_comments":{"href":"https://api.github.com/repos/PRX/cms.prx.org/pulls/103/comments"},"review_comment":{"href":"https://api.github.com/repos/PRX/cms.prx.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PRX/cms.prx.org/pulls/103/commits"},"statuses":{"href":"https://api.github.com/repos/PRX/cms.prx.org/statuses/9d9f9cc9191463724ff3712c2e9d6fc19f59fd22"}}}}