{"action":"opened","number":388,"pull_request":{"url":"https://api.github.com/repos/nasa/openmctweb/pulls/388","id":53043115,"html_url":"https://github.com/nasa/openmctweb/pull/388","diff_url":"https://github.com/nasa/openmctweb/pull/388.diff","patch_url":"https://github.com/nasa/openmctweb/pull/388.patch","issue_url":"https://api.github.com/repos/nasa/openmctweb/issues/388","number":388,"state":"open","locked":false,"title":"[Representation] Pre-fetch 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":"Pre-fetch templates to address #383, and situations where #58 is not well-messaged due to failure to load templates.\r\n\r\nPre-fetching is done using the `runs` extension category (map's to `angular.Module.runs`), with highest priority. This occurs before routes are handled, so the relevant HTTP requests are issued before search indexing etc. commences.\r\n\r\nNotably, there is no dependency between these requests _resolving_ and application startup, so it is possible in principle for a dialog to have not loaded before the user is able to take actions that might fail. Think the set of conditions required for this to happen is obscure enough that we will not see this in practice; prefer to address this later with a [precompilation step](https://github.com/nasa/openmctweb/issues/383#issuecomment-162718237)\r\n\r\nVerified by:\r\n\r\n* Serve Open MCT Web with `node app.js -i platform/persistence/elastic -x platform/persistence/local`\r\n* Start ElasticSearch\r\n* Open application in Chrome, browse to an object\r\n* Kill node and ElasticSearch\r\n* Return to Chrome, use the Remove action on an object\r\n* Observe a blocking dialog notifying me of an error when saving\r\n\r\n### Author Checklist\r\n\r\n1. Changes address original issue? Y\r\n2. Unit tests included and/or updated with changes? Y\r\n3. Command line build passes? Y\r\n4. Changes have been smoke-tested? Y","created_at":"2015-12-08T21:43:51Z","updated_at":"2015-12-08T21:43:51Z","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":{"url":"https://api.github.com/repos/nasa/openmctweb/milestones/5","html_url":"https://github.com/nasa/openmctweb/milestones/Baxter","labels_url":"https://api.github.com/repos/nasa/openmctweb/milestones/5/labels","id":1384238,"number":5,"title":"Baxter","description":"","creator":{"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},"open_issues":47,"closed_issues":23,"state":"open","created_at":"2015-10-29T20:33:50Z","updated_at":"2015-12-08T21:43:51Z","due_on":"2015-12-18T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/nasa/openmctweb/pulls/388/commits","review_comments_url":"https://api.github.com/repos/nasa/openmctweb/pulls/388/comments","review_comment_url":"https://api.github.com/repos/nasa/openmctweb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nasa/openmctweb/issues/388/comments","statuses_url":"https://api.github.com/repos/nasa/openmctweb/statuses/b2f58614580ea63e6bab09a4fd591e241b7747be","head":{"label":"nasa:open383","ref":"open383","sha":"b2f58614580ea63e6bab09a4fd591e241b7747be","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-08T03:35:14Z","pushed_at":"2015-12-08T21:30:24Z","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":10975,"stargazers_count":32,"watchers_count":32,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":11,"mirror_url":null,"open_issues_count":155,"forks":11,"open_issues":155,"watchers":32,"default_branch":"master"}},"base":{"label":"nasa:master","ref":"master","sha":"ed7e0d8b0a8f1677aee16e21455f2a74e3fd172f","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-08T03:35:14Z","pushed_at":"2015-12-08T21:30:24Z","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":10975,"stargazers_count":32,"watchers_count":32,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":11,"mirror_url":null,"open_issues_count":155,"forks":11,"open_issues":155,"watchers":32,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nasa/openmctweb/pulls/388"},"html":{"href":"https://github.com/nasa/openmctweb/pull/388"},"issue":{"href":"https://api.github.com/repos/nasa/openmctweb/issues/388"},"comments":{"href":"https://api.github.com/repos/nasa/openmctweb/issues/388/comments"},"review_comments":{"href":"https://api.github.com/repos/nasa/openmctweb/pulls/388/comments"},"review_comment":{"href":"https://api.github.com/repos/nasa/openmctweb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nasa/openmctweb/pulls/388/commits"},"statuses":{"href":"https://api.github.com/repos/nasa/openmctweb/statuses/b2f58614580ea63e6bab09a4fd591e241b7747be"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":143,"deletions":6,"changed_files":6}}