{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-functions-ux/pulls/comments/181911974","pull_request_review_id":112620385,"id":181911974,"diff_hunk":"@@ -0,0 +1,278 @@\n+import { async, ComponentFixture, TestBed } from '@angular/core/testing';\n+import 'rxjs/add/operator/catch';\n+import 'rxjs/add/operator/debounceTime';\n+import 'rxjs/add/operator/distinctUntilChanged';\n+import 'rxjs/add/operator/do';\n+import 'rxjs/add/operator/filter';\n+import 'rxjs/add/operator/first';\n+import 'rxjs/add/observable/forkJoin';\n+import 'rxjs/add/operator/map';\n+import 'rxjs/add/operator/merge';\n+import 'rxjs/add/operator/mergeMap';\n+import 'rxjs/add/observable/of';\n+import 'rxjs/add/operator/retry';\n+import 'rxjs/add/operator/switchMap';\n+import 'rxjs/add/operator/concatMap';\n+import 'rxjs/add/operator/take';\n+import 'rxjs/add/operator/takeUntil';\n+import 'rxjs/add/observable/timer';\n+import 'rxjs/add/observable/throw';\n+import 'rxjs/add/observable/zip';\n+import { ProdFunctionInitialUploadComponent } from './prod-function-initial-upload.component';\n+import { MockModule, MockComponent } from 'ng-mocks';\n+import { NgUploaderModule, UploadOutput, UploadFile, UploadInput, UploadStatus } from 'ngx-uploader';\n+import { Injectable } from '@angular/core';\n+import { SiteService } from '../shared/services/site.service';\n+import { Observable } from 'rxjs/Observable';\n+import { CacheService } from '../shared/services/cache.service';\n+import { CardInfoControlComponent } from '../controls/card-info-control/card-info-control.component';\n+import { TranslateModule } from '@ngx-translate/core';\n+import { BroadcastService } from '../shared/services/broadcast.service';\n+import { BroadcastEvent } from '../shared/models/broadcast-event';\n+import { ReplaySubject } from 'rxjs';\n+import { DashboardType } from '../tree-view/models/dashboard-type';\n+\n+describe('ProdFunctionInitialUploadComponent', () => {\n+  let component: ProdFunctionInitialUploadComponent;\n+  let fixture: ComponentFixture<ProdFunctionInitialUploadComponent>;\n+\n+  beforeEach(async(() => {\n+    TestBed.configureTestingModule({\n+      declarations: [\n+        ProdFunctionInitialUploadComponent,\n+        MockComponent(CardInfoControlComponent)\n+      ],\n+      providers: [\n+        { provide: SiteService, useClass: MockSiteService },\n+        { provide: CacheService, useClass: MockCacheService },\n+        { provide: BroadcastService, useClass: MockBroadcastService }\n+\n+      ],\n+      imports: [\n+        MockModule(NgUploaderModule),\n+        TranslateModule.forRoot()\n+      ]\n+    })\n+      .compileComponents();\n+  }));\n+\n+  beforeEach(() => {\n+    fixture = TestBed.createComponent(ProdFunctionInitialUploadComponent);\n+    component = fixture.componentInstance;\n+    fixture.detectChanges();\n+  });\n+\n+  describe('init', () => {\n+    it('should create', () => {\n+      expect(component).toBeTruthy();\n+    });\n+    it('should be off by default', () => {\n+      expect(component.show).toBeFalsy();\n+    });\n+  });\n+\n+  describe('setup', () => {\n+    it('resourceId should pass in through global state service', () => {\n+      const mockBroadcastService: MockBroadcastService = TestBed.get(BroadcastService);\n+      mockBroadcastService.resourceId$.next('/subscriptions/sub/resourcegroups/rg/providers/Microsoft.Web/sites/resourceIdValue');\n+      expect(component.resourceId).toBe('/subscriptions/sub/resourcegroups/rg/providers/Microsoft.Web/sites/resourceIdValue');","path":"client/src/app/prod-function-initial-upload/prod-function-initial-upload.component.spec.ts","position":78,"original_position":78,"commit_id":"69acfd2c8318a7fe30e3e2400337c50097389c67","original_commit_id":"69acfd2c8318a7fe30e3e2400337c50097389c67","user":{"login":"ehamai","id":5695405,"avatar_url":"https://avatars2.githubusercontent.com/u/5695405?v=4","gravatar_id":"","url":"https://api.github.com/users/ehamai","html_url":"https://github.com/ehamai","followers_url":"https://api.github.com/users/ehamai/followers","following_url":"https://api.github.com/users/ehamai/following{/other_user}","gists_url":"https://api.github.com/users/ehamai/gists{/gist_id}","starred_url":"https://api.github.com/users/ehamai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehamai/subscriptions","organizations_url":"https://api.github.com/users/ehamai/orgs","repos_url":"https://api.github.com/users/ehamai/repos","events_url":"https://api.github.com/users/ehamai/events{/privacy}","received_events_url":"https://api.github.com/users/ehamai/received_events","type":"User","site_admin":false},"body":"These tests don't make sense now do they?","created_at":"2018-04-16T23:12:53Z","updated_at":"2018-04-16T23:12:53Z","html_url":"https://github.com/Azure/azure-functions-ux/pull/2557#discussion_r181911974","pull_request_url":"https://api.github.com/repos/Azure/azure-functions-ux/pulls/2557","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-functions-ux/pulls/comments/181911974"},"html":{"href":"https://github.com/Azure/azure-functions-ux/pull/2557#discussion_r181911974"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-functions-ux/pulls/2557"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-functions-ux/pulls/2557","id":181732151,"html_url":"https://github.com/Azure/azure-functions-ux/pull/2557","diff_url":"https://github.com/Azure/azure-functions-ux/pull/2557.diff","patch_url":"https://github.com/Azure/azure-functions-ux/pull/2557.patch","issue_url":"https://api.github.com/repos/Azure/azure-functions-ux/issues/2557","number":2557,"state":"open","locked":false,"title":"Initial upload experience for Prod Functions","user":{"login":"hartra344","id":13208452,"avatar_url":"https://avatars2.githubusercontent.com/u/13208452?v=4","gravatar_id":"","url":"https://api.github.com/users/hartra344","html_url":"https://github.com/hartra344","followers_url":"https://api.github.com/users/hartra344/followers","following_url":"https://api.github.com/users/hartra344/following{/other_user}","gists_url":"https://api.github.com/users/hartra344/gists{/gist_id}","starred_url":"https://api.github.com/users/hartra344/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hartra344/subscriptions","organizations_url":"https://api.github.com/users/hartra344/orgs","repos_url":"https://api.github.com/users/hartra344/repos","events_url":"https://api.github.com/users/hartra344/events{/privacy}","received_events_url":"https://api.github.com/users/hartra344/received_events","type":"User","site_admin":false},"body":"This is a first pass at this experience. Some strings are hardcoded and it would be cleaned up with more info before release. It should be enough now for internal people to play with though.\r\n\r\nalso currently has some hardcoded css colors. Plan to clean that up before merging\r\n![4200976a64d110a75adb291bd2c58b5e](https://user-images.githubusercontent.com/13208452/38824577-8da76734-415e-11e8-88b0-f1c570eacfb8.gif)\r\n![c9c5d89e36ae99c511e14d49772b452c](https://user-images.githubusercontent.com/13208452/38824596-9f668766-415e-11e8-8ea6-0a5385ef06cc.gif)\r\n\r\n","created_at":"2018-04-16T00:55:01Z","updated_at":"2018-04-16T23:12:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"35cc0028e5b2b183b46458b5b118c4b9a0c4587d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-functions-ux/pulls/2557/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-functions-ux/pulls/2557/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/2557/comments","statuses_url":"https://api.github.com/repos/Azure/azure-functions-ux/statuses/69acfd2c8318a7fe30e3e2400337c50097389c67","head":{"label":"Azure:prodFunctions","ref":"prodFunctions","sha":"69acfd2c8318a7fe30e3e2400337c50097389c67","user":{"login":"Azure","id":6844498,"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,"name":"azure-functions-ux","full_name":"Azure/azure-functions-ux","owner":{"login":"Azure","id":6844498,"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},"private":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":"2018-04-16T21:00:46Z","pushed_at":"2018-04-16T22:54:29Z","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":17931,"stargazers_count":145,"watchers_count":145,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":55,"mirror_url":null,"archived":false,"open_issues_count":237,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":55,"open_issues":237,"watchers":145,"default_branch":"dev"}},"base":{"label":"Azure:dev","ref":"dev","sha":"8ad8453a22a99bd8e5faeefd28e04f3177ff2774","user":{"login":"Azure","id":6844498,"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,"name":"azure-functions-ux","full_name":"Azure/azure-functions-ux","owner":{"login":"Azure","id":6844498,"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},"private":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":"2018-04-16T21:00:46Z","pushed_at":"2018-04-16T22:54:29Z","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":17931,"stargazers_count":145,"watchers_count":145,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":55,"mirror_url":null,"archived":false,"open_issues_count":237,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":55,"open_issues":237,"watchers":145,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-functions-ux/pulls/2557"},"html":{"href":"https://github.com/Azure/azure-functions-ux/pull/2557"},"issue":{"href":"https://api.github.com/repos/Azure/azure-functions-ux/issues/2557"},"comments":{"href":"https://api.github.com/repos/Azure/azure-functions-ux/issues/2557/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-functions-ux/pulls/2557/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/2557/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-functions-ux/statuses/69acfd2c8318a7fe30e3e2400337c50097389c67"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"ehamai"}}