{"action":"created","comment":{"url":"https://api.github.com/repos/xtuple/xtuple/pulls/comments/29463215","id":29463215,"diff_hunk":"@@ -0,0 +1,752 @@\n+select xt.install_js('XT', 'EDIProfile', 'xtuple',  $$","path":"lib/orm/source/xt/javascript/parseediprofile.sql","position":1,"original_position":1,"commit_id":"81fbb4d69ebedd320f95840d8cf000c05b7fb31e","original_commit_id":"81fbb4d69ebedd320f95840d8cf000c05b7fb31e","user":{"login":"bendiy","id":571574,"avatar_url":"https://avatars.githubusercontent.com/u/571574?v=3","gravatar_id":"","url":"https://api.github.com/users/bendiy","html_url":"https://github.com/bendiy","followers_url":"https://api.github.com/users/bendiy/followers","following_url":"https://api.github.com/users/bendiy/following{/other_user}","gists_url":"https://api.github.com/users/bendiy/gists{/gist_id}","starred_url":"https://api.github.com/users/bendiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendiy/subscriptions","organizations_url":"https://api.github.com/users/bendiy/orgs","repos_url":"https://api.github.com/users/bendiy/repos","events_url":"https://api.github.com/users/bendiy/events{/privacy}","received_events_url":"https://api.github.com/users/bendiy/received_events","type":"User","site_admin":false},"body":"This entire files is generated when you run `build_app.js`.","created_at":"2015-04-30T19:46:34Z","updated_at":"2015-04-30T19:46:34Z","html_url":"https://github.com/xtuple/xtuple/pull/2293#discussion_r29463215","pull_request_url":"https://api.github.com/repos/xtuple/xtuple/pulls/2293","_links":{"self":{"href":"https://api.github.com/repos/xtuple/xtuple/pulls/comments/29463215"},"html":{"href":"https://github.com/xtuple/xtuple/pull/2293#discussion_r29463215"},"pull_request":{"href":"https://api.github.com/repos/xtuple/xtuple/pulls/2293"}}},"pull_request":{"url":"https://api.github.com/repos/xtuple/xtuple/pulls/2293","id":34310387,"html_url":"https://github.com/xtuple/xtuple/pull/2293","diff_url":"https://github.com/xtuple/xtuple/pull/2293.diff","patch_url":"https://github.com/xtuple/xtuple/pull/2293.patch","issue_url":"https://api.github.com/repos/xtuple/xtuple/issues/2293","number":2293,"state":"open","locked":false,"title":"DO NOT MERGE!!! Plv8 in core","user":{"login":"bendiy","id":571574,"avatar_url":"https://avatars.githubusercontent.com/u/571574?v=3","gravatar_id":"","url":"https://api.github.com/users/bendiy","html_url":"https://github.com/bendiy","followers_url":"https://api.github.com/users/bendiy/followers","following_url":"https://api.github.com/users/bendiy/following{/other_user}","gists_url":"https://api.github.com/users/bendiy/gists{/gist_id}","starred_url":"https://api.github.com/users/bendiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendiy/subscriptions","organizations_url":"https://api.github.com/users/bendiy/orgs","repos_url":"https://api.github.com/users/bendiy/repos","events_url":"https://api.github.com/users/bendiy/events{/privacy}","received_events_url":"https://api.github.com/users/bendiy/received_events","type":"User","site_admin":false},"body":"Do not merge this yet.\r\n\r\nBuild a new empty xtuple database:\r\n```\r\nsudo echo \"plv8.start_proc = 'xt.js_init'\"  >> /etc/postgresql/9.3/main/postgresql.conf\r\nsudo service postgresql restart\r\n./scripts/build_app.js -d empty --databaseonly -e foundation-database -i -s foundation-database/empty_data.sql\r\n```\r\n\r\nRun plv8 code example:\r\n```\r\nDO $$\r\nvar options = {\r\n      params: {\r\n        foo: 'bar'\r\n      }\r\n    },\r\n    metaSQL = 'SELECT <? value(\"foo\") ?> AS baz;';\r\n\r\nvar foo = XT.MetaSQL.parser.parse(metaSQL, options);\r\n//var foo = XT.generateUUID();\r\n\r\nplv8.elog(WARNING, foo);\r\nreturn foo;\r\n\r\n$$ LANGUAGE plv8;\r\n```\r\n\r\nI've seen some errors with the build_app.js command above like:\r\n```\r\n ERROR:  SyntaxError: Unexpected token ILLEGAL\r\nDETAIL:  js_init() LINE 1: ace(/^\\s+|\\s+$/g0>�L\r\n] killed: false, code: 3, signal: null }\r\n```\r\nand\r\n```\r\nERROR:  SyntaxError: Unexpected token ILLEGAL\r\nDETAIL:  js_init() LINE 1:\r\n] killed: false, code: 3, signal: null }\r\n```\r\nRunning that command a second time does not throw the error. Not sure why this is yet.","created_at":"2015-04-28T20:57:26Z","updated_at":"2015-04-30T19:46:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d490c592c26770d4d57437ec84a7932fb1a6c3c9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/xtuple/xtuple/pulls/2293/commits","review_comments_url":"https://api.github.com/repos/xtuple/xtuple/pulls/2293/comments","review_comment_url":"https://api.github.com/repos/xtuple/xtuple/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xtuple/xtuple/issues/2293/comments","statuses_url":"https://api.github.com/repos/xtuple/xtuple/statuses/81fbb4d69ebedd320f95840d8cf000c05b7fb31e","head":{"label":"bendiy:plv8-in-core","ref":"plv8-in-core","sha":"81fbb4d69ebedd320f95840d8cf000c05b7fb31e","user":{"login":"bendiy","id":571574,"avatar_url":"https://avatars.githubusercontent.com/u/571574?v=3","gravatar_id":"","url":"https://api.github.com/users/bendiy","html_url":"https://github.com/bendiy","followers_url":"https://api.github.com/users/bendiy/followers","following_url":"https://api.github.com/users/bendiy/following{/other_user}","gists_url":"https://api.github.com/users/bendiy/gists{/gist_id}","starred_url":"https://api.github.com/users/bendiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendiy/subscriptions","organizations_url":"https://api.github.com/users/bendiy/orgs","repos_url":"https://api.github.com/users/bendiy/repos","events_url":"https://api.github.com/users/bendiy/events{/privacy}","received_events_url":"https://api.github.com/users/bendiy/received_events","type":"User","site_admin":false},"repo":{"id":8183329,"name":"xtuple","full_name":"bendiy/xtuple","owner":{"login":"bendiy","id":571574,"avatar_url":"https://avatars.githubusercontent.com/u/571574?v=3","gravatar_id":"","url":"https://api.github.com/users/bendiy","html_url":"https://github.com/bendiy","followers_url":"https://api.github.com/users/bendiy/followers","following_url":"https://api.github.com/users/bendiy/following{/other_user}","gists_url":"https://api.github.com/users/bendiy/gists{/gist_id}","starred_url":"https://api.github.com/users/bendiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendiy/subscriptions","organizations_url":"https://api.github.com/users/bendiy/orgs","repos_url":"https://api.github.com/users/bendiy/repos","events_url":"https://api.github.com/users/bendiy/events{/privacy}","received_events_url":"https://api.github.com/users/bendiy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bendiy/xtuple","description":"xTuple Enterprise Resource Planning","fork":true,"url":"https://api.github.com/repos/bendiy/xtuple","forks_url":"https://api.github.com/repos/bendiy/xtuple/forks","keys_url":"https://api.github.com/repos/bendiy/xtuple/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bendiy/xtuple/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bendiy/xtuple/teams","hooks_url":"https://api.github.com/repos/bendiy/xtuple/hooks","issue_events_url":"https://api.github.com/repos/bendiy/xtuple/issues/events{/number}","events_url":"https://api.github.com/repos/bendiy/xtuple/events","assignees_url":"https://api.github.com/repos/bendiy/xtuple/assignees{/user}","branches_url":"https://api.github.com/repos/bendiy/xtuple/branches{/branch}","tags_url":"https://api.github.com/repos/bendiy/xtuple/tags","blobs_url":"https://api.github.com/repos/bendiy/xtuple/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bendiy/xtuple/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bendiy/xtuple/git/refs{/sha}","trees_url":"https://api.github.com/repos/bendiy/xtuple/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bendiy/xtuple/statuses/{sha}","languages_url":"https://api.github.com/repos/bendiy/xtuple/languages","stargazers_url":"https://api.github.com/repos/bendiy/xtuple/stargazers","contributors_url":"https://api.github.com/repos/bendiy/xtuple/contributors","subscribers_url":"https://api.github.com/repos/bendiy/xtuple/subscribers","subscription_url":"https://api.github.com/repos/bendiy/xtuple/subscription","commits_url":"https://api.github.com/repos/bendiy/xtuple/commits{/sha}","git_commits_url":"https://api.github.com/repos/bendiy/xtuple/git/commits{/sha}","comments_url":"https://api.github.com/repos/bendiy/xtuple/comments{/number}","issue_comment_url":"https://api.github.com/repos/bendiy/xtuple/issues/comments{/number}","contents_url":"https://api.github.com/repos/bendiy/xtuple/contents/{+path}","compare_url":"https://api.github.com/repos/bendiy/xtuple/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bendiy/xtuple/merges","archive_url":"https://api.github.com/repos/bendiy/xtuple/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bendiy/xtuple/downloads","issues_url":"https://api.github.com/repos/bendiy/xtuple/issues{/number}","pulls_url":"https://api.github.com/repos/bendiy/xtuple/pulls{/number}","milestones_url":"https://api.github.com/repos/bendiy/xtuple/milestones{/number}","notifications_url":"https://api.github.com/repos/bendiy/xtuple/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bendiy/xtuple/labels{/name}","releases_url":"https://api.github.com/repos/bendiy/xtuple/releases{/id}","created_at":"2013-02-13T16:58:07Z","updated_at":"2014-06-23T18:09:03Z","pushed_at":"2015-04-30T19:43:53Z","git_url":"git://github.com/bendiy/xtuple.git","ssh_url":"git@github.com:bendiy/xtuple.git","clone_url":"https://github.com/bendiy/xtuple.git","svn_url":"https://github.com/bendiy/xtuple","homepage":null,"size":68873,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"xtuple:4_9_x","ref":"4_9_x","sha":"0b266e2dea769c7e4fe5449bc015304cae095b22","user":{"login":"xtuple","id":703922,"avatar_url":"https://avatars.githubusercontent.com/u/703922?v=3","gravatar_id":"","url":"https://api.github.com/users/xtuple","html_url":"https://github.com/xtuple","followers_url":"https://api.github.com/users/xtuple/followers","following_url":"https://api.github.com/users/xtuple/following{/other_user}","gists_url":"https://api.github.com/users/xtuple/gists{/gist_id}","starred_url":"https://api.github.com/users/xtuple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xtuple/subscriptions","organizations_url":"https://api.github.com/users/xtuple/orgs","repos_url":"https://api.github.com/users/xtuple/repos","events_url":"https://api.github.com/users/xtuple/events{/privacy}","received_events_url":"https://api.github.com/users/xtuple/received_events","type":"Organization","site_admin":false},"repo":{"id":8138568,"name":"xtuple","full_name":"xtuple/xtuple","owner":{"login":"xtuple","id":703922,"avatar_url":"https://avatars.githubusercontent.com/u/703922?v=3","gravatar_id":"","url":"https://api.github.com/users/xtuple","html_url":"https://github.com/xtuple","followers_url":"https://api.github.com/users/xtuple/followers","following_url":"https://api.github.com/users/xtuple/following{/other_user}","gists_url":"https://api.github.com/users/xtuple/gists{/gist_id}","starred_url":"https://api.github.com/users/xtuple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xtuple/subscriptions","organizations_url":"https://api.github.com/users/xtuple/orgs","repos_url":"https://api.github.com/users/xtuple/repos","events_url":"https://api.github.com/users/xtuple/events{/privacy}","received_events_url":"https://api.github.com/users/xtuple/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xtuple/xtuple","description":"This repository contains the source code for both the Mobile Web app core and the database schema for the PostBooks edition of xTuple ERP. The Mobile Web app core is written in JavaScript, using the Enyo framework for the client side and Node.js for the datasource layer. The database schema for PostBooks runs on PostgreSQL.","fork":false,"url":"https://api.github.com/repos/xtuple/xtuple","forks_url":"https://api.github.com/repos/xtuple/xtuple/forks","keys_url":"https://api.github.com/repos/xtuple/xtuple/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xtuple/xtuple/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xtuple/xtuple/teams","hooks_url":"https://api.github.com/repos/xtuple/xtuple/hooks","issue_events_url":"https://api.github.com/repos/xtuple/xtuple/issues/events{/number}","events_url":"https://api.github.com/repos/xtuple/xtuple/events","assignees_url":"https://api.github.com/repos/xtuple/xtuple/assignees{/user}","branches_url":"https://api.github.com/repos/xtuple/xtuple/branches{/branch}","tags_url":"https://api.github.com/repos/xtuple/xtuple/tags","blobs_url":"https://api.github.com/repos/xtuple/xtuple/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xtuple/xtuple/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xtuple/xtuple/git/refs{/sha}","trees_url":"https://api.github.com/repos/xtuple/xtuple/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xtuple/xtuple/statuses/{sha}","languages_url":"https://api.github.com/repos/xtuple/xtuple/languages","stargazers_url":"https://api.github.com/repos/xtuple/xtuple/stargazers","contributors_url":"https://api.github.com/repos/xtuple/xtuple/contributors","subscribers_url":"https://api.github.com/repos/xtuple/xtuple/subscribers","subscription_url":"https://api.github.com/repos/xtuple/xtuple/subscription","commits_url":"https://api.github.com/repos/xtuple/xtuple/commits{/sha}","git_commits_url":"https://api.github.com/repos/xtuple/xtuple/git/commits{/sha}","comments_url":"https://api.github.com/repos/xtuple/xtuple/comments{/number}","issue_comment_url":"https://api.github.com/repos/xtuple/xtuple/issues/comments{/number}","contents_url":"https://api.github.com/repos/xtuple/xtuple/contents/{+path}","compare_url":"https://api.github.com/repos/xtuple/xtuple/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xtuple/xtuple/merges","archive_url":"https://api.github.com/repos/xtuple/xtuple/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xtuple/xtuple/downloads","issues_url":"https://api.github.com/repos/xtuple/xtuple/issues{/number}","pulls_url":"https://api.github.com/repos/xtuple/xtuple/pulls{/number}","milestones_url":"https://api.github.com/repos/xtuple/xtuple/milestones{/number}","notifications_url":"https://api.github.com/repos/xtuple/xtuple/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xtuple/xtuple/labels{/name}","releases_url":"https://api.github.com/repos/xtuple/xtuple/releases{/id}","created_at":"2013-02-11T13:33:14Z","updated_at":"2015-04-30T18:47:05Z","pushed_at":"2015-04-30T19:43:54Z","git_url":"git://github.com/xtuple/xtuple.git","ssh_url":"git@github.com:xtuple/xtuple.git","clone_url":"https://github.com/xtuple/xtuple.git","svn_url":"https://github.com/xtuple/xtuple","homepage":"http://www.xtuple.com","size":99051,"stargazers_count":71,"watchers_count":71,"language":"PLpgSQL","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":212,"mirror_url":null,"open_issues_count":91,"forks":212,"open_issues":91,"watchers":71,"default_branch":"4_9_x"}},"_links":{"self":{"href":"https://api.github.com/repos/xtuple/xtuple/pulls/2293"},"html":{"href":"https://github.com/xtuple/xtuple/pull/2293"},"issue":{"href":"https://api.github.com/repos/xtuple/xtuple/issues/2293"},"comments":{"href":"https://api.github.com/repos/xtuple/xtuple/issues/2293/comments"},"review_comments":{"href":"https://api.github.com/repos/xtuple/xtuple/pulls/2293/comments"},"review_comment":{"href":"https://api.github.com/repos/xtuple/xtuple/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xtuple/xtuple/pulls/2293/commits"},"statuses":{"href":"https://api.github.com/repos/xtuple/xtuple/statuses/81fbb4d69ebedd320f95840d8cf000c05b7fb31e"}}}}