{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/17699","repository_url":"https://api.github.com/repos/ManageIQ/manageiq","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/17699/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/17699/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/17699/events","html_url":"https://github.com/ManageIQ/manageiq/pull/17699","id":340721532,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxMDY2MDk3","number":17699,"title":"Add rake task for custom button export","user":{"login":"d-m-u","id":16326669,"node_id":"MDQ6VXNlcjE2MzI2NjY5","avatar_url":"https://avatars0.githubusercontent.com/u/16326669?v=4","gravatar_id":"","url":"https://api.github.com/users/d-m-u","html_url":"https://github.com/d-m-u","followers_url":"https://api.github.com/users/d-m-u/followers","following_url":"https://api.github.com/users/d-m-u/following{/other_user}","gists_url":"https://api.github.com/users/d-m-u/gists{/gist_id}","starred_url":"https://api.github.com/users/d-m-u/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d-m-u/subscriptions","organizations_url":"https://api.github.com/users/d-m-u/orgs","repos_url":"https://api.github.com/users/d-m-u/repos","events_url":"https://api.github.com/users/d-m-u/events{/privacy}","received_events_url":"https://api.github.com/users/d-m-u/received_events","type":"User","site_admin":false},"labels":[{"id":106615678,"node_id":"MDU6TGFiZWwxMDY2MTU2Nzg=","url":"https://api.github.com/repos/ManageIQ/manageiq/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"gmcculloug","id":2591569,"node_id":"MDQ6VXNlcjI1OTE1Njk=","avatar_url":"https://avatars0.githubusercontent.com/u/2591569?v=4","gravatar_id":"","url":"https://api.github.com/users/gmcculloug","html_url":"https://github.com/gmcculloug","followers_url":"https://api.github.com/users/gmcculloug/followers","following_url":"https://api.github.com/users/gmcculloug/following{/other_user}","gists_url":"https://api.github.com/users/gmcculloug/gists{/gist_id}","starred_url":"https://api.github.com/users/gmcculloug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmcculloug/subscriptions","organizations_url":"https://api.github.com/users/gmcculloug/orgs","repos_url":"https://api.github.com/users/gmcculloug/repos","events_url":"https://api.github.com/users/gmcculloug/events{/privacy}","received_events_url":"https://api.github.com/users/gmcculloug/received_events","type":"User","site_admin":false},"assignees":[{"login":"gmcculloug","id":2591569,"node_id":"MDQ6VXNlcjI1OTE1Njk=","avatar_url":"https://avatars0.githubusercontent.com/u/2591569?v=4","gravatar_id":"","url":"https://api.github.com/users/gmcculloug","html_url":"https://github.com/gmcculloug","followers_url":"https://api.github.com/users/gmcculloug/followers","following_url":"https://api.github.com/users/gmcculloug/following{/other_user}","gists_url":"https://api.github.com/users/gmcculloug/gists{/gist_id}","starred_url":"https://api.github.com/users/gmcculloug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmcculloug/subscriptions","organizations_url":"https://api.github.com/users/gmcculloug/orgs","repos_url":"https://api.github.com/users/gmcculloug/repos","events_url":"https://api.github.com/users/gmcculloug/events{/privacy}","received_events_url":"https://api.github.com/users/gmcculloug/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-07-12T17:01:30Z","updated_at":"2018-07-19T14:18:21Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/17699","html_url":"https://github.com/ManageIQ/manageiq/pull/17699","diff_url":"https://github.com/ManageIQ/manageiq/pull/17699.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/17699.patch"},"body":"We need to be able to import/export custom buttons. This is basically a generic active record object export that works on custom buttons. Specs to follow. \r\n\r\nThe related import PR: \r\nhttps://github.com/ManageIQ/manageiq/pull/17726\r\n\r\n\r\n\r\n### Related:\r\nhttps://github.com/ManageIQ/manageiq/pull/17726\r\n\r\n\r\n## Exporting\r\nCreate a directory for the exports: \r\n```mkdir /tmp/custom_buttons```\r\nExport cbs: \r\n```rake evm:export:custom_buttons -- --directory /tmp/custom_buttons```\r\n\r\nThe export has a list of custom_button_sets with nested custom_buttons and associated resource actions as well as custom_buttons without sets and their associated resources.\r\n\r\nexport looks like this:\r\n![screen shot 2018-07-19 at 8 58 09 am](https://user-images.githubusercontent.com/16326669/42943836-f002c82a-8b31-11e8-80ba-e7ea02f109ef.png)"},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/406292300","html_url":"https://github.com/ManageIQ/manageiq/pull/17699#issuecomment-406292300","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/17699","id":406292300,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjI5MjMwMA==","user":{"login":"d-m-u","id":16326669,"node_id":"MDQ6VXNlcjE2MzI2NjY5","avatar_url":"https://avatars0.githubusercontent.com/u/16326669?v=4","gravatar_id":"","url":"https://api.github.com/users/d-m-u","html_url":"https://github.com/d-m-u","followers_url":"https://api.github.com/users/d-m-u/followers","following_url":"https://api.github.com/users/d-m-u/following{/other_user}","gists_url":"https://api.github.com/users/d-m-u/gists{/gist_id}","starred_url":"https://api.github.com/users/d-m-u/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d-m-u/subscriptions","organizations_url":"https://api.github.com/users/d-m-u/orgs","repos_url":"https://api.github.com/users/d-m-u/repos","events_url":"https://api.github.com/users/d-m-u/events{/privacy}","received_events_url":"https://api.github.com/users/d-m-u/received_events","type":"User","site_admin":false},"created_at":"2018-07-19T14:18:21Z","updated_at":"2018-07-19T14:18:21Z","author_association":"CONTRIBUTOR","body":"Test failures unrelated to this code!"}}
{"actor":{"display_login":"d-m-u"}}