{"action":"opened","issue":{"url":"https://api.github.com/repos/ndlib/sipity/issues/557","labels_url":"https://api.github.com/repos/ndlib/sipity/issues/557/labels{/name}","comments_url":"https://api.github.com/repos/ndlib/sipity/issues/557/comments","events_url":"https://api.github.com/repos/ndlib/sipity/issues/557/events","html_url":"https://github.com/ndlib/sipity/issues/557","id":70756177,"number":557,"title":"Extract a Proper Action Set","user":{"login":"jeremyf","id":2130,"avatar_url":"https://avatars.githubusercontent.com/u/2130?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremyf","html_url":"https://github.com/jeremyf","followers_url":"https://api.github.com/users/jeremyf/followers","following_url":"https://api.github.com/users/jeremyf/following{/other_user}","gists_url":"https://api.github.com/users/jeremyf/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyf/subscriptions","organizations_url":"https://api.github.com/users/jeremyf/orgs","repos_url":"https://api.github.com/users/jeremyf/repos","events_url":"https://api.github.com/users/jeremyf/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ndlib/sipity/labels/Reduce%20Technical%20Debt","name":"Reduce Technical Debt","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-24T18:10:24Z","updated_at":"2015-04-24T18:10:24Z","closed_at":null,"body":"At present there exists a [`ProcessingActions`](https://github.com/ndlib/sipity/blob/5995eb68e540b4e22900205e61d2cd9f453cd3ce/app/decorators/sipity/decorators/processing_actions.rb\r\n\r\n); It is a container for several arrays of actions:\r\n\r\n* ENRICHMENT_ACTION\r\n* RESOURCEFUL_ACTION\r\n* STATE_ADVANCING_ACTION\r\n\r\nHowever, those arrays are a raw array without meaning. When rendering those arrays, there are queries concerning all the elements of those arrays: https://github.com/ndlib/sipity/blob/166c22de385f99c79f3b970cf390cb8e66212d0d/app/views/sipity/controllers/works/show.html.erb#L6\r\n\r\n## Proposal\r\n\r\nCreate an ActionSet object that can expose methods against the like-typed set of actions."}}