{"action":"opened","number":2058,"pull_request":{"url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/pulls/2058","id":63885289,"html_url":"https://github.com/hechoendrupal/DrupalConsole/pull/2058","diff_url":"https://github.com/hechoendrupal/DrupalConsole/pull/2058.diff","patch_url":"https://github.com/hechoendrupal/DrupalConsole/pull/2058.patch","issue_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/2058","number":2058,"state":"open","locked":false,"title":"Add a FieldTrait","user":{"login":"cosmicdreams","id":852080,"avatar_url":"https://avatars.githubusercontent.com/u/852080?v=3","gravatar_id":"","url":"https://api.github.com/users/cosmicdreams","html_url":"https://github.com/cosmicdreams","followers_url":"https://api.github.com/users/cosmicdreams/followers","following_url":"https://api.github.com/users/cosmicdreams/following{/other_user}","gists_url":"https://api.github.com/users/cosmicdreams/gists{/gist_id}","starred_url":"https://api.github.com/users/cosmicdreams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosmicdreams/subscriptions","organizations_url":"https://api.github.com/users/cosmicdreams/orgs","repos_url":"https://api.github.com/users/cosmicdreams/repos","events_url":"https://api.github.com/users/cosmicdreams/events{/privacy}","received_events_url":"https://api.github.com/users/cosmicdreams/received_events","type":"User","site_admin":false},"body":"Obviously this needs improvement, but I wanted to share the code we worked up last night for FieldTrait.  This is just a copy of FormTrait and then we tried to make it look for a list of fields instead of a list of form api definitions.  We didn't finish because we need to debug this to find the right way to get that list of fields.\r\n\r\nThe hurdles ahead:\r\n1. figure out how to get a list of fields\r\n2. Maybe we need to have a factory that can pick the right generator for field config\r\n3. Maybe we need to alter the wizard's workflow to provide a \"Shortcut\" were it just accepts all the defaults.","created_at":"2016-03-23T13:56:11Z","updated_at":"2016-03-23T13:56:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8278c387b547a25b06702e9ad1045b54f433b4c5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/pulls/2058/commits","review_comments_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/pulls/2058/comments","review_comment_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/2058/comments","statuses_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/statuses/6ba0d1ef95fb4cf635d95cb1e9f7a06c5fc47f3a","head":{"label":"cosmicdreams:feature/2057","ref":"feature/2057","sha":"6ba0d1ef95fb4cf635d95cb1e9f7a06c5fc47f3a","user":{"login":"cosmicdreams","id":852080,"avatar_url":"https://avatars.githubusercontent.com/u/852080?v=3","gravatar_id":"","url":"https://api.github.com/users/cosmicdreams","html_url":"https://github.com/cosmicdreams","followers_url":"https://api.github.com/users/cosmicdreams/followers","following_url":"https://api.github.com/users/cosmicdreams/following{/other_user}","gists_url":"https://api.github.com/users/cosmicdreams/gists{/gist_id}","starred_url":"https://api.github.com/users/cosmicdreams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosmicdreams/subscriptions","organizations_url":"https://api.github.com/users/cosmicdreams/orgs","repos_url":"https://api.github.com/users/cosmicdreams/repos","events_url":"https://api.github.com/users/cosmicdreams/events{/privacy}","received_events_url":"https://api.github.com/users/cosmicdreams/received_events","type":"User","site_admin":false},"repo":{"id":41817196,"name":"DrupalConsole","full_name":"cosmicdreams/DrupalConsole","owner":{"login":"cosmicdreams","id":852080,"avatar_url":"https://avatars.githubusercontent.com/u/852080?v=3","gravatar_id":"","url":"https://api.github.com/users/cosmicdreams","html_url":"https://github.com/cosmicdreams","followers_url":"https://api.github.com/users/cosmicdreams/followers","following_url":"https://api.github.com/users/cosmicdreams/following{/other_user}","gists_url":"https://api.github.com/users/cosmicdreams/gists{/gist_id}","starred_url":"https://api.github.com/users/cosmicdreams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosmicdreams/subscriptions","organizations_url":"https://api.github.com/users/cosmicdreams/orgs","repos_url":"https://api.github.com/users/cosmicdreams/repos","events_url":"https://api.github.com/users/cosmicdreams/events{/privacy}","received_events_url":"https://api.github.com/users/cosmicdreams/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cosmicdreams/DrupalConsole","description":"Drupal Console","fork":true,"url":"https://api.github.com/repos/cosmicdreams/DrupalConsole","forks_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/forks","keys_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/teams","hooks_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/hooks","issue_events_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/issues/events{/number}","events_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/events","assignees_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/assignees{/user}","branches_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/branches{/branch}","tags_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/tags","blobs_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/git/refs{/sha}","trees_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/statuses/{sha}","languages_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/languages","stargazers_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/stargazers","contributors_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/contributors","subscribers_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/subscribers","subscription_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/subscription","commits_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/commits{/sha}","git_commits_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/git/commits{/sha}","comments_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/comments{/number}","issue_comment_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/issues/comments{/number}","contents_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/contents/{+path}","compare_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/merges","archive_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/downloads","issues_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/issues{/number}","pulls_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/pulls{/number}","milestones_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/milestones{/number}","notifications_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/labels{/name}","releases_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/releases{/id}","deployments_url":"https://api.github.com/repos/cosmicdreams/DrupalConsole/deployments","created_at":"2015-09-02T17:52:54Z","updated_at":"2016-03-23T13:43:12Z","pushed_at":"2016-03-23T13:43:46Z","git_url":"git://github.com/cosmicdreams/DrupalConsole.git","ssh_url":"git@github.com:cosmicdreams/DrupalConsole.git","clone_url":"https://github.com/cosmicdreams/DrupalConsole.git","svn_url":"https://github.com/cosmicdreams/DrupalConsole","homepage":"http://drupalconsole.com","size":6686,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hechoendrupal:master","ref":"master","sha":"5dc8844e84db7ad9d918733944696a7255f110bd","user":{"login":"hechoendrupal","id":1341712,"avatar_url":"https://avatars.githubusercontent.com/u/1341712?v=3","gravatar_id":"","url":"https://api.github.com/users/hechoendrupal","html_url":"https://github.com/hechoendrupal","followers_url":"https://api.github.com/users/hechoendrupal/followers","following_url":"https://api.github.com/users/hechoendrupal/following{/other_user}","gists_url":"https://api.github.com/users/hechoendrupal/gists{/gist_id}","starred_url":"https://api.github.com/users/hechoendrupal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hechoendrupal/subscriptions","organizations_url":"https://api.github.com/users/hechoendrupal/orgs","repos_url":"https://api.github.com/users/hechoendrupal/repos","events_url":"https://api.github.com/users/hechoendrupal/events{/privacy}","received_events_url":"https://api.github.com/users/hechoendrupal/received_events","type":"Organization","site_admin":false},"repo":{"id":12452145,"name":"DrupalConsole","full_name":"hechoendrupal/DrupalConsole","owner":{"login":"hechoendrupal","id":1341712,"avatar_url":"https://avatars.githubusercontent.com/u/1341712?v=3","gravatar_id":"","url":"https://api.github.com/users/hechoendrupal","html_url":"https://github.com/hechoendrupal","followers_url":"https://api.github.com/users/hechoendrupal/followers","following_url":"https://api.github.com/users/hechoendrupal/following{/other_user}","gists_url":"https://api.github.com/users/hechoendrupal/gists{/gist_id}","starred_url":"https://api.github.com/users/hechoendrupal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hechoendrupal/subscriptions","organizations_url":"https://api.github.com/users/hechoendrupal/orgs","repos_url":"https://api.github.com/users/hechoendrupal/repos","events_url":"https://api.github.com/users/hechoendrupal/events{/privacy}","received_events_url":"https://api.github.com/users/hechoendrupal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hechoendrupal/DrupalConsole","description":"The Drupal Console is a CLI tool to generate boilerplate code, interact and debug Drupal 8.","fork":false,"url":"https://api.github.com/repos/hechoendrupal/DrupalConsole","forks_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/forks","keys_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/teams","hooks_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/hooks","issue_events_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/events{/number}","events_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/events","assignees_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/assignees{/user}","branches_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/branches{/branch}","tags_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/tags","blobs_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/git/refs{/sha}","trees_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/statuses/{sha}","languages_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/languages","stargazers_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/stargazers","contributors_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/contributors","subscribers_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/subscribers","subscription_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/subscription","commits_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/commits{/sha}","git_commits_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/git/commits{/sha}","comments_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/comments{/number}","issue_comment_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/comments{/number}","contents_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/contents/{+path}","compare_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/merges","archive_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/downloads","issues_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues{/number}","pulls_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/pulls{/number}","milestones_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/milestones{/number}","notifications_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/labels{/name}","releases_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/releases{/id}","deployments_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/deployments","created_at":"2013-08-29T05:22:06Z","updated_at":"2016-03-19T00:07:41Z","pushed_at":"2016-03-23T13:56:11Z","git_url":"git://github.com/hechoendrupal/DrupalConsole.git","ssh_url":"git@github.com:hechoendrupal/DrupalConsole.git","clone_url":"https://github.com/hechoendrupal/DrupalConsole.git","svn_url":"https://github.com/hechoendrupal/DrupalConsole","homepage":"http://drupalconsole.com","size":8174,"stargazers_count":389,"watchers_count":389,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":286,"mirror_url":null,"open_issues_count":153,"forks":286,"open_issues":153,"watchers":389,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hechoendrupal/DrupalConsole/pulls/2058"},"html":{"href":"https://github.com/hechoendrupal/DrupalConsole/pull/2058"},"issue":{"href":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/2058"},"comments":{"href":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/2058/comments"},"review_comments":{"href":"https://api.github.com/repos/hechoendrupal/DrupalConsole/pulls/2058/comments"},"review_comment":{"href":"https://api.github.com/repos/hechoendrupal/DrupalConsole/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hechoendrupal/DrupalConsole/pulls/2058/commits"},"statuses":{"href":"https://api.github.com/repos/hechoendrupal/DrupalConsole/statuses/6ba0d1ef95fb4cf635d95cb1e9f7a06c5fc47f3a"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":176,"deletions":0,"changed_files":1}}