{"action":"created","issue":{"url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/202","labels_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/202/labels{/name}","comments_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/202/comments","events_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/202/events","html_url":"https://github.com/javiereguiluz/EasyAdminBundle/pull/202","id":63544234,"number":202,"title":"Added support for custom actions and full action customization","user":{"login":"javiereguiluz","id":73419,"avatar_url":"https://avatars.githubusercontent.com/u/73419?v=3","gravatar_id":"","url":"https://api.github.com/users/javiereguiluz","html_url":"https://github.com/javiereguiluz","followers_url":"https://api.github.com/users/javiereguiluz/followers","following_url":"https://api.github.com/users/javiereguiluz/following{/other_user}","gists_url":"https://api.github.com/users/javiereguiluz/gists{/gist_id}","starred_url":"https://api.github.com/users/javiereguiluz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javiereguiluz/subscriptions","organizations_url":"https://api.github.com/users/javiereguiluz/orgs","repos_url":"https://api.github.com/users/javiereguiluz/repos","events_url":"https://api.github.com/users/javiereguiluz/events{/privacy}","received_events_url":"https://api.github.com/users/javiereguiluz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-03-22T15:34:10Z","updated_at":"2015-03-28T16:56:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/pulls/202","html_url":"https://github.com/javiereguiluz/EasyAdminBundle/pull/202","diff_url":"https://github.com/javiereguiluz/EasyAdminBundle/pull/202.diff","patch_url":"https://github.com/javiereguiluz/EasyAdminBundle/pull/202.patch"},"body":"This PR is massive because it introduces a fundamental change to the nomenclature used so far by the bundle. In the past we talked about **actions** (edit action, lsit action, etc.) and now we talk about **views** and **actions**. [This image](https://github.com/javiereguiluz/EasyAdminBundle/blob/59808adfef70702932d0268c4be32e6c5658071a/Resources/doc/images/easyadmin-list-view-actions.png) explains the differences: views are \"pages\" (edit, show, search and list) and actions can be anything and they can be added or removed from the views.\r\n\r\n\r\nThe other important thing of this PR is the [new Chapter 8](https://github.com/javiereguiluz/EasyAdminBundle/blob/59808adfef70702932d0268c4be32e6c5658071a/Resources/doc/8-customizing-view-actions.md) which explains how to customize built-in actions and how to define your own custom actions.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/comments/87267478","html_url":"https://github.com/javiereguiluz/EasyAdminBundle/pull/202#issuecomment-87267478","issue_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/202","id":87267478,"user":{"login":"ogizanagi","id":2211145,"avatar_url":"https://avatars.githubusercontent.com/u/2211145?v=3","gravatar_id":"","url":"https://api.github.com/users/ogizanagi","html_url":"https://github.com/ogizanagi","followers_url":"https://api.github.com/users/ogizanagi/followers","following_url":"https://api.github.com/users/ogizanagi/following{/other_user}","gists_url":"https://api.github.com/users/ogizanagi/gists{/gist_id}","starred_url":"https://api.github.com/users/ogizanagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogizanagi/subscriptions","organizations_url":"https://api.github.com/users/ogizanagi/orgs","repos_url":"https://api.github.com/users/ogizanagi/repos","events_url":"https://api.github.com/users/ogizanagi/events{/privacy}","received_events_url":"https://api.github.com/users/ogizanagi/received_events","type":"User","site_admin":false},"created_at":"2015-03-28T16:56:30Z","updated_at":"2015-03-28T16:56:30Z","body":"The only thing really bothering me with the current implementation, is in fact that the action's name depend a lot of the way the user designed his app. The action's name should be a really simple identifier. The route one may have some prefix or anything to identify properly the route in the application. Plus it will be this route name that will be shown in the query string `?action=customActionName`.\r\n\r\n```yaml\r\nactions: \r\n    - { label: 'restock', type: 'route', name: 'app_product_restock' }\r\n```\r\n\r\n=> `?action=app_product_restock` instead of `?action=restock` \r\n\r\n"}}