{"action":"opened","number":409,"pull_request":{"url":"https://api.github.com/repos/nasa/openmctweb/pulls/409","id":53328578,"html_url":"https://github.com/nasa/openmctweb/pull/409","diff_url":"https://github.com/nasa/openmctweb/pull/409.diff","patch_url":"https://github.com/nasa/openmctweb/pull/409.patch","issue_url":"https://api.github.com/repos/nasa/openmctweb/issues/409","number":409,"state":"open","locked":false,"title":"[Build] Use RequireJS optimizer, precompile templates","user":{"login":"VWoeltjen","id":1685764,"avatar_url":"https://avatars.githubusercontent.com/u/1685764?v=3","gravatar_id":"","url":"https://api.github.com/users/VWoeltjen","html_url":"https://github.com/VWoeltjen","followers_url":"https://api.github.com/users/VWoeltjen/followers","following_url":"https://api.github.com/users/VWoeltjen/following{/other_user}","gists_url":"https://api.github.com/users/VWoeltjen/gists{/gist_id}","starred_url":"https://api.github.com/users/VWoeltjen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VWoeltjen/subscriptions","organizations_url":"https://api.github.com/users/VWoeltjen/orgs","repos_url":"https://api.github.com/users/VWoeltjen/repos","events_url":"https://api.github.com/users/VWoeltjen/events{/privacy}","received_events_url":"https://api.github.com/users/VWoeltjen/received_events","type":"User","site_admin":false},"body":"Reduce number of HTTP requests required at application startup by:\r\n\r\n* Assembling/minifying all source scripts into a single JS file using the RequireJS optimizer\r\n  * Also transitions to using \"strict DI\", fixing a few places where dependencies were inferred from function arguments, which is incompatible with minification.\r\n* Including all templates in `index.html` as `<script type=\"text/ng-template\">` tags\r\n\r\nAddresses a corner case where #383 is (in principle) reproducible by including all templates along with the single, initial request for `index.html`. Also provides overall improvement in application loading.\r\n\r\nAlthough #383 is a release-blocker, think existing fix from #388 is sufficient for now; would defer any merge on this until the next sprint. (In part, to allow for review & enhancement; also because this introduces ample opportunity for regression.)\r\n\r\nBuild steps are triggered by Maven build, which delegates the relevant steps to npm; believe this will help with future transition to a fully npm-based build","created_at":"2015-12-10T22:42:46Z","updated_at":"2015-12-10T22:42:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"larkin","id":226503,"avatar_url":"https://avatars.githubusercontent.com/u/226503?v=3","gravatar_id":"","url":"https://api.github.com/users/larkin","html_url":"https://github.com/larkin","followers_url":"https://api.github.com/users/larkin/followers","following_url":"https://api.github.com/users/larkin/following{/other_user}","gists_url":"https://api.github.com/users/larkin/gists{/gist_id}","starred_url":"https://api.github.com/users/larkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larkin/subscriptions","organizations_url":"https://api.github.com/users/larkin/orgs","repos_url":"https://api.github.com/users/larkin/repos","events_url":"https://api.github.com/users/larkin/events{/privacy}","received_events_url":"https://api.github.com/users/larkin/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/nasa/openmctweb/pulls/409/commits","review_comments_url":"https://api.github.com/repos/nasa/openmctweb/pulls/409/comments","review_comment_url":"https://api.github.com/repos/nasa/openmctweb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nasa/openmctweb/issues/409/comments","statuses_url":"https://api.github.com/repos/nasa/openmctweb/statuses/9b5c62d2d51a5ea2d6d3052c8ffb505e0c87f6b9","head":{"label":"nasa:open-rjs","ref":"open-rjs","sha":"9b5c62d2d51a5ea2d6d3052c8ffb505e0c87f6b9","user":{"login":"nasa","id":848102,"avatar_url":"https://avatars.githubusercontent.com/u/848102?v=3","gravatar_id":"","url":"https://api.github.com/users/nasa","html_url":"https://github.com/nasa","followers_url":"https://api.github.com/users/nasa/followers","following_url":"https://api.github.com/users/nasa/following{/other_user}","gists_url":"https://api.github.com/users/nasa/gists{/gist_id}","starred_url":"https://api.github.com/users/nasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nasa/subscriptions","organizations_url":"https://api.github.com/users/nasa/orgs","repos_url":"https://api.github.com/users/nasa/repos","events_url":"https://api.github.com/users/nasa/events{/privacy}","received_events_url":"https://api.github.com/users/nasa/received_events","type":"Organization","site_admin":false},"repo":{"id":36753839,"name":"openmctweb","full_name":"nasa/openmctweb","owner":{"login":"nasa","id":848102,"avatar_url":"https://avatars.githubusercontent.com/u/848102?v=3","gravatar_id":"","url":"https://api.github.com/users/nasa","html_url":"https://github.com/nasa","followers_url":"https://api.github.com/users/nasa/followers","following_url":"https://api.github.com/users/nasa/following{/other_user}","gists_url":"https://api.github.com/users/nasa/gists{/gist_id}","starred_url":"https://api.github.com/users/nasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nasa/subscriptions","organizations_url":"https://api.github.com/users/nasa/orgs","repos_url":"https://api.github.com/users/nasa/repos","events_url":"https://api.github.com/users/nasa/events{/privacy}","received_events_url":"https://api.github.com/users/nasa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nasa/openmctweb","description":"","fork":false,"url":"https://api.github.com/repos/nasa/openmctweb","forks_url":"https://api.github.com/repos/nasa/openmctweb/forks","keys_url":"https://api.github.com/repos/nasa/openmctweb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nasa/openmctweb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nasa/openmctweb/teams","hooks_url":"https://api.github.com/repos/nasa/openmctweb/hooks","issue_events_url":"https://api.github.com/repos/nasa/openmctweb/issues/events{/number}","events_url":"https://api.github.com/repos/nasa/openmctweb/events","assignees_url":"https://api.github.com/repos/nasa/openmctweb/assignees{/user}","branches_url":"https://api.github.com/repos/nasa/openmctweb/branches{/branch}","tags_url":"https://api.github.com/repos/nasa/openmctweb/tags","blobs_url":"https://api.github.com/repos/nasa/openmctweb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nasa/openmctweb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nasa/openmctweb/git/refs{/sha}","trees_url":"https://api.github.com/repos/nasa/openmctweb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nasa/openmctweb/statuses/{sha}","languages_url":"https://api.github.com/repos/nasa/openmctweb/languages","stargazers_url":"https://api.github.com/repos/nasa/openmctweb/stargazers","contributors_url":"https://api.github.com/repos/nasa/openmctweb/contributors","subscribers_url":"https://api.github.com/repos/nasa/openmctweb/subscribers","subscription_url":"https://api.github.com/repos/nasa/openmctweb/subscription","commits_url":"https://api.github.com/repos/nasa/openmctweb/commits{/sha}","git_commits_url":"https://api.github.com/repos/nasa/openmctweb/git/commits{/sha}","comments_url":"https://api.github.com/repos/nasa/openmctweb/comments{/number}","issue_comment_url":"https://api.github.com/repos/nasa/openmctweb/issues/comments{/number}","contents_url":"https://api.github.com/repos/nasa/openmctweb/contents/{+path}","compare_url":"https://api.github.com/repos/nasa/openmctweb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nasa/openmctweb/merges","archive_url":"https://api.github.com/repos/nasa/openmctweb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nasa/openmctweb/downloads","issues_url":"https://api.github.com/repos/nasa/openmctweb/issues{/number}","pulls_url":"https://api.github.com/repos/nasa/openmctweb/pulls{/number}","milestones_url":"https://api.github.com/repos/nasa/openmctweb/milestones{/number}","notifications_url":"https://api.github.com/repos/nasa/openmctweb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nasa/openmctweb/labels{/name}","releases_url":"https://api.github.com/repos/nasa/openmctweb/releases{/id}","created_at":"2015-06-02T18:40:28Z","updated_at":"2015-12-10T13:33:33Z","pushed_at":"2015-12-10T22:26:04Z","git_url":"git://github.com/nasa/openmctweb.git","ssh_url":"git@github.com:nasa/openmctweb.git","clone_url":"https://github.com/nasa/openmctweb.git","svn_url":"https://github.com/nasa/openmctweb","homepage":"","size":11124,"stargazers_count":36,"watchers_count":36,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":12,"mirror_url":null,"open_issues_count":158,"forks":12,"open_issues":158,"watchers":36,"default_branch":"master"}},"base":{"label":"nasa:master","ref":"master","sha":"89a93e2966fa8e5cf393adb89a94d68a66c1add5","user":{"login":"nasa","id":848102,"avatar_url":"https://avatars.githubusercontent.com/u/848102?v=3","gravatar_id":"","url":"https://api.github.com/users/nasa","html_url":"https://github.com/nasa","followers_url":"https://api.github.com/users/nasa/followers","following_url":"https://api.github.com/users/nasa/following{/other_user}","gists_url":"https://api.github.com/users/nasa/gists{/gist_id}","starred_url":"https://api.github.com/users/nasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nasa/subscriptions","organizations_url":"https://api.github.com/users/nasa/orgs","repos_url":"https://api.github.com/users/nasa/repos","events_url":"https://api.github.com/users/nasa/events{/privacy}","received_events_url":"https://api.github.com/users/nasa/received_events","type":"Organization","site_admin":false},"repo":{"id":36753839,"name":"openmctweb","full_name":"nasa/openmctweb","owner":{"login":"nasa","id":848102,"avatar_url":"https://avatars.githubusercontent.com/u/848102?v=3","gravatar_id":"","url":"https://api.github.com/users/nasa","html_url":"https://github.com/nasa","followers_url":"https://api.github.com/users/nasa/followers","following_url":"https://api.github.com/users/nasa/following{/other_user}","gists_url":"https://api.github.com/users/nasa/gists{/gist_id}","starred_url":"https://api.github.com/users/nasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nasa/subscriptions","organizations_url":"https://api.github.com/users/nasa/orgs","repos_url":"https://api.github.com/users/nasa/repos","events_url":"https://api.github.com/users/nasa/events{/privacy}","received_events_url":"https://api.github.com/users/nasa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nasa/openmctweb","description":"","fork":false,"url":"https://api.github.com/repos/nasa/openmctweb","forks_url":"https://api.github.com/repos/nasa/openmctweb/forks","keys_url":"https://api.github.com/repos/nasa/openmctweb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nasa/openmctweb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nasa/openmctweb/teams","hooks_url":"https://api.github.com/repos/nasa/openmctweb/hooks","issue_events_url":"https://api.github.com/repos/nasa/openmctweb/issues/events{/number}","events_url":"https://api.github.com/repos/nasa/openmctweb/events","assignees_url":"https://api.github.com/repos/nasa/openmctweb/assignees{/user}","branches_url":"https://api.github.com/repos/nasa/openmctweb/branches{/branch}","tags_url":"https://api.github.com/repos/nasa/openmctweb/tags","blobs_url":"https://api.github.com/repos/nasa/openmctweb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nasa/openmctweb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nasa/openmctweb/git/refs{/sha}","trees_url":"https://api.github.com/repos/nasa/openmctweb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nasa/openmctweb/statuses/{sha}","languages_url":"https://api.github.com/repos/nasa/openmctweb/languages","stargazers_url":"https://api.github.com/repos/nasa/openmctweb/stargazers","contributors_url":"https://api.github.com/repos/nasa/openmctweb/contributors","subscribers_url":"https://api.github.com/repos/nasa/openmctweb/subscribers","subscription_url":"https://api.github.com/repos/nasa/openmctweb/subscription","commits_url":"https://api.github.com/repos/nasa/openmctweb/commits{/sha}","git_commits_url":"https://api.github.com/repos/nasa/openmctweb/git/commits{/sha}","comments_url":"https://api.github.com/repos/nasa/openmctweb/comments{/number}","issue_comment_url":"https://api.github.com/repos/nasa/openmctweb/issues/comments{/number}","contents_url":"https://api.github.com/repos/nasa/openmctweb/contents/{+path}","compare_url":"https://api.github.com/repos/nasa/openmctweb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nasa/openmctweb/merges","archive_url":"https://api.github.com/repos/nasa/openmctweb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nasa/openmctweb/downloads","issues_url":"https://api.github.com/repos/nasa/openmctweb/issues{/number}","pulls_url":"https://api.github.com/repos/nasa/openmctweb/pulls{/number}","milestones_url":"https://api.github.com/repos/nasa/openmctweb/milestones{/number}","notifications_url":"https://api.github.com/repos/nasa/openmctweb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nasa/openmctweb/labels{/name}","releases_url":"https://api.github.com/repos/nasa/openmctweb/releases{/id}","created_at":"2015-06-02T18:40:28Z","updated_at":"2015-12-10T13:33:33Z","pushed_at":"2015-12-10T22:26:04Z","git_url":"git://github.com/nasa/openmctweb.git","ssh_url":"git@github.com:nasa/openmctweb.git","clone_url":"https://github.com/nasa/openmctweb.git","svn_url":"https://github.com/nasa/openmctweb","homepage":"","size":11124,"stargazers_count":36,"watchers_count":36,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":12,"mirror_url":null,"open_issues_count":158,"forks":12,"open_issues":158,"watchers":36,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nasa/openmctweb/pulls/409"},"html":{"href":"https://github.com/nasa/openmctweb/pull/409"},"issue":{"href":"https://api.github.com/repos/nasa/openmctweb/issues/409"},"comments":{"href":"https://api.github.com/repos/nasa/openmctweb/issues/409/comments"},"review_comments":{"href":"https://api.github.com/repos/nasa/openmctweb/pulls/409/comments"},"review_comment":{"href":"https://api.github.com/repos/nasa/openmctweb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nasa/openmctweb/pulls/409/commits"},"statuses":{"href":"https://api.github.com/repos/nasa/openmctweb/statuses/9b5c62d2d51a5ea2d6d3052c8ffb505e0c87f6b9"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":16,"additions":202,"deletions":31,"changed_files":14}}