{"action":"created","comment":{"url":"https://api.github.com/repos/khartec/waltz/pulls/comments/90875914","pull_request_review_id":11388233,"id":90875914,"diff_hunk":"@@ -0,0 +1,71 @@\n+/*\n+ *  Waltz\n+ * Copyright (c) David Watkins. All rights reserved.\n+ * The use and distribution terms for this software are covered by the\n+ * Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)\n+ * which can be found in the file epl-v10.html at the root of this distribution.\n+ * By using this software in any fashion, you are agreeing to be bound by\n+ * the terms of this license.\n+ * You must not remove this notice, or any other, from this software.\n+ *\n+ */\n+import {initialiseData} from \"../common\";\n+\n+\n+const initialState = {\n+    activeUsers: []\n+};\n+\n+\n+function controller($window,\n+                    accessLogStore) {\n+\n+    const vm =  initialiseData(this, initialState);\n+\n+    vm.activeUsers = [];\n+\n+    vm.onDurationChange = (minutes) => {\n+        accessLogStore\n+                .findActiveUsers(minutes)\n+                .then(activeUsers => {\n+                    vm.activeUsers = activeUsers\n+                });","path":"waltz-ng/client/user/active-users.js","position":32,"original_position":32,"commit_id":"8a35485a16f5ef74e1a177437ce4935e27b6f2e8","original_commit_id":"8a35485a16f5ef74e1a177437ce4935e27b6f2e8","user":{"login":"davidwatkins73","id":576829,"avatar_url":"https://avatars.githubusercontent.com/u/576829?v=3","gravatar_id":"","url":"https://api.github.com/users/davidwatkins73","html_url":"https://github.com/davidwatkins73","followers_url":"https://api.github.com/users/davidwatkins73/followers","following_url":"https://api.github.com/users/davidwatkins73/following{/other_user}","gists_url":"https://api.github.com/users/davidwatkins73/gists{/gist_id}","starred_url":"https://api.github.com/users/davidwatkins73/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidwatkins73/subscriptions","organizations_url":"https://api.github.com/users/davidwatkins73/orgs","repos_url":"https://api.github.com/users/davidwatkins73/repos","events_url":"https://api.github.com/users/davidwatkins73/events{/privacy}","received_events_url":"https://api.github.com/users/davidwatkins73/received_events","type":"User","site_admin":false},"body":"Could be one-liner","created_at":"2016-12-05T14:38:57Z","updated_at":"2016-12-05T14:46:08Z","html_url":"https://github.com/khartec/waltz/pull/1133#discussion_r90875914","pull_request_url":"https://api.github.com/repos/khartec/waltz/pulls/1133","_links":{"self":{"href":"https://api.github.com/repos/khartec/waltz/pulls/comments/90875914"},"html":{"href":"https://github.com/khartec/waltz/pull/1133#discussion_r90875914"},"pull_request":{"href":"https://api.github.com/repos/khartec/waltz/pulls/1133"}}},"pull_request":{"url":"https://api.github.com/repos/khartec/waltz/pulls/1133","id":96532286,"html_url":"https://github.com/khartec/waltz/pull/1133","diff_url":"https://github.com/khartec/waltz/pull/1133.diff","patch_url":"https://github.com/khartec/waltz/pull/1133.patch","issue_url":"https://api.github.com/repos/khartec/waltz/issues/1133","number":1133,"state":"open","locked":false,"title":"Admin page for recently active users","user":{"login":"kamransaleem","id":3029467,"avatar_url":"https://avatars.githubusercontent.com/u/3029467?v=3","gravatar_id":"","url":"https://api.github.com/users/kamransaleem","html_url":"https://github.com/kamransaleem","followers_url":"https://api.github.com/users/kamransaleem/followers","following_url":"https://api.github.com/users/kamransaleem/following{/other_user}","gists_url":"https://api.github.com/users/kamransaleem/gists{/gist_id}","starred_url":"https://api.github.com/users/kamransaleem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamransaleem/subscriptions","organizations_url":"https://api.github.com/users/kamransaleem/orgs","repos_url":"https://api.github.com/users/kamransaleem/repos","events_url":"https://api.github.com/users/kamransaleem/events{/privacy}","received_events_url":"https://api.github.com/users/kamransaleem/received_events","type":"User","site_admin":false},"body":"#1122","created_at":"2016-12-05T13:52:54Z","updated_at":"2016-12-05T14:46:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a8e9c8d138bbbdf077b1150f03374b217ecae7b8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/khartec/waltz/pulls/1133/commits","review_comments_url":"https://api.github.com/repos/khartec/waltz/pulls/1133/comments","review_comment_url":"https://api.github.com/repos/khartec/waltz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/khartec/waltz/issues/1133/comments","statuses_url":"https://api.github.com/repos/khartec/waltz/statuses/8a35485a16f5ef74e1a177437ce4935e27b6f2e8","head":{"label":"kamransaleem:waltz-1122-active-users-interaction-times","ref":"waltz-1122-active-users-interaction-times","sha":"8a35485a16f5ef74e1a177437ce4935e27b6f2e8","user":{"login":"kamransaleem","id":3029467,"avatar_url":"https://avatars.githubusercontent.com/u/3029467?v=3","gravatar_id":"","url":"https://api.github.com/users/kamransaleem","html_url":"https://github.com/kamransaleem","followers_url":"https://api.github.com/users/kamransaleem/followers","following_url":"https://api.github.com/users/kamransaleem/following{/other_user}","gists_url":"https://api.github.com/users/kamransaleem/gists{/gist_id}","starred_url":"https://api.github.com/users/kamransaleem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamransaleem/subscriptions","organizations_url":"https://api.github.com/users/kamransaleem/orgs","repos_url":"https://api.github.com/users/kamransaleem/repos","events_url":"https://api.github.com/users/kamransaleem/events{/privacy}","received_events_url":"https://api.github.com/users/kamransaleem/received_events","type":"User","site_admin":false},"repo":{"id":61117590,"name":"waltz","full_name":"kamransaleem/waltz","owner":{"login":"kamransaleem","id":3029467,"avatar_url":"https://avatars.githubusercontent.com/u/3029467?v=3","gravatar_id":"","url":"https://api.github.com/users/kamransaleem","html_url":"https://github.com/kamransaleem","followers_url":"https://api.github.com/users/kamransaleem/followers","following_url":"https://api.github.com/users/kamransaleem/following{/other_user}","gists_url":"https://api.github.com/users/kamransaleem/gists{/gist_id}","starred_url":"https://api.github.com/users/kamransaleem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamransaleem/subscriptions","organizations_url":"https://api.github.com/users/kamransaleem/orgs","repos_url":"https://api.github.com/users/kamransaleem/repos","events_url":"https://api.github.com/users/kamransaleem/events{/privacy}","received_events_url":"https://api.github.com/users/kamransaleem/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kamransaleem/waltz","description":"Architecture on the Wire","fork":true,"url":"https://api.github.com/repos/kamransaleem/waltz","forks_url":"https://api.github.com/repos/kamransaleem/waltz/forks","keys_url":"https://api.github.com/repos/kamransaleem/waltz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kamransaleem/waltz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kamransaleem/waltz/teams","hooks_url":"https://api.github.com/repos/kamransaleem/waltz/hooks","issue_events_url":"https://api.github.com/repos/kamransaleem/waltz/issues/events{/number}","events_url":"https://api.github.com/repos/kamransaleem/waltz/events","assignees_url":"https://api.github.com/repos/kamransaleem/waltz/assignees{/user}","branches_url":"https://api.github.com/repos/kamransaleem/waltz/branches{/branch}","tags_url":"https://api.github.com/repos/kamransaleem/waltz/tags","blobs_url":"https://api.github.com/repos/kamransaleem/waltz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kamransaleem/waltz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kamransaleem/waltz/git/refs{/sha}","trees_url":"https://api.github.com/repos/kamransaleem/waltz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kamransaleem/waltz/statuses/{sha}","languages_url":"https://api.github.com/repos/kamransaleem/waltz/languages","stargazers_url":"https://api.github.com/repos/kamransaleem/waltz/stargazers","contributors_url":"https://api.github.com/repos/kamransaleem/waltz/contributors","subscribers_url":"https://api.github.com/repos/kamransaleem/waltz/subscribers","subscription_url":"https://api.github.com/repos/kamransaleem/waltz/subscription","commits_url":"https://api.github.com/repos/kamransaleem/waltz/commits{/sha}","git_commits_url":"https://api.github.com/repos/kamransaleem/waltz/git/commits{/sha}","comments_url":"https://api.github.com/repos/kamransaleem/waltz/comments{/number}","issue_comment_url":"https://api.github.com/repos/kamransaleem/waltz/issues/comments{/number}","contents_url":"https://api.github.com/repos/kamransaleem/waltz/contents/{+path}","compare_url":"https://api.github.com/repos/kamransaleem/waltz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kamransaleem/waltz/merges","archive_url":"https://api.github.com/repos/kamransaleem/waltz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kamransaleem/waltz/downloads","issues_url":"https://api.github.com/repos/kamransaleem/waltz/issues{/number}","pulls_url":"https://api.github.com/repos/kamransaleem/waltz/pulls{/number}","milestones_url":"https://api.github.com/repos/kamransaleem/waltz/milestones{/number}","notifications_url":"https://api.github.com/repos/kamransaleem/waltz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kamransaleem/waltz/labels{/name}","releases_url":"https://api.github.com/repos/kamransaleem/waltz/releases{/id}","deployments_url":"https://api.github.com/repos/kamransaleem/waltz/deployments","created_at":"2016-06-14T11:32:40Z","updated_at":"2016-06-14T11:32:42Z","pushed_at":"2016-12-05T13:50:29Z","git_url":"git://github.com/kamransaleem/waltz.git","ssh_url":"git@github.com:kamransaleem/waltz.git","clone_url":"https://github.com/kamransaleem/waltz.git","svn_url":"https://github.com/kamransaleem/waltz","homepage":null,"size":4899,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"khartec:master","ref":"master","sha":"478aa74f827c853bdfa0af831956a33a02baa246","user":{"login":"khartec","id":16178732,"avatar_url":"https://avatars.githubusercontent.com/u/16178732?v=3","gravatar_id":"","url":"https://api.github.com/users/khartec","html_url":"https://github.com/khartec","followers_url":"https://api.github.com/users/khartec/followers","following_url":"https://api.github.com/users/khartec/following{/other_user}","gists_url":"https://api.github.com/users/khartec/gists{/gist_id}","starred_url":"https://api.github.com/users/khartec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khartec/subscriptions","organizations_url":"https://api.github.com/users/khartec/orgs","repos_url":"https://api.github.com/users/khartec/repos","events_url":"https://api.github.com/users/khartec/events{/privacy}","received_events_url":"https://api.github.com/users/khartec/received_events","type":"Organization","site_admin":false},"repo":{"id":47506301,"name":"waltz","full_name":"khartec/waltz","owner":{"login":"khartec","id":16178732,"avatar_url":"https://avatars.githubusercontent.com/u/16178732?v=3","gravatar_id":"","url":"https://api.github.com/users/khartec","html_url":"https://github.com/khartec","followers_url":"https://api.github.com/users/khartec/followers","following_url":"https://api.github.com/users/khartec/following{/other_user}","gists_url":"https://api.github.com/users/khartec/gists{/gist_id}","starred_url":"https://api.github.com/users/khartec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khartec/subscriptions","organizations_url":"https://api.github.com/users/khartec/orgs","repos_url":"https://api.github.com/users/khartec/repos","events_url":"https://api.github.com/users/khartec/events{/privacy}","received_events_url":"https://api.github.com/users/khartec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/khartec/waltz","description":"Architecture on the Wire - ","fork":false,"url":"https://api.github.com/repos/khartec/waltz","forks_url":"https://api.github.com/repos/khartec/waltz/forks","keys_url":"https://api.github.com/repos/khartec/waltz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/khartec/waltz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/khartec/waltz/teams","hooks_url":"https://api.github.com/repos/khartec/waltz/hooks","issue_events_url":"https://api.github.com/repos/khartec/waltz/issues/events{/number}","events_url":"https://api.github.com/repos/khartec/waltz/events","assignees_url":"https://api.github.com/repos/khartec/waltz/assignees{/user}","branches_url":"https://api.github.com/repos/khartec/waltz/branches{/branch}","tags_url":"https://api.github.com/repos/khartec/waltz/tags","blobs_url":"https://api.github.com/repos/khartec/waltz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/khartec/waltz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/khartec/waltz/git/refs{/sha}","trees_url":"https://api.github.com/repos/khartec/waltz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/khartec/waltz/statuses/{sha}","languages_url":"https://api.github.com/repos/khartec/waltz/languages","stargazers_url":"https://api.github.com/repos/khartec/waltz/stargazers","contributors_url":"https://api.github.com/repos/khartec/waltz/contributors","subscribers_url":"https://api.github.com/repos/khartec/waltz/subscribers","subscription_url":"https://api.github.com/repos/khartec/waltz/subscription","commits_url":"https://api.github.com/repos/khartec/waltz/commits{/sha}","git_commits_url":"https://api.github.com/repos/khartec/waltz/git/commits{/sha}","comments_url":"https://api.github.com/repos/khartec/waltz/comments{/number}","issue_comment_url":"https://api.github.com/repos/khartec/waltz/issues/comments{/number}","contents_url":"https://api.github.com/repos/khartec/waltz/contents/{+path}","compare_url":"https://api.github.com/repos/khartec/waltz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/khartec/waltz/merges","archive_url":"https://api.github.com/repos/khartec/waltz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/khartec/waltz/downloads","issues_url":"https://api.github.com/repos/khartec/waltz/issues{/number}","pulls_url":"https://api.github.com/repos/khartec/waltz/pulls{/number}","milestones_url":"https://api.github.com/repos/khartec/waltz/milestones{/number}","notifications_url":"https://api.github.com/repos/khartec/waltz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/khartec/waltz/labels{/name}","releases_url":"https://api.github.com/repos/khartec/waltz/releases{/id}","deployments_url":"https://api.github.com/repos/khartec/waltz/deployments","created_at":"2015-12-06T17:26:44Z","updated_at":"2016-11-27T22:37:53Z","pushed_at":"2016-12-05T13:52:54Z","git_url":"git://github.com/khartec/waltz.git","ssh_url":"git@github.com:khartec/waltz.git","clone_url":"https://github.com/khartec/waltz.git","svn_url":"https://github.com/khartec/waltz","homepage":"https://khartec.github.io","size":5028,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":66,"forks":5,"open_issues":66,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/khartec/waltz/pulls/1133"},"html":{"href":"https://github.com/khartec/waltz/pull/1133"},"issue":{"href":"https://api.github.com/repos/khartec/waltz/issues/1133"},"comments":{"href":"https://api.github.com/repos/khartec/waltz/issues/1133/comments"},"review_comments":{"href":"https://api.github.com/repos/khartec/waltz/pulls/1133/comments"},"review_comment":{"href":"https://api.github.com/repos/khartec/waltz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/khartec/waltz/pulls/1133/commits"},"statuses":{"href":"https://api.github.com/repos/khartec/waltz/statuses/8a35485a16f5ef74e1a177437ce4935e27b6f2e8"}}}}
{"actor":{"display_login":"davidwatkins73"}}