{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-functions-ux/pulls/comments/330699229","pull_request_review_id":296432310,"id":330699229,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMzMDY5OTIyOQ==","diff_hunk":"@@ -90,12 +92,40 @@ export default class PortalCommunicator {\n     PortalCommunicator.shellSrc = shellSrc;\n     if (shellSrc) {\n       const getStartupInfoObj = {\n-        iframeHostName: null,\n+        iframeHostName: '',\n       };\n-      // This is a required message. It tells the shell that your iframe is ready to receive messages.\n-      PortalCommunicator.postMessage(Verbs.ready, null);\n-      PortalCommunicator.postMessage(Verbs.initializationcomplete, null);\n-      PortalCommunicator.postMessage(Verbs.getStartupInfo, this.packageData(getStartupInfoObj));\n+\n+      window.appsvc = {\n+        version: '',\n+        env: {\n+          hostName: '',\n+          appName: '',\n+          azureResourceManagerEndpoint: '',\n+          runtimeType: 'Azure',\n+        },\n+      };\n+\n+      this.getDebugInformation()\n+        .then(response => {\n+          if (response.metadata.success && response.data) {\n+            getStartupInfoObj.iframeHostName = response.data.appName;\n+            window.appsvc = {\n+              version: response.data.version,\n+              env: {\n+                hostName: '',\n+                appName: response.data.appName,\n+                azureResourceManagerEndpoint: '',\n+                runtimeType: 'Azure',","path":"client-react/src/portal-communicator.ts","position":50,"original_position":48,"commit_id":"479c9cc7d97eabd2718feea46b4740db128cc3a0","original_commit_id":"cf1394aab9252526baccfbd574ef33438868f4ed","user":{"login":"nertim","id":493476,"node_id":"MDQ6VXNlcjQ5MzQ3Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/493476?v=4","gravatar_id":"","url":"https://api.github.com/users/nertim","html_url":"https://github.com/nertim","followers_url":"https://api.github.com/users/nertim/followers","following_url":"https://api.github.com/users/nertim/following{/other_user}","gists_url":"https://api.github.com/users/nertim/gists{/gist_id}","starred_url":"https://api.github.com/users/nertim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nertim/subscriptions","organizations_url":"https://api.github.com/users/nertim/orgs","repos_url":"https://api.github.com/users/nertim/repos","events_url":"https://api.github.com/users/nertim/events{/privacy}","received_events_url":"https://api.github.com/users/nertim/received_events","type":"User","site_admin":false},"body":"discussed offline, currently it is hard coded to 'Azure' in the config itself. Will tackle this later. ","created_at":"2019-10-02T18:18:34Z","updated_at":"2019-10-02T18:18:35Z","html_url":"https://github.com/Azure/azure-functions-ux/pull/4180#discussion_r330699229","pull_request_url":"https://api.github.com/repos/Azure/azure-functions-ux/pulls/4180","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-functions-ux/pulls/comments/330699229"},"html":{"href":"https://github.com/Azure/azure-functions-ux/pull/4180#discussion_r330699229"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-functions-ux/pulls/4180"}},"in_reply_to_id":330150010},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-functions-ux/pulls/4180","id":323108038,"node_id":"MDExOlB1bGxSZXF1ZXN0MzIzMTA4MDM4","html_url":"https://github.com/Azure/azure-functions-ux/pull/4180","diff_url":"https://github.com/Azure/azure-functions-ux/pull/4180.diff","patch_url":"https://github.com/Azure/azure-functions-ux/pull/4180.patch","issue_url":"https://api.github.com/repos/Azure/azure-functions-ux/issues/4180","number":4180,"state":"open","locked":false,"title":"Update window.appsvc object in Angular and React for fusion","user":{"login":"nertim","id":493476,"node_id":"MDQ6VXNlcjQ5MzQ3Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/493476?v=4","gravatar_id":"","url":"https://api.github.com/users/nertim","html_url":"https://github.com/nertim","followers_url":"https://api.github.com/users/nertim/followers","following_url":"https://api.github.com/users/nertim/following{/other_user}","gists_url":"https://api.github.com/users/nertim/gists{/gist_id}","starred_url":"https://api.github.com/users/nertim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nertim/subscriptions","organizations_url":"https://api.github.com/users/nertim/orgs","repos_url":"https://api.github.com/users/nertim/repos","events_url":"https://api.github.com/users/nertim/events{/privacy}","received_events_url":"https://api.github.com/users/nertim/received_events","type":"User","site_admin":false},"body":"Fixes AB#5211758\r\n\r\nMake window.appsvc object similar in Angular and React codebase. Update the object to contain more information such as resourceId and feature to used with logs. Gather the fusion appname on react side. Update the react logs to always contain a identifiers information object for better correlation.\r\n\r\n@ehamai if you can please scrutinize closely.","created_at":"2019-10-01T06:29:44Z","updated_at":"2019-10-02T18:18:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"58223ac19910cc0ab5a83d7bee3e06450d4ec700","assignee":null,"assignees":[],"requested_reviewers":[{"login":"andimarc","id":5387224,"node_id":"MDQ6VXNlcjUzODcyMjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/5387224?v=4","gravatar_id":"","url":"https://api.github.com/users/andimarc","html_url":"https://github.com/andimarc","followers_url":"https://api.github.com/users/andimarc/followers","following_url":"https://api.github.com/users/andimarc/following{/other_user}","gists_url":"https://api.github.com/users/andimarc/gists{/gist_id}","starred_url":"https://api.github.com/users/andimarc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andimarc/subscriptions","organizations_url":"https://api.github.com/users/andimarc/orgs","repos_url":"https://api.github.com/users/andimarc/repos","events_url":"https://api.github.com/users/andimarc/events{/privacy}","received_events_url":"https://api.github.com/users/andimarc/received_events","type":"User","site_admin":false},{"login":"agruning","id":8560637,"node_id":"MDQ6VXNlcjg1NjA2Mzc=","avatar_url":"https://avatars0.githubusercontent.com/u/8560637?v=4","gravatar_id":"","url":"https://api.github.com/users/agruning","html_url":"https://github.com/agruning","followers_url":"https://api.github.com/users/agruning/followers","following_url":"https://api.github.com/users/agruning/following{/other_user}","gists_url":"https://api.github.com/users/agruning/gists{/gist_id}","starred_url":"https://api.github.com/users/agruning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agruning/subscriptions","organizations_url":"https://api.github.com/users/agruning/orgs","repos_url":"https://api.github.com/users/agruning/repos","events_url":"https://api.github.com/users/agruning/events{/privacy}","received_events_url":"https://api.github.com/users/agruning/received_events","type":"User","site_admin":false},{"login":"shimedh","id":14221995,"node_id":"MDQ6VXNlcjE0MjIxOTk1","avatar_url":"https://avatars3.githubusercontent.com/u/14221995?v=4","gravatar_id":"","url":"https://api.github.com/users/shimedh","html_url":"https://github.com/shimedh","followers_url":"https://api.github.com/users/shimedh/followers","following_url":"https://api.github.com/users/shimedh/following{/other_user}","gists_url":"https://api.github.com/users/shimedh/gists{/gist_id}","starred_url":"https://api.github.com/users/shimedh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimedh/subscriptions","organizations_url":"https://api.github.com/users/shimedh/orgs","repos_url":"https://api.github.com/users/shimedh/repos","events_url":"https://api.github.com/users/shimedh/events{/privacy}","received_events_url":"https://api.github.com/users/shimedh/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-functions-ux/pulls/4180/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-functions-ux/pulls/4180/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-functions-ux/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-functions-ux/issues/4180/comments","statuses_url":"https://api.github.com/repos/Azure/azure-functions-ux/statuses/479c9cc7d97eabd2718feea46b4740db128cc3a0","head":{"label":"Azure:michinoy-logs","ref":"michinoy-logs","sha":"479c9cc7d97eabd2718feea46b4740db128cc3a0","user":{"login":"Azure","id":6844498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NDQ0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":50877831,"node_id":"MDEwOlJlcG9zaXRvcnk1MDg3NzgzMQ==","name":"azure-functions-ux","full_name":"Azure/azure-functions-ux","private":false,"owner":{"login":"Azure","id":6844498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NDQ0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Azure/azure-functions-ux","description":"Azure Functions UX","fork":false,"url":"https://api.github.com/repos/Azure/azure-functions-ux","forks_url":"https://api.github.com/repos/Azure/azure-functions-ux/forks","keys_url":"https://api.github.com/repos/Azure/azure-functions-ux/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-functions-ux/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-functions-ux/teams","hooks_url":"https://api.github.com/repos/Azure/azure-functions-ux/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-functions-ux/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-functions-ux/events","assignees_url":"https://api.github.com/repos/Azure/azure-functions-ux/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-functions-ux/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-functions-ux/tags","blobs_url":"https://api.github.com/repos/Azure/azure-functions-ux/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-functions-ux/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-functions-ux/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-functions-ux/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-functions-ux/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-functions-ux/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-functions-ux/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-functions-ux/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-functions-ux/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-functions-ux/subscription","commits_url":"https://api.github.com/repos/Azure/azure-functions-ux/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-functions-ux/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-functions-ux/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-functions-ux/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-functions-ux/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-functions-ux/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-functions-ux/merges","archive_url":"https://api.github.com/repos/Azure/azure-functions-ux/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-functions-ux/downloads","issues_url":"https://api.github.com/repos/Azure/azure-functions-ux/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-functions-ux/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-functions-ux/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-functions-ux/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-functions-ux/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-functions-ux/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-functions-ux/deployments","created_at":"2016-02-01T23:01:22Z","updated_at":"2019-10-02T18:14:25Z","pushed_at":"2019-10-02T18:14:26Z","git_url":"git://github.com/Azure/azure-functions-ux.git","ssh_url":"git@github.com:Azure/azure-functions-ux.git","clone_url":"https://github.com/Azure/azure-functions-ux.git","svn_url":"https://github.com/Azure/azure-functions-ux","homepage":"https://functions.azure.com","size":43084,"stargazers_count":192,"watchers_count":192,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":83,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":51,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":83,"open_issues":51,"watchers":192,"default_branch":"dev"}},"base":{"label":"Azure:dev","ref":"dev","sha":"c2cdd4a45b7b3850dd6e41da22f3fd9dc0a11312","user":{"login":"Azure","id":6844498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NDQ0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":50877831,"node_id":"MDEwOlJlcG9zaXRvcnk1MDg3NzgzMQ==","name":"azure-functions-ux","full_name":"Azure/azure-functions-ux","private":false,"owner":{"login":"Azure","id":6844498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NDQ0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Azure/azure-functions-ux","description":"Azure Functions UX","fork":false,"url":"https://api.github.com/repos/Azure/azure-functions-ux","forks_url":"https://api.github.com/repos/Azure/azure-functions-ux/forks","keys_url":"https://api.github.com/repos/Azure/azure-functions-ux/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-functions-ux/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-functions-ux/teams","hooks_url":"https://api.github.com/repos/Azure/azure-functions-ux/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-functions-ux/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-functions-ux/events","assignees_url":"https://api.github.com/repos/Azure/azure-functions-ux/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-functions-ux/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-functions-ux/tags","blobs_url":"https://api.github.com/repos/Azure/azure-functions-ux/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-functions-ux/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-functions-ux/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-functions-ux/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-functions-ux/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-functions-ux/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-functions-ux/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-functions-ux/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-functions-ux/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-functions-ux/subscription","commits_url":"https://api.github.com/repos/Azure/azure-functions-ux/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-functions-ux/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-functions-ux/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-functions-ux/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-functions-ux/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-functions-ux/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-functions-ux/merges","archive_url":"https://api.github.com/repos/Azure/azure-functions-ux/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-functions-ux/downloads","issues_url":"https://api.github.com/repos/Azure/azure-functions-ux/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-functions-ux/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-functions-ux/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-functions-ux/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-functions-ux/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-functions-ux/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-functions-ux/deployments","created_at":"2016-02-01T23:01:22Z","updated_at":"2019-10-02T18:14:25Z","pushed_at":"2019-10-02T18:14:26Z","git_url":"git://github.com/Azure/azure-functions-ux.git","ssh_url":"git@github.com:Azure/azure-functions-ux.git","clone_url":"https://github.com/Azure/azure-functions-ux.git","svn_url":"https://github.com/Azure/azure-functions-ux","homepage":"https://functions.azure.com","size":43084,"stargazers_count":192,"watchers_count":192,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":83,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":51,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":83,"open_issues":51,"watchers":192,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-functions-ux/pulls/4180"},"html":{"href":"https://github.com/Azure/azure-functions-ux/pull/4180"},"issue":{"href":"https://api.github.com/repos/Azure/azure-functions-ux/issues/4180"},"comments":{"href":"https://api.github.com/repos/Azure/azure-functions-ux/issues/4180/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-functions-ux/pulls/4180/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-functions-ux/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-functions-ux/pulls/4180/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-functions-ux/statuses/479c9cc7d97eabd2718feea46b4740db128cc3a0"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"nertim"}}