{"action":"created","comment":{"url":"https://api.github.com/repos/wp-graphql/wp-graphql/pulls/comments/232821898","pull_request_review_id":174105701,"id":232821898,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjgyMTg5OA==","diff_hunk":"@@ -0,0 +1,7 @@\n+<?php\n+namespace WPGraphQL\\Type;\n+\n+register_graphql_enum_type( 'ImageSizeEnum', [","path":"src/Type/Enum/ImageSizeEnum.php","position":4,"original_position":4,"commit_id":"6898b76001a76b0264461d6d1527b9651d6ddc50","original_commit_id":"6898b76001a76b0264461d6d1527b9651d6ddc50","user":{"login":"jasonbahl","id":1260765,"node_id":"MDQ6VXNlcjEyNjA3NjU=","avatar_url":"https://avatars3.githubusercontent.com/u/1260765?v=4","gravatar_id":"","url":"https://api.github.com/users/jasonbahl","html_url":"https://github.com/jasonbahl","followers_url":"https://api.github.com/users/jasonbahl/followers","following_url":"https://api.github.com/users/jasonbahl/following{/other_user}","gists_url":"https://api.github.com/users/jasonbahl/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonbahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonbahl/subscriptions","organizations_url":"https://api.github.com/users/jasonbahl/orgs","repos_url":"https://api.github.com/users/jasonbahl/repos","events_url":"https://api.github.com/users/jasonbahl/events{/privacy}","received_events_url":"https://api.github.com/users/jasonbahl/received_events","type":"User","site_admin":false},"body":"Not seeing this used in the PR. Am I still overlooking something maybe?","created_at":"2018-11-12T21:42:31Z","updated_at":"2018-11-12T21:42:31Z","html_url":"https://github.com/wp-graphql/wp-graphql/pull/579#discussion_r232821898","pull_request_url":"https://api.github.com/repos/wp-graphql/wp-graphql/pulls/579","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/wp-graphql/wp-graphql/pulls/comments/232821898"},"html":{"href":"https://github.com/wp-graphql/wp-graphql/pull/579#discussion_r232821898"},"pull_request":{"href":"https://api.github.com/repos/wp-graphql/wp-graphql/pulls/579"}}},"pull_request":{"url":"https://api.github.com/repos/wp-graphql/wp-graphql/pulls/579","id":230274846,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwMjc0ODQ2","html_url":"https://github.com/wp-graphql/wp-graphql/pull/579","diff_url":"https://github.com/wp-graphql/wp-graphql/pull/579.diff","patch_url":"https://github.com/wp-graphql/wp-graphql/pull/579.patch","issue_url":"https://api.github.com/repos/wp-graphql/wp-graphql/issues/579","number":579,"state":"open","locked":false,"title":"Refactored issue#20 21 widget queries","user":{"login":"kidunot89","id":13604318,"node_id":"MDQ6VXNlcjEzNjA0MzE4","avatar_url":"https://avatars2.githubusercontent.com/u/13604318?v=4","gravatar_id":"","url":"https://api.github.com/users/kidunot89","html_url":"https://github.com/kidunot89","followers_url":"https://api.github.com/users/kidunot89/followers","following_url":"https://api.github.com/users/kidunot89/following{/other_user}","gists_url":"https://api.github.com/users/kidunot89/gists{/gist_id}","starred_url":"https://api.github.com/users/kidunot89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kidunot89/subscriptions","organizations_url":"https://api.github.com/users/kidunot89/orgs","repos_url":"https://api.github.com/users/kidunot89/repos","events_url":"https://api.github.com/users/kidunot89/events{/privacy}","received_events_url":"https://api.github.com/users/kidunot89/received_events","type":"User","site_admin":false},"body":"### Your checklist for this pull request\r\nThanks for sending a pull request! Please make sure you click the link above to view the contribution guidelines, then fill out the blanks below.\r\n\r\n🚨Please review the [guidelines for contributing](../CONTRIBUTING.md) to this repository.\r\n\r\n- [ ] Make sure you are making a pull request against the **develop branch** (left side). Also you should start *your branch* off *our develop*.\r\n- [ ] Make sure you are requesting to pull request from a **topic/feature/bugfix branch** (right side). Don't pull request from your master!\r\n\r\nWhat does this implement/fix? Explain your changes.\r\n---------------------------------------------------\r\n- #20 Adds `Sidebar`, `WidgetInterface`, `ArchivesWidget`, `AudioWidget`, `CalendarWidget`, `CategoriesWidget`, `CustomHTMLWidget`, `GalleryWidget`, `ImageWidget`, `MetaWidget`, `NavMenuWidget`, `PagesWidget`, `RecentCommentsWidget`, RecentPostsWidget`, `RSSWidget`,\r\n`SearchWidget`, `TagCloudWidget`, `TextWidget`, and `VideoWidget` types. \r\nAlso well as `sidebars`, and `widgets` connections. Fields `sidebar`, `sidebarBy`, `widget`, and `widgetBy` added to `RootQuery`. And last, `widgets` => `Sidebar` connection added.\r\n- #517 Change made to `ConnectionResolver.php` go [here](https://github.com/wp-graphql/wp-graphql/pull/540) for more details.\r\n- Adds `register_graphql_interface_type`. Implementing Widgets using Unions was simply was not possible. If I used a Union, I would have to register a query for each widget like so `archivesWidget`, `calendarWidget`, etc... I'd also have to redefine the 4 base widget fields (`id`, `widgetId`, `basename`, `name` ) for each widget. To use the `register_graphql_interface_type` is almost identical to `register_graphql_union_type` expect is has a `fields` field in the `config` param. To create a child type of the interface type simple add an `interfaces` fields to your `register_graphql_object_type` `config` param like so. `'interfaces' => [ 'interfaceOne', 'interfaceTwo' ]`. \r\n- `typeLoader` added to `core` Schema\r\n\r\n\r\nDoes this close any currently open issues?\r\n------------------------------------------\r\n#20 #517 \r\n\r\n\r\nAny relevant logs, error output, GraphiQL screenshots, etc?\r\n-------------------------------------\r\n(If it’s long, please paste to https://ghostbin.com/ and insert the link here.)\r\n\r\n\r\nAny other comments?\r\n-------------------\r\n…\r\n\r\n\r\nWhere has this been tested?\r\n---------------------------\r\n**Operating System:** Ubuntu 18.04\r\n\r\n**WordPress Version:** 4.9.8\r\n","created_at":"2018-11-12T21:32:04Z","updated_at":"2018-11-12T21:42:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"41985d71d2377b6f83c88414e8a79ccb6dc0d364","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wp-graphql/wp-graphql/pulls/579/commits","review_comments_url":"https://api.github.com/repos/wp-graphql/wp-graphql/pulls/579/comments","review_comment_url":"https://api.github.com/repos/wp-graphql/wp-graphql/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wp-graphql/wp-graphql/issues/579/comments","statuses_url":"https://api.github.com/repos/wp-graphql/wp-graphql/statuses/6898b76001a76b0264461d6d1527b9651d6ddc50","head":{"label":"kidunot89:refactored-issue#20-21-widget-queries","ref":"refactored-issue#20-21-widget-queries","sha":"6898b76001a76b0264461d6d1527b9651d6ddc50","user":{"login":"kidunot89","id":13604318,"node_id":"MDQ6VXNlcjEzNjA0MzE4","avatar_url":"https://avatars2.githubusercontent.com/u/13604318?v=4","gravatar_id":"","url":"https://api.github.com/users/kidunot89","html_url":"https://github.com/kidunot89","followers_url":"https://api.github.com/users/kidunot89/followers","following_url":"https://api.github.com/users/kidunot89/following{/other_user}","gists_url":"https://api.github.com/users/kidunot89/gists{/gist_id}","starred_url":"https://api.github.com/users/kidunot89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kidunot89/subscriptions","organizations_url":"https://api.github.com/users/kidunot89/orgs","repos_url":"https://api.github.com/users/kidunot89/repos","events_url":"https://api.github.com/users/kidunot89/events{/privacy}","received_events_url":"https://api.github.com/users/kidunot89/received_events","type":"User","site_admin":false},"repo":{"id":139393960,"node_id":"MDEwOlJlcG9zaXRvcnkxMzkzOTM5NjA=","name":"wp-graphql","full_name":"kidunot89/wp-graphql","private":false,"owner":{"login":"kidunot89","id":13604318,"node_id":"MDQ6VXNlcjEzNjA0MzE4","avatar_url":"https://avatars2.githubusercontent.com/u/13604318?v=4","gravatar_id":"","url":"https://api.github.com/users/kidunot89","html_url":"https://github.com/kidunot89","followers_url":"https://api.github.com/users/kidunot89/followers","following_url":"https://api.github.com/users/kidunot89/following{/other_user}","gists_url":"https://api.github.com/users/kidunot89/gists{/gist_id}","starred_url":"https://api.github.com/users/kidunot89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kidunot89/subscriptions","organizations_url":"https://api.github.com/users/kidunot89/orgs","repos_url":"https://api.github.com/users/kidunot89/repos","events_url":"https://api.github.com/users/kidunot89/events{/privacy}","received_events_url":"https://api.github.com/users/kidunot89/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kidunot89/wp-graphql","description":"A GraphQL API for WordPress","fork":true,"url":"https://api.github.com/repos/kidunot89/wp-graphql","forks_url":"https://api.github.com/repos/kidunot89/wp-graphql/forks","keys_url":"https://api.github.com/repos/kidunot89/wp-graphql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kidunot89/wp-graphql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kidunot89/wp-graphql/teams","hooks_url":"https://api.github.com/repos/kidunot89/wp-graphql/hooks","issue_events_url":"https://api.github.com/repos/kidunot89/wp-graphql/issues/events{/number}","events_url":"https://api.github.com/repos/kidunot89/wp-graphql/events","assignees_url":"https://api.github.com/repos/kidunot89/wp-graphql/assignees{/user}","branches_url":"https://api.github.com/repos/kidunot89/wp-graphql/branches{/branch}","tags_url":"https://api.github.com/repos/kidunot89/wp-graphql/tags","blobs_url":"https://api.github.com/repos/kidunot89/wp-graphql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kidunot89/wp-graphql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kidunot89/wp-graphql/git/refs{/sha}","trees_url":"https://api.github.com/repos/kidunot89/wp-graphql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kidunot89/wp-graphql/statuses/{sha}","languages_url":"https://api.github.com/repos/kidunot89/wp-graphql/languages","stargazers_url":"https://api.github.com/repos/kidunot89/wp-graphql/stargazers","contributors_url":"https://api.github.com/repos/kidunot89/wp-graphql/contributors","subscribers_url":"https://api.github.com/repos/kidunot89/wp-graphql/subscribers","subscription_url":"https://api.github.com/repos/kidunot89/wp-graphql/subscription","commits_url":"https://api.github.com/repos/kidunot89/wp-graphql/commits{/sha}","git_commits_url":"https://api.github.com/repos/kidunot89/wp-graphql/git/commits{/sha}","comments_url":"https://api.github.com/repos/kidunot89/wp-graphql/comments{/number}","issue_comment_url":"https://api.github.com/repos/kidunot89/wp-graphql/issues/comments{/number}","contents_url":"https://api.github.com/repos/kidunot89/wp-graphql/contents/{+path}","compare_url":"https://api.github.com/repos/kidunot89/wp-graphql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kidunot89/wp-graphql/merges","archive_url":"https://api.github.com/repos/kidunot89/wp-graphql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kidunot89/wp-graphql/downloads","issues_url":"https://api.github.com/repos/kidunot89/wp-graphql/issues{/number}","pulls_url":"https://api.github.com/repos/kidunot89/wp-graphql/pulls{/number}","milestones_url":"https://api.github.com/repos/kidunot89/wp-graphql/milestones{/number}","notifications_url":"https://api.github.com/repos/kidunot89/wp-graphql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kidunot89/wp-graphql/labels{/name}","releases_url":"https://api.github.com/repos/kidunot89/wp-graphql/releases{/id}","deployments_url":"https://api.github.com/repos/kidunot89/wp-graphql/deployments","created_at":"2018-07-02T05:18:12Z","updated_at":"2018-08-14T03:05:24Z","pushed_at":"2018-11-12T21:31:46Z","git_url":"git://github.com/kidunot89/wp-graphql.git","ssh_url":"git@github.com:kidunot89/wp-graphql.git","clone_url":"https://github.com/kidunot89/wp-graphql.git","svn_url":"https://github.com/kidunot89/wp-graphql","homepage":"https://www.wpgraphql.com","size":16764,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"wp-graphql:develop","ref":"develop","sha":"e0f7738954e5c13d5c75c3fd5d5b35bc2a74083d","user":{"login":"wp-graphql","id":24994409,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0OTk0NDA5","avatar_url":"https://avatars0.githubusercontent.com/u/24994409?v=4","gravatar_id":"","url":"https://api.github.com/users/wp-graphql","html_url":"https://github.com/wp-graphql","followers_url":"https://api.github.com/users/wp-graphql/followers","following_url":"https://api.github.com/users/wp-graphql/following{/other_user}","gists_url":"https://api.github.com/users/wp-graphql/gists{/gist_id}","starred_url":"https://api.github.com/users/wp-graphql/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wp-graphql/subscriptions","organizations_url":"https://api.github.com/users/wp-graphql/orgs","repos_url":"https://api.github.com/users/wp-graphql/repos","events_url":"https://api.github.com/users/wp-graphql/events{/privacy}","received_events_url":"https://api.github.com/users/wp-graphql/received_events","type":"Organization","site_admin":false},"repo":{"id":72453516,"node_id":"MDEwOlJlcG9zaXRvcnk3MjQ1MzUxNg==","name":"wp-graphql","full_name":"wp-graphql/wp-graphql","private":false,"owner":{"login":"wp-graphql","id":24994409,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0OTk0NDA5","avatar_url":"https://avatars0.githubusercontent.com/u/24994409?v=4","gravatar_id":"","url":"https://api.github.com/users/wp-graphql","html_url":"https://github.com/wp-graphql","followers_url":"https://api.github.com/users/wp-graphql/followers","following_url":"https://api.github.com/users/wp-graphql/following{/other_user}","gists_url":"https://api.github.com/users/wp-graphql/gists{/gist_id}","starred_url":"https://api.github.com/users/wp-graphql/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wp-graphql/subscriptions","organizations_url":"https://api.github.com/users/wp-graphql/orgs","repos_url":"https://api.github.com/users/wp-graphql/repos","events_url":"https://api.github.com/users/wp-graphql/events{/privacy}","received_events_url":"https://api.github.com/users/wp-graphql/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/wp-graphql/wp-graphql","description":"A GraphQL API for WordPress","fork":false,"url":"https://api.github.com/repos/wp-graphql/wp-graphql","forks_url":"https://api.github.com/repos/wp-graphql/wp-graphql/forks","keys_url":"https://api.github.com/repos/wp-graphql/wp-graphql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wp-graphql/wp-graphql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wp-graphql/wp-graphql/teams","hooks_url":"https://api.github.com/repos/wp-graphql/wp-graphql/hooks","issue_events_url":"https://api.github.com/repos/wp-graphql/wp-graphql/issues/events{/number}","events_url":"https://api.github.com/repos/wp-graphql/wp-graphql/events","assignees_url":"https://api.github.com/repos/wp-graphql/wp-graphql/assignees{/user}","branches_url":"https://api.github.com/repos/wp-graphql/wp-graphql/branches{/branch}","tags_url":"https://api.github.com/repos/wp-graphql/wp-graphql/tags","blobs_url":"https://api.github.com/repos/wp-graphql/wp-graphql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wp-graphql/wp-graphql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wp-graphql/wp-graphql/git/refs{/sha}","trees_url":"https://api.github.com/repos/wp-graphql/wp-graphql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wp-graphql/wp-graphql/statuses/{sha}","languages_url":"https://api.github.com/repos/wp-graphql/wp-graphql/languages","stargazers_url":"https://api.github.com/repos/wp-graphql/wp-graphql/stargazers","contributors_url":"https://api.github.com/repos/wp-graphql/wp-graphql/contributors","subscribers_url":"https://api.github.com/repos/wp-graphql/wp-graphql/subscribers","subscription_url":"https://api.github.com/repos/wp-graphql/wp-graphql/subscription","commits_url":"https://api.github.com/repos/wp-graphql/wp-graphql/commits{/sha}","git_commits_url":"https://api.github.com/repos/wp-graphql/wp-graphql/git/commits{/sha}","comments_url":"https://api.github.com/repos/wp-graphql/wp-graphql/comments{/number}","issue_comment_url":"https://api.github.com/repos/wp-graphql/wp-graphql/issues/comments{/number}","contents_url":"https://api.github.com/repos/wp-graphql/wp-graphql/contents/{+path}","compare_url":"https://api.github.com/repos/wp-graphql/wp-graphql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wp-graphql/wp-graphql/merges","archive_url":"https://api.github.com/repos/wp-graphql/wp-graphql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wp-graphql/wp-graphql/downloads","issues_url":"https://api.github.com/repos/wp-graphql/wp-graphql/issues{/number}","pulls_url":"https://api.github.com/repos/wp-graphql/wp-graphql/pulls{/number}","milestones_url":"https://api.github.com/repos/wp-graphql/wp-graphql/milestones{/number}","notifications_url":"https://api.github.com/repos/wp-graphql/wp-graphql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wp-graphql/wp-graphql/labels{/name}","releases_url":"https://api.github.com/repos/wp-graphql/wp-graphql/releases{/id}","deployments_url":"https://api.github.com/repos/wp-graphql/wp-graphql/deployments","created_at":"2016-10-31T16:06:18Z","updated_at":"2018-11-11T21:34:03Z","pushed_at":"2018-11-12T21:32:04Z","git_url":"git://github.com/wp-graphql/wp-graphql.git","ssh_url":"git@github.com:wp-graphql/wp-graphql.git","clone_url":"https://github.com/wp-graphql/wp-graphql.git","svn_url":"https://github.com/wp-graphql/wp-graphql","homepage":"https://www.wpgraphql.com","size":16461,"stargazers_count":875,"watchers_count":875,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":125,"mirror_url":null,"archived":false,"open_issues_count":80,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":125,"open_issues":80,"watchers":875,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/wp-graphql/wp-graphql/pulls/579"},"html":{"href":"https://github.com/wp-graphql/wp-graphql/pull/579"},"issue":{"href":"https://api.github.com/repos/wp-graphql/wp-graphql/issues/579"},"comments":{"href":"https://api.github.com/repos/wp-graphql/wp-graphql/issues/579/comments"},"review_comments":{"href":"https://api.github.com/repos/wp-graphql/wp-graphql/pulls/579/comments"},"review_comment":{"href":"https://api.github.com/repos/wp-graphql/wp-graphql/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wp-graphql/wp-graphql/pulls/579/commits"},"statuses":{"href":"https://api.github.com/repos/wp-graphql/wp-graphql/statuses/6898b76001a76b0264461d6d1527b9651d6ddc50"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"jasonbahl"}}