{"action":"created","comment":{"url":"https://api.github.com/repos/spinnaker/deck/pulls/comments/79261477","id":79261477,"diff_hunk":"@@ -0,0 +1,89 @@\n+import angular from 'angular';\n+\n+class ExecutionWindowDayPickerController {\n+\n+  constructor() {\n+    this.DAYS = [{\n+      dow: 'sunday',\n+      abbr: 'Sun'\n+    }, {\n+      dow: 'monday',\n+      abbr: 'Mon'\n+    }, {\n+      dow: 'tuesday',\n+      abbr: 'Tue'\n+    }, {\n+      dow: 'wednesday',\n+      abbr: 'Wed'\n+    }, {\n+      dow: 'thursday',\n+      abbr: 'Thu'\n+    }, {\n+      dow: 'friday',\n+      abbr: 'Fri'\n+    }, {\n+      dow: 'saturday',\n+      abbr: 'Sat'\n+    }];\n+    this.dayModel = {};\n+  }\n+\n+  $onInit() {\n+    console.log('executing onInit');\n+    const days = new Set(this.days);\n+    this.DAYS.forEach((day, index) => this.dayModel[day.dow] = days.has(index));\n+  }\n+\n+  all() {\n+    this.dayModel.sunday = this.dayModel.saturday = this.dayModel.monday =\n+      this.dayModel.tuesday = this.dayModel.wednesday =\n+        this.dayModel.thursday = this.dayModel.friday = true;\n+    this.updateModel();\n+  }\n+\n+  none() {\n+    this.dayModel.sunday = this.dayModel.saturday = this.dayModel.monday =\n+      this.dayModel.tuesday = this.dayModel.wednesday =\n+        this.dayModel.thursday = this.dayModel.friday = false;\n+    this.updateModel();\n+  }\n+\n+  weekdays() {\n+    this.dayModel.sunday = this.dayModel.saturday = false;\n+    this.dayModel.monday = this.dayModel.tuesday = this.dayModel.wednesday =\n+      this.dayModel.thursday = this.dayModel.friday = true;\n+    this.updateModel();\n+  }\n+\n+  weekend() {\n+    this.dayModel.sunday = this.dayModel.saturday = true;\n+    this.dayModel.monday = this.dayModel.tuesday = this.dayModel.wednesday =\n+      this.dayModel.thursday = this.dayModel.friday = false;\n+    this.updateModel();\n+  }\n+\n+  updateModel() {\n+    const updated = [];\n+    this.DAYS.forEach((day, index) => {\n+      if (this.dayModel[day.dow]) {\n+        updated.push(index + 1);\n+      }\n+    });\n+    this.days = updated;","path":"app/scripts/modules/core/pipeline/config/stages/executionWindows/ExecutionWindowDayPickerComponent.js","position":72,"original_position":72,"commit_id":"f72f75d2733e6e2c1ff63d727fb89dc06f216524","original_commit_id":"f72f75d2733e6e2c1ff63d727fb89dc06f216524","user":{"login":"icfantv","id":370054,"avatar_url":"https://avatars.githubusercontent.com/u/370054?v=3","gravatar_id":"","url":"https://api.github.com/users/icfantv","html_url":"https://github.com/icfantv","followers_url":"https://api.github.com/users/icfantv/followers","following_url":"https://api.github.com/users/icfantv/following{/other_user}","gists_url":"https://api.github.com/users/icfantv/gists{/gist_id}","starred_url":"https://api.github.com/users/icfantv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icfantv/subscriptions","organizations_url":"https://api.github.com/users/icfantv/orgs","repos_url":"https://api.github.com/users/icfantv/repos","events_url":"https://api.github.com/users/icfantv/events{/privacy}","received_events_url":"https://api.github.com/users/icfantv/received_events","type":"User","site_admin":false},"body":"@anotherchrisberry yes, this works and i've confirmed across page reloads that saved values are re-retrieved and set correctly.","created_at":"2016-09-16T22:28:08Z","updated_at":"2016-09-16T22:28:08Z","html_url":"https://github.com/spinnaker/deck/pull/2701#discussion_r79261477","pull_request_url":"https://api.github.com/repos/spinnaker/deck/pulls/2701","_links":{"self":{"href":"https://api.github.com/repos/spinnaker/deck/pulls/comments/79261477"},"html":{"href":"https://github.com/spinnaker/deck/pull/2701#discussion_r79261477"},"pull_request":{"href":"https://api.github.com/repos/spinnaker/deck/pulls/2701"}}},"pull_request":{"url":"https://api.github.com/repos/spinnaker/deck/pulls/2701","id":85503261,"html_url":"https://github.com/spinnaker/deck/pull/2701","diff_url":"https://github.com/spinnaker/deck/pull/2701.diff","patch_url":"https://github.com/spinnaker/deck/pull/2701.patch","issue_url":"https://api.github.com/repos/spinnaker/deck/issues/2701","number":2701,"state":"open","locked":false,"title":"(core) add day selector to execution window","user":{"login":"icfantv","id":370054,"avatar_url":"https://avatars.githubusercontent.com/u/370054?v=3","gravatar_id":"","url":"https://api.github.com/users/icfantv","html_url":"https://github.com/icfantv","followers_url":"https://api.github.com/users/icfantv/followers","following_url":"https://api.github.com/users/icfantv/following{/other_user}","gists_url":"https://api.github.com/users/icfantv/gists{/gist_id}","starred_url":"https://api.github.com/users/icfantv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icfantv/subscriptions","organizations_url":"https://api.github.com/users/icfantv/orgs","repos_url":"https://api.github.com/users/icfantv/repos","events_url":"https://api.github.com/users/icfantv/events{/privacy}","received_events_url":"https://api.github.com/users/icfantv/received_events","type":"User","site_admin":false},"body":"* add days-of-week selector widget to pipeline execution restriction window","created_at":"2016-09-16T00:28:40Z","updated_at":"2016-09-16T22:28:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"74f96924364db401034974a07a0ce0216aa60745","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/spinnaker/deck/pulls/2701/commits","review_comments_url":"https://api.github.com/repos/spinnaker/deck/pulls/2701/comments","review_comment_url":"https://api.github.com/repos/spinnaker/deck/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spinnaker/deck/issues/2701/comments","statuses_url":"https://api.github.com/repos/spinnaker/deck/statuses/f72f75d2733e6e2c1ff63d727fb89dc06f216524","head":{"label":"icfantv:execution_window","ref":"execution_window","sha":"f72f75d2733e6e2c1ff63d727fb89dc06f216524","user":{"login":"icfantv","id":370054,"avatar_url":"https://avatars.githubusercontent.com/u/370054?v=3","gravatar_id":"","url":"https://api.github.com/users/icfantv","html_url":"https://github.com/icfantv","followers_url":"https://api.github.com/users/icfantv/followers","following_url":"https://api.github.com/users/icfantv/following{/other_user}","gists_url":"https://api.github.com/users/icfantv/gists{/gist_id}","starred_url":"https://api.github.com/users/icfantv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icfantv/subscriptions","organizations_url":"https://api.github.com/users/icfantv/orgs","repos_url":"https://api.github.com/users/icfantv/repos","events_url":"https://api.github.com/users/icfantv/events{/privacy}","received_events_url":"https://api.github.com/users/icfantv/received_events","type":"User","site_admin":false},"repo":{"id":65839353,"name":"deck","full_name":"icfantv/deck","owner":{"login":"icfantv","id":370054,"avatar_url":"https://avatars.githubusercontent.com/u/370054?v=3","gravatar_id":"","url":"https://api.github.com/users/icfantv","html_url":"https://github.com/icfantv","followers_url":"https://api.github.com/users/icfantv/followers","following_url":"https://api.github.com/users/icfantv/following{/other_user}","gists_url":"https://api.github.com/users/icfantv/gists{/gist_id}","starred_url":"https://api.github.com/users/icfantv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icfantv/subscriptions","organizations_url":"https://api.github.com/users/icfantv/orgs","repos_url":"https://api.github.com/users/icfantv/repos","events_url":"https://api.github.com/users/icfantv/events{/privacy}","received_events_url":"https://api.github.com/users/icfantv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/icfantv/deck","description":"Management UI for Spinnaker","fork":true,"url":"https://api.github.com/repos/icfantv/deck","forks_url":"https://api.github.com/repos/icfantv/deck/forks","keys_url":"https://api.github.com/repos/icfantv/deck/keys{/key_id}","collaborators_url":"https://api.github.com/repos/icfantv/deck/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/icfantv/deck/teams","hooks_url":"https://api.github.com/repos/icfantv/deck/hooks","issue_events_url":"https://api.github.com/repos/icfantv/deck/issues/events{/number}","events_url":"https://api.github.com/repos/icfantv/deck/events","assignees_url":"https://api.github.com/repos/icfantv/deck/assignees{/user}","branches_url":"https://api.github.com/repos/icfantv/deck/branches{/branch}","tags_url":"https://api.github.com/repos/icfantv/deck/tags","blobs_url":"https://api.github.com/repos/icfantv/deck/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/icfantv/deck/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/icfantv/deck/git/refs{/sha}","trees_url":"https://api.github.com/repos/icfantv/deck/git/trees{/sha}","statuses_url":"https://api.github.com/repos/icfantv/deck/statuses/{sha}","languages_url":"https://api.github.com/repos/icfantv/deck/languages","stargazers_url":"https://api.github.com/repos/icfantv/deck/stargazers","contributors_url":"https://api.github.com/repos/icfantv/deck/contributors","subscribers_url":"https://api.github.com/repos/icfantv/deck/subscribers","subscription_url":"https://api.github.com/repos/icfantv/deck/subscription","commits_url":"https://api.github.com/repos/icfantv/deck/commits{/sha}","git_commits_url":"https://api.github.com/repos/icfantv/deck/git/commits{/sha}","comments_url":"https://api.github.com/repos/icfantv/deck/comments{/number}","issue_comment_url":"https://api.github.com/repos/icfantv/deck/issues/comments{/number}","contents_url":"https://api.github.com/repos/icfantv/deck/contents/{+path}","compare_url":"https://api.github.com/repos/icfantv/deck/compare/{base}...{head}","merges_url":"https://api.github.com/repos/icfantv/deck/merges","archive_url":"https://api.github.com/repos/icfantv/deck/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/icfantv/deck/downloads","issues_url":"https://api.github.com/repos/icfantv/deck/issues{/number}","pulls_url":"https://api.github.com/repos/icfantv/deck/pulls{/number}","milestones_url":"https://api.github.com/repos/icfantv/deck/milestones{/number}","notifications_url":"https://api.github.com/repos/icfantv/deck/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/icfantv/deck/labels{/name}","releases_url":"https://api.github.com/repos/icfantv/deck/releases{/id}","deployments_url":"https://api.github.com/repos/icfantv/deck/deployments","created_at":"2016-08-16T17:20:24Z","updated_at":"2016-08-16T17:20:30Z","pushed_at":"2016-09-16T16:12:46Z","git_url":"git://github.com/icfantv/deck.git","ssh_url":"git@github.com:icfantv/deck.git","clone_url":"https://github.com/icfantv/deck.git","svn_url":"https://github.com/icfantv/deck","homepage":"","size":19746,"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":"spinnaker:master","ref":"master","sha":"b53c6abe9e1cb0b4ff836d21113bec068cf02863","user":{"login":"spinnaker","id":7634182,"avatar_url":"https://avatars.githubusercontent.com/u/7634182?v=3","gravatar_id":"","url":"https://api.github.com/users/spinnaker","html_url":"https://github.com/spinnaker","followers_url":"https://api.github.com/users/spinnaker/followers","following_url":"https://api.github.com/users/spinnaker/following{/other_user}","gists_url":"https://api.github.com/users/spinnaker/gists{/gist_id}","starred_url":"https://api.github.com/users/spinnaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spinnaker/subscriptions","organizations_url":"https://api.github.com/users/spinnaker/orgs","repos_url":"https://api.github.com/users/spinnaker/repos","events_url":"https://api.github.com/users/spinnaker/events{/privacy}","received_events_url":"https://api.github.com/users/spinnaker/received_events","type":"Organization","site_admin":false},"repo":{"id":21953642,"name":"deck","full_name":"spinnaker/deck","owner":{"login":"spinnaker","id":7634182,"avatar_url":"https://avatars.githubusercontent.com/u/7634182?v=3","gravatar_id":"","url":"https://api.github.com/users/spinnaker","html_url":"https://github.com/spinnaker","followers_url":"https://api.github.com/users/spinnaker/followers","following_url":"https://api.github.com/users/spinnaker/following{/other_user}","gists_url":"https://api.github.com/users/spinnaker/gists{/gist_id}","starred_url":"https://api.github.com/users/spinnaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spinnaker/subscriptions","organizations_url":"https://api.github.com/users/spinnaker/orgs","repos_url":"https://api.github.com/users/spinnaker/repos","events_url":"https://api.github.com/users/spinnaker/events{/privacy}","received_events_url":"https://api.github.com/users/spinnaker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spinnaker/deck","description":"Management UI for Spinnaker","fork":false,"url":"https://api.github.com/repos/spinnaker/deck","forks_url":"https://api.github.com/repos/spinnaker/deck/forks","keys_url":"https://api.github.com/repos/spinnaker/deck/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spinnaker/deck/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spinnaker/deck/teams","hooks_url":"https://api.github.com/repos/spinnaker/deck/hooks","issue_events_url":"https://api.github.com/repos/spinnaker/deck/issues/events{/number}","events_url":"https://api.github.com/repos/spinnaker/deck/events","assignees_url":"https://api.github.com/repos/spinnaker/deck/assignees{/user}","branches_url":"https://api.github.com/repos/spinnaker/deck/branches{/branch}","tags_url":"https://api.github.com/repos/spinnaker/deck/tags","blobs_url":"https://api.github.com/repos/spinnaker/deck/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spinnaker/deck/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spinnaker/deck/git/refs{/sha}","trees_url":"https://api.github.com/repos/spinnaker/deck/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spinnaker/deck/statuses/{sha}","languages_url":"https://api.github.com/repos/spinnaker/deck/languages","stargazers_url":"https://api.github.com/repos/spinnaker/deck/stargazers","contributors_url":"https://api.github.com/repos/spinnaker/deck/contributors","subscribers_url":"https://api.github.com/repos/spinnaker/deck/subscribers","subscription_url":"https://api.github.com/repos/spinnaker/deck/subscription","commits_url":"https://api.github.com/repos/spinnaker/deck/commits{/sha}","git_commits_url":"https://api.github.com/repos/spinnaker/deck/git/commits{/sha}","comments_url":"https://api.github.com/repos/spinnaker/deck/comments{/number}","issue_comment_url":"https://api.github.com/repos/spinnaker/deck/issues/comments{/number}","contents_url":"https://api.github.com/repos/spinnaker/deck/contents/{+path}","compare_url":"https://api.github.com/repos/spinnaker/deck/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spinnaker/deck/merges","archive_url":"https://api.github.com/repos/spinnaker/deck/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spinnaker/deck/downloads","issues_url":"https://api.github.com/repos/spinnaker/deck/issues{/number}","pulls_url":"https://api.github.com/repos/spinnaker/deck/pulls{/number}","milestones_url":"https://api.github.com/repos/spinnaker/deck/milestones{/number}","notifications_url":"https://api.github.com/repos/spinnaker/deck/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spinnaker/deck/labels{/name}","releases_url":"https://api.github.com/repos/spinnaker/deck/releases{/id}","deployments_url":"https://api.github.com/repos/spinnaker/deck/deployments","created_at":"2014-07-17T18:51:00Z","updated_at":"2016-09-13T15:38:45Z","pushed_at":"2016-09-16T20:40:45Z","git_url":"git://github.com/spinnaker/deck.git","ssh_url":"git@github.com:spinnaker/deck.git","clone_url":"https://github.com/spinnaker/deck.git","svn_url":"https://github.com/spinnaker/deck","homepage":"","size":32116,"stargazers_count":60,"watchers_count":60,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":93,"mirror_url":null,"open_issues_count":7,"forks":93,"open_issues":7,"watchers":60,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spinnaker/deck/pulls/2701"},"html":{"href":"https://github.com/spinnaker/deck/pull/2701"},"issue":{"href":"https://api.github.com/repos/spinnaker/deck/issues/2701"},"comments":{"href":"https://api.github.com/repos/spinnaker/deck/issues/2701/comments"},"review_comments":{"href":"https://api.github.com/repos/spinnaker/deck/pulls/2701/comments"},"review_comment":{"href":"https://api.github.com/repos/spinnaker/deck/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spinnaker/deck/pulls/2701/commits"},"statuses":{"href":"https://api.github.com/repos/spinnaker/deck/statuses/f72f75d2733e6e2c1ff63d727fb89dc06f216524"}}}}
{"actor":{"display_login":"icfantv"}}