{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/rfcs/issues/394","repository_url":"https://api.github.com/repos/emberjs/rfcs","labels_url":"https://api.github.com/repos/emberjs/rfcs/issues/394/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/rfcs/issues/394/comments","events_url":"https://api.github.com/repos/emberjs/rfcs/issues/394/events","html_url":"https://github.com/emberjs/rfcs/pull/394","id":374904685,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2NDcyODIy","number":394,"title":"Route actions","user":{"login":"vasilakisfil","id":590575,"node_id":"MDQ6VXNlcjU5MDU3NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/590575?v=4","gravatar_id":"","url":"https://api.github.com/users/vasilakisfil","html_url":"https://github.com/vasilakisfil","followers_url":"https://api.github.com/users/vasilakisfil/followers","following_url":"https://api.github.com/users/vasilakisfil/following{/other_user}","gists_url":"https://api.github.com/users/vasilakisfil/gists{/gist_id}","starred_url":"https://api.github.com/users/vasilakisfil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasilakisfil/subscriptions","organizations_url":"https://api.github.com/users/vasilakisfil/orgs","repos_url":"https://api.github.com/users/vasilakisfil/repos","events_url":"https://api.github.com/users/vasilakisfil/events{/privacy}","received_events_url":"https://api.github.com/users/vasilakisfil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":20,"created_at":"2018-10-29T08:25:20Z","updated_at":"2018-11-01T12:21:53Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/emberjs/rfcs/pulls/394","html_url":"https://github.com/emberjs/rfcs/pull/394","diff_url":"https://github.com/emberjs/rfcs/pull/394.diff","patch_url":"https://github.com/emberjs/rfcs/pull/394.patch"},"body":"[rendered](https://github.com/vasilakisfil/rfcs/blob/rfc/route-actions/text/0000-route-actions.md)."},"comment":{"url":"https://api.github.com/repos/emberjs/rfcs/issues/comments/435024125","html_url":"https://github.com/emberjs/rfcs/pull/394#issuecomment-435024125","issue_url":"https://api.github.com/repos/emberjs/rfcs/issues/394","id":435024125,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTAyNDEyNQ==","user":{"login":"ppcano","id":825430,"node_id":"MDQ6VXNlcjgyNTQzMA==","avatar_url":"https://avatars0.githubusercontent.com/u/825430?v=4","gravatar_id":"","url":"https://api.github.com/users/ppcano","html_url":"https://github.com/ppcano","followers_url":"https://api.github.com/users/ppcano/followers","following_url":"https://api.github.com/users/ppcano/following{/other_user}","gists_url":"https://api.github.com/users/ppcano/gists{/gist_id}","starred_url":"https://api.github.com/users/ppcano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppcano/subscriptions","organizations_url":"https://api.github.com/users/ppcano/orgs","repos_url":"https://api.github.com/users/ppcano/repos","events_url":"https://api.github.com/users/ppcano/events{/privacy}","received_events_url":"https://api.github.com/users/ppcano/received_events","type":"User","site_admin":false},"created_at":"2018-11-01T12:21:53Z","updated_at":"2018-11-01T12:21:53Z","author_association":"NONE","body":"1) > why are you putting these actions in the routes\r\n\r\nWe try to follow a pattern: actions interacting with the API are defined at the route level, so `store` or `fetch` services are rarely used in components or controllers. I am not arguing it is the correct pattern, but it helps us to group all the logic interacting with the backend.\r\n\r\n2) I share the RFC argument that there is a need for \"productivity\" to give a better solution to the existing situation.  We use `route-action` because we often need to trigger a route action on our controller templates, but we do not want to define a controller action to only forward the action to the route.\r\n\r\nI think having a default solution to improve this case would be a good addition. Either using the `route-action` helper or the `router service` are ok for me. "}}
{"actor":{"display_login":"ppcano"}}