{"action":"opened","number":564,"pull_request":{"url":"https://api.github.com/repos/eventespresso/event-espresso-core/pulls/564","id":199010408,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5MDEwNDA4","html_url":"https://github.com/eventespresso/event-espresso-core/pull/564","diff_url":"https://github.com/eventespresso/event-espresso-core/pull/564.diff","patch_url":"https://github.com/eventespresso/event-espresso-core/pull/564.patch","issue_url":"https://api.github.com/repos/eventespresso/event-espresso-core/issues/564","number":564,"state":"open","locked":false,"title":"Expose models on eejs (Gutenberg)","user":{"login":"nerrad","id":1429108,"node_id":"MDQ6VXNlcjE0MjkxMDg=","avatar_url":"https://avatars1.githubusercontent.com/u/1429108?v=4","gravatar_id":"","url":"https://api.github.com/users/nerrad","html_url":"https://github.com/nerrad","followers_url":"https://api.github.com/users/nerrad/followers","following_url":"https://api.github.com/users/nerrad/following{/other_user}","gists_url":"https://api.github.com/users/nerrad/gists{/gist_id}","starred_url":"https://api.github.com/users/nerrad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nerrad/subscriptions","organizations_url":"https://api.github.com/users/nerrad/orgs","repos_url":"https://api.github.com/users/nerrad/repos","events_url":"https://api.github.com/users/nerrad/events{/privacy}","received_events_url":"https://api.github.com/users/nerrad/received_events","type":"User","site_admin":false},"body":"<!-- Thanks for your pull request.  Comments within these type of tags will be hidden and not show up when you submit your pull request -->\r\n<!-- Please answer the following questions in order to expediate acceptance -->\r\n\r\n## Problem this Pull Request solves\r\n<!-- Please describe your changes in the context of the problem they solve -->\r\n\r\nWhile working on the Barcode Scanner App upgrade to react, I realized that EE core models will need exposed for add-ons to be able to use.  I think internally for ee **core** we should still directly import model logic so its built with the code using it.   This is why the script handle and registered script for the exposed models is not a dependency for the components or hocs scripts.\r\n\r\nThis pull:\r\n\r\n- exposed models using the `model` chunk name and when loaded with the registered script via `eejs.model`.\r\n- adds documentation for `eejs.helpers` and `eejs.model`\r\n\r\n## How has this been tested\r\n<!-- Please describe in detail how you tested your changes and how testing can be reproduced -->\r\n<!-- Include details of your testing environment, and tests ran to see how your changes affect other areas of code -->\r\n<!-- Include any notes about automated tests you've written for this pull request.  Pull requests with automated tests are preferred. -->\r\n\r\n* [ ] I temporarily added the new model script as a dependency to the exit modal I have loading on the WordPress plugins page and then tested in the browser console that `eejs.model` was exposed and had expected interfaces on it.\r\n\r\n## Checklist\r\n\r\n* [ ] I have added a changelog entry for this pull request\r\n* [ ] I have read the documentation relating to systems affected by this pull request, see https://github.com/eventespresso/event-espresso-core/tree/master/docs\r\n* [ ] User input is adequately validated and sanitized\r\n* [ ] all publicly displayed strings are internationalized (usually using `esc_html__()`, see https://codex.wordpress.org/I18n_for_WordPress_Developers)\r\n* [ ] My code is tested.\r\n* [ ] My code follows the Event Espresso code style.\r\n* [ ] My code has proper inline documentation.\r\n* [ ] My code accounts for when the site is Maintenance Mode (MM2 especially disallows usage of models)\r\n","created_at":"2018-07-03T15:55:37Z","updated_at":"2018-07-03T15:55:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/eventespresso/event-espresso-core/pulls/564/commits","review_comments_url":"https://api.github.com/repos/eventespresso/event-espresso-core/pulls/564/comments","review_comment_url":"https://api.github.com/repos/eventespresso/event-espresso-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eventespresso/event-espresso-core/issues/564/comments","statuses_url":"https://api.github.com/repos/eventespresso/event-espresso-core/statuses/d7082813e7d83997d76c644c50dd395b99834f19","head":{"label":"eventespresso:Gutenberg/expose-models-on-eejs","ref":"Gutenberg/expose-models-on-eejs","sha":"d7082813e7d83997d76c644c50dd395b99834f19","user":{"login":"eventespresso","id":3077278,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwNzcyNzg=","avatar_url":"https://avatars2.githubusercontent.com/u/3077278?v=4","gravatar_id":"","url":"https://api.github.com/users/eventespresso","html_url":"https://github.com/eventespresso","followers_url":"https://api.github.com/users/eventespresso/followers","following_url":"https://api.github.com/users/eventespresso/following{/other_user}","gists_url":"https://api.github.com/users/eventespresso/gists{/gist_id}","starred_url":"https://api.github.com/users/eventespresso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eventespresso/subscriptions","organizations_url":"https://api.github.com/users/eventespresso/orgs","repos_url":"https://api.github.com/users/eventespresso/repos","events_url":"https://api.github.com/users/eventespresso/events{/privacy}","received_events_url":"https://api.github.com/users/eventespresso/received_events","type":"Organization","site_admin":false},"repo":{"id":7252233,"node_id":"MDEwOlJlcG9zaXRvcnk3MjUyMjMz","name":"event-espresso-core","full_name":"eventespresso/event-espresso-core","owner":{"login":"eventespresso","id":3077278,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwNzcyNzg=","avatar_url":"https://avatars2.githubusercontent.com/u/3077278?v=4","gravatar_id":"","url":"https://api.github.com/users/eventespresso","html_url":"https://github.com/eventespresso","followers_url":"https://api.github.com/users/eventespresso/followers","following_url":"https://api.github.com/users/eventespresso/following{/other_user}","gists_url":"https://api.github.com/users/eventespresso/gists{/gist_id}","starred_url":"https://api.github.com/users/eventespresso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eventespresso/subscriptions","organizations_url":"https://api.github.com/users/eventespresso/orgs","repos_url":"https://api.github.com/users/eventespresso/repos","events_url":"https://api.github.com/users/eventespresso/events{/privacy}","received_events_url":"https://api.github.com/users/eventespresso/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eventespresso/event-espresso-core","description":"Event Espresso 4 Core for WordPress: Build an Event Ticketing Website Today!","fork":false,"url":"https://api.github.com/repos/eventespresso/event-espresso-core","forks_url":"https://api.github.com/repos/eventespresso/event-espresso-core/forks","keys_url":"https://api.github.com/repos/eventespresso/event-espresso-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eventespresso/event-espresso-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eventespresso/event-espresso-core/teams","hooks_url":"https://api.github.com/repos/eventespresso/event-espresso-core/hooks","issue_events_url":"https://api.github.com/repos/eventespresso/event-espresso-core/issues/events{/number}","events_url":"https://api.github.com/repos/eventespresso/event-espresso-core/events","assignees_url":"https://api.github.com/repos/eventespresso/event-espresso-core/assignees{/user}","branches_url":"https://api.github.com/repos/eventespresso/event-espresso-core/branches{/branch}","tags_url":"https://api.github.com/repos/eventespresso/event-espresso-core/tags","blobs_url":"https://api.github.com/repos/eventespresso/event-espresso-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eventespresso/event-espresso-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eventespresso/event-espresso-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/eventespresso/event-espresso-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eventespresso/event-espresso-core/statuses/{sha}","languages_url":"https://api.github.com/repos/eventespresso/event-espresso-core/languages","stargazers_url":"https://api.github.com/repos/eventespresso/event-espresso-core/stargazers","contributors_url":"https://api.github.com/repos/eventespresso/event-espresso-core/contributors","subscribers_url":"https://api.github.com/repos/eventespresso/event-espresso-core/subscribers","subscription_url":"https://api.github.com/repos/eventespresso/event-espresso-core/subscription","commits_url":"https://api.github.com/repos/eventespresso/event-espresso-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/eventespresso/event-espresso-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/eventespresso/event-espresso-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/eventespresso/event-espresso-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/eventespresso/event-espresso-core/contents/{+path}","compare_url":"https://api.github.com/repos/eventespresso/event-espresso-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eventespresso/event-espresso-core/merges","archive_url":"https://api.github.com/repos/eventespresso/event-espresso-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eventespresso/event-espresso-core/downloads","issues_url":"https://api.github.com/repos/eventespresso/event-espresso-core/issues{/number}","pulls_url":"https://api.github.com/repos/eventespresso/event-espresso-core/pulls{/number}","milestones_url":"https://api.github.com/repos/eventespresso/event-espresso-core/milestones{/number}","notifications_url":"https://api.github.com/repos/eventespresso/event-espresso-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eventespresso/event-espresso-core/labels{/name}","releases_url":"https://api.github.com/repos/eventespresso/event-espresso-core/releases{/id}","deployments_url":"https://api.github.com/repos/eventespresso/event-espresso-core/deployments","created_at":"2012-12-20T04:38:57Z","updated_at":"2018-06-29T19:22:12Z","pushed_at":"2018-07-03T15:50:51Z","git_url":"git://github.com/eventespresso/event-espresso-core.git","ssh_url":"git@github.com:eventespresso/event-espresso-core.git","clone_url":"https://github.com/eventespresso/event-espresso-core.git","svn_url":"https://github.com/eventespresso/event-espresso-core","homepage":"https://eventespresso.com","size":102472,"stargazers_count":85,"watchers_count":85,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":53,"mirror_url":null,"archived":false,"open_issues_count":80,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":53,"open_issues":80,"watchers":85,"default_branch":"master"}},"base":{"label":"eventespresso:Gutenberg/master","ref":"Gutenberg/master","sha":"3420850aa71bbee4748535bd2386f297ddc83249","user":{"login":"eventespresso","id":3077278,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwNzcyNzg=","avatar_url":"https://avatars2.githubusercontent.com/u/3077278?v=4","gravatar_id":"","url":"https://api.github.com/users/eventespresso","html_url":"https://github.com/eventespresso","followers_url":"https://api.github.com/users/eventespresso/followers","following_url":"https://api.github.com/users/eventespresso/following{/other_user}","gists_url":"https://api.github.com/users/eventespresso/gists{/gist_id}","starred_url":"https://api.github.com/users/eventespresso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eventespresso/subscriptions","organizations_url":"https://api.github.com/users/eventespresso/orgs","repos_url":"https://api.github.com/users/eventespresso/repos","events_url":"https://api.github.com/users/eventespresso/events{/privacy}","received_events_url":"https://api.github.com/users/eventespresso/received_events","type":"Organization","site_admin":false},"repo":{"id":7252233,"node_id":"MDEwOlJlcG9zaXRvcnk3MjUyMjMz","name":"event-espresso-core","full_name":"eventespresso/event-espresso-core","owner":{"login":"eventespresso","id":3077278,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwNzcyNzg=","avatar_url":"https://avatars2.githubusercontent.com/u/3077278?v=4","gravatar_id":"","url":"https://api.github.com/users/eventespresso","html_url":"https://github.com/eventespresso","followers_url":"https://api.github.com/users/eventespresso/followers","following_url":"https://api.github.com/users/eventespresso/following{/other_user}","gists_url":"https://api.github.com/users/eventespresso/gists{/gist_id}","starred_url":"https://api.github.com/users/eventespresso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eventespresso/subscriptions","organizations_url":"https://api.github.com/users/eventespresso/orgs","repos_url":"https://api.github.com/users/eventespresso/repos","events_url":"https://api.github.com/users/eventespresso/events{/privacy}","received_events_url":"https://api.github.com/users/eventespresso/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eventespresso/event-espresso-core","description":"Event Espresso 4 Core for WordPress: Build an Event Ticketing Website Today!","fork":false,"url":"https://api.github.com/repos/eventespresso/event-espresso-core","forks_url":"https://api.github.com/repos/eventespresso/event-espresso-core/forks","keys_url":"https://api.github.com/repos/eventespresso/event-espresso-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eventespresso/event-espresso-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eventespresso/event-espresso-core/teams","hooks_url":"https://api.github.com/repos/eventespresso/event-espresso-core/hooks","issue_events_url":"https://api.github.com/repos/eventespresso/event-espresso-core/issues/events{/number}","events_url":"https://api.github.com/repos/eventespresso/event-espresso-core/events","assignees_url":"https://api.github.com/repos/eventespresso/event-espresso-core/assignees{/user}","branches_url":"https://api.github.com/repos/eventespresso/event-espresso-core/branches{/branch}","tags_url":"https://api.github.com/repos/eventespresso/event-espresso-core/tags","blobs_url":"https://api.github.com/repos/eventespresso/event-espresso-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eventespresso/event-espresso-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eventespresso/event-espresso-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/eventespresso/event-espresso-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eventespresso/event-espresso-core/statuses/{sha}","languages_url":"https://api.github.com/repos/eventespresso/event-espresso-core/languages","stargazers_url":"https://api.github.com/repos/eventespresso/event-espresso-core/stargazers","contributors_url":"https://api.github.com/repos/eventespresso/event-espresso-core/contributors","subscribers_url":"https://api.github.com/repos/eventespresso/event-espresso-core/subscribers","subscription_url":"https://api.github.com/repos/eventespresso/event-espresso-core/subscription","commits_url":"https://api.github.com/repos/eventespresso/event-espresso-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/eventespresso/event-espresso-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/eventespresso/event-espresso-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/eventespresso/event-espresso-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/eventespresso/event-espresso-core/contents/{+path}","compare_url":"https://api.github.com/repos/eventespresso/event-espresso-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eventespresso/event-espresso-core/merges","archive_url":"https://api.github.com/repos/eventespresso/event-espresso-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eventespresso/event-espresso-core/downloads","issues_url":"https://api.github.com/repos/eventespresso/event-espresso-core/issues{/number}","pulls_url":"https://api.github.com/repos/eventespresso/event-espresso-core/pulls{/number}","milestones_url":"https://api.github.com/repos/eventespresso/event-espresso-core/milestones{/number}","notifications_url":"https://api.github.com/repos/eventespresso/event-espresso-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eventespresso/event-espresso-core/labels{/name}","releases_url":"https://api.github.com/repos/eventespresso/event-espresso-core/releases{/id}","deployments_url":"https://api.github.com/repos/eventespresso/event-espresso-core/deployments","created_at":"2012-12-20T04:38:57Z","updated_at":"2018-06-29T19:22:12Z","pushed_at":"2018-07-03T15:50:51Z","git_url":"git://github.com/eventespresso/event-espresso-core.git","ssh_url":"git@github.com:eventespresso/event-espresso-core.git","clone_url":"https://github.com/eventespresso/event-espresso-core.git","svn_url":"https://github.com/eventespresso/event-espresso-core","homepage":"https://eventespresso.com","size":102472,"stargazers_count":85,"watchers_count":85,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":53,"mirror_url":null,"archived":false,"open_issues_count":80,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":53,"open_issues":80,"watchers":85,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eventespresso/event-espresso-core/pulls/564"},"html":{"href":"https://github.com/eventespresso/event-espresso-core/pull/564"},"issue":{"href":"https://api.github.com/repos/eventespresso/event-espresso-core/issues/564"},"comments":{"href":"https://api.github.com/repos/eventespresso/event-espresso-core/issues/564/comments"},"review_comments":{"href":"https://api.github.com/repos/eventespresso/event-espresso-core/pulls/564/comments"},"review_comment":{"href":"https://api.github.com/repos/eventespresso/event-espresso-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eventespresso/event-espresso-core/pulls/564/commits"},"statuses":{"href":"https://api.github.com/repos/eventespresso/event-espresso-core/statuses/d7082813e7d83997d76c644c50dd395b99834f19"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":4675,"deletions":12,"changed_files":7}}
{"actor":{"display_login":"nerrad"}}