{"action":"created","comment":{"url":"https://api.github.com/repos/reposense/RepoSense/pulls/comments/199383075","pull_request_review_id":133490432,"id":199383075,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTM4MzA3NQ==","diff_hunk":"@@ -0,0 +1,349 @@\n+function comparator(fn) {\n+  return function compare(a, b) {\n+    const a1 = fn(a);\n+    const b1 = fn(b);\n+    if (a1 === b1) {\n+      return 0;\n+    } if (a1 < b1) {\n+      return -1;\n+    }\n+    return 1;\n+  };\n+}\n+\n+/* dates funcs */\n+const DAY_IN_MS = (1000 * 60 * 60 * 24);\n+function getIntervalDay(a, b) {\n+  const diff = Date.parse(a) - Date.parse(b);\n+  return diff / DAY_IN_MS;\n+}\n+function getDateStr(date) {\n+  return (new Date(date)).toISOString().split('T')[0];\n+}\n+function dateRounding(datestr, roundDown) {\n+  // rounding up to nearest sunday\n+  const date = new Date(datestr);\n+  const day = date.getUTCDay();\n+  let datems = date.getTime();\n+  if (roundDown) {\n+    datems -= day * DAY_IN_MS;\n+  } else {\n+    datems += (7 - day) * DAY_IN_MS;\n+  }\n+\n+  return getDateStr(datems);\n+}\n+\n+window.vSummary = {\n+  props: ['repos'],\n+  template: window.$('v_summary').innerHTML,","path":"frontend/src/static/js/v_summary.js","position":39,"original_position":39,"commit_id":"2bb6afdd1a1e8ff03d4b3d94a165a5833756cd08","original_commit_id":"2bb6afdd1a1e8ff03d4b3d94a165a5833756cd08","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Strings must use doublequote. (quotes)](https://app.codacy.com/app/eugenepeh/RepoSense/pullRequest?prid=1849024)","created_at":"2018-07-02T04:30:15Z","updated_at":"2018-07-02T04:30:15Z","html_url":"https://github.com/reposense/RepoSense/pull/160#discussion_r199383075","pull_request_url":"https://api.github.com/repos/reposense/RepoSense/pulls/160","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/reposense/RepoSense/pulls/comments/199383075"},"html":{"href":"https://github.com/reposense/RepoSense/pull/160#discussion_r199383075"},"pull_request":{"href":"https://api.github.com/repos/reposense/RepoSense/pulls/160"}}},"pull_request":{"url":"https://api.github.com/repos/reposense/RepoSense/pulls/160","id":198570170,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4NTcwMTcw","html_url":"https://github.com/reposense/RepoSense/pull/160","diff_url":"https://github.com/reposense/RepoSense/pull/160.diff","patch_url":"https://github.com/reposense/RepoSense/pull/160.patch","issue_url":"https://api.github.com/repos/reposense/RepoSense/issues/160","number":160,"state":"open","locked":false,"title":"not done. dun see. ignore pls. adding permalink feature to restore filtered view","user":{"login":"ongspxm","id":1430854,"node_id":"MDQ6VXNlcjE0MzA4NTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1430854?v=4","gravatar_id":"","url":"https://api.github.com/users/ongspxm","html_url":"https://github.com/ongspxm","followers_url":"https://api.github.com/users/ongspxm/followers","following_url":"https://api.github.com/users/ongspxm/following{/other_user}","gists_url":"https://api.github.com/users/ongspxm/gists{/gist_id}","starred_url":"https://api.github.com/users/ongspxm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ongspxm/subscriptions","organizations_url":"https://api.github.com/users/ongspxm/orgs","repos_url":"https://api.github.com/users/ongspxm/repos","events_url":"https://api.github.com/users/ongspxm/events{/privacy}","received_events_url":"https://api.github.com/users/ongspxm/received_events","type":"User","site_admin":false},"body":"commit message. closes #154 \r\n\r\n```\r\nThe summary dashboard plays an important role in highlighting and filtering the\r\nreport data to provide the most relevant view for the users.\r\n\r\nPermalinks was a feature implemented in the previous dashboard that enables the\r\nusers to quickly save the state of the dashboard to quickly return to it when\r\nneeded.\r\n\r\nWhile useful, this feature was not core to the usage of the dashboard, hence\r\nleft out during the feature for feature reimplementation during the dashboard\r\nstructural changes.\r\n\r\nLets implement this permalink feature in the main vue module. New fields will\r\nbe emitted from their individual modules into the global  object.\r\n\r\nThe summary module will read the information from the global object then load\r\nthe filtered view accordingly.\r\n\r\nImplementing it in the main modules also provides us the option of opening up\r\nother modules for the permalink features if needed in the future.\r\n```","created_at":"2018-07-02T04:28:05Z","updated_at":"2018-07-02T04:30:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/reposense/RepoSense/pulls/160/commits","review_comments_url":"https://api.github.com/repos/reposense/RepoSense/pulls/160/comments","review_comment_url":"https://api.github.com/repos/reposense/RepoSense/pulls/comments{/number}","comments_url":"https://api.github.com/repos/reposense/RepoSense/issues/160/comments","statuses_url":"https://api.github.com/repos/reposense/RepoSense/statuses/2bb6afdd1a1e8ff03d4b3d94a165a5833756cd08","head":{"label":"ongspxm:permalink","ref":"permalink","sha":"2bb6afdd1a1e8ff03d4b3d94a165a5833756cd08","user":{"login":"ongspxm","id":1430854,"node_id":"MDQ6VXNlcjE0MzA4NTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1430854?v=4","gravatar_id":"","url":"https://api.github.com/users/ongspxm","html_url":"https://github.com/ongspxm","followers_url":"https://api.github.com/users/ongspxm/followers","following_url":"https://api.github.com/users/ongspxm/following{/other_user}","gists_url":"https://api.github.com/users/ongspxm/gists{/gist_id}","starred_url":"https://api.github.com/users/ongspxm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ongspxm/subscriptions","organizations_url":"https://api.github.com/users/ongspxm/orgs","repos_url":"https://api.github.com/users/ongspxm/repos","events_url":"https://api.github.com/users/ongspxm/events{/privacy}","received_events_url":"https://api.github.com/users/ongspxm/received_events","type":"User","site_admin":false},"repo":{"id":133292774,"node_id":"MDEwOlJlcG9zaXRvcnkxMzMyOTI3NzQ=","name":"RepoSense","full_name":"ongspxm/RepoSense","owner":{"login":"ongspxm","id":1430854,"node_id":"MDQ6VXNlcjE0MzA4NTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1430854?v=4","gravatar_id":"","url":"https://api.github.com/users/ongspxm","html_url":"https://github.com/ongspxm","followers_url":"https://api.github.com/users/ongspxm/followers","following_url":"https://api.github.com/users/ongspxm/following{/other_user}","gists_url":"https://api.github.com/users/ongspxm/gists{/gist_id}","starred_url":"https://api.github.com/users/ongspxm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ongspxm/subscriptions","organizations_url":"https://api.github.com/users/ongspxm/orgs","repos_url":"https://api.github.com/users/ongspxm/repos","events_url":"https://api.github.com/users/ongspxm/events{/privacy}","received_events_url":"https://api.github.com/users/ongspxm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ongspxm/RepoSense","description":"Product demo ","fork":true,"url":"https://api.github.com/repos/ongspxm/RepoSense","forks_url":"https://api.github.com/repos/ongspxm/RepoSense/forks","keys_url":"https://api.github.com/repos/ongspxm/RepoSense/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ongspxm/RepoSense/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ongspxm/RepoSense/teams","hooks_url":"https://api.github.com/repos/ongspxm/RepoSense/hooks","issue_events_url":"https://api.github.com/repos/ongspxm/RepoSense/issues/events{/number}","events_url":"https://api.github.com/repos/ongspxm/RepoSense/events","assignees_url":"https://api.github.com/repos/ongspxm/RepoSense/assignees{/user}","branches_url":"https://api.github.com/repos/ongspxm/RepoSense/branches{/branch}","tags_url":"https://api.github.com/repos/ongspxm/RepoSense/tags","blobs_url":"https://api.github.com/repos/ongspxm/RepoSense/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ongspxm/RepoSense/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ongspxm/RepoSense/git/refs{/sha}","trees_url":"https://api.github.com/repos/ongspxm/RepoSense/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ongspxm/RepoSense/statuses/{sha}","languages_url":"https://api.github.com/repos/ongspxm/RepoSense/languages","stargazers_url":"https://api.github.com/repos/ongspxm/RepoSense/stargazers","contributors_url":"https://api.github.com/repos/ongspxm/RepoSense/contributors","subscribers_url":"https://api.github.com/repos/ongspxm/RepoSense/subscribers","subscription_url":"https://api.github.com/repos/ongspxm/RepoSense/subscription","commits_url":"https://api.github.com/repos/ongspxm/RepoSense/commits{/sha}","git_commits_url":"https://api.github.com/repos/ongspxm/RepoSense/git/commits{/sha}","comments_url":"https://api.github.com/repos/ongspxm/RepoSense/comments{/number}","issue_comment_url":"https://api.github.com/repos/ongspxm/RepoSense/issues/comments{/number}","contents_url":"https://api.github.com/repos/ongspxm/RepoSense/contents/{+path}","compare_url":"https://api.github.com/repos/ongspxm/RepoSense/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ongspxm/RepoSense/merges","archive_url":"https://api.github.com/repos/ongspxm/RepoSense/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ongspxm/RepoSense/downloads","issues_url":"https://api.github.com/repos/ongspxm/RepoSense/issues{/number}","pulls_url":"https://api.github.com/repos/ongspxm/RepoSense/pulls{/number}","milestones_url":"https://api.github.com/repos/ongspxm/RepoSense/milestones{/number}","notifications_url":"https://api.github.com/repos/ongspxm/RepoSense/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ongspxm/RepoSense/labels{/name}","releases_url":"https://api.github.com/repos/ongspxm/RepoSense/releases{/id}","deployments_url":"https://api.github.com/repos/ongspxm/RepoSense/deployments","created_at":"2018-05-14T02:08:01Z","updated_at":"2018-06-19T09:03:03Z","pushed_at":"2018-07-02T03:11:30Z","git_url":"git://github.com/ongspxm/RepoSense.git","ssh_url":"git@github.com:ongspxm/RepoSense.git","clone_url":"https://github.com/ongspxm/RepoSense.git","svn_url":"https://github.com/ongspxm/RepoSense","homepage":"https://reposense.github.io/dashboard-demo/","size":9193,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"reposense:master","ref":"master","sha":"b789ed919a642d36b12b0c1bc8831d1bb39f87a8","user":{"login":"reposense","id":38902595,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4OTAyNTk1","avatar_url":"https://avatars1.githubusercontent.com/u/38902595?v=4","gravatar_id":"","url":"https://api.github.com/users/reposense","html_url":"https://github.com/reposense","followers_url":"https://api.github.com/users/reposense/followers","following_url":"https://api.github.com/users/reposense/following{/other_user}","gists_url":"https://api.github.com/users/reposense/gists{/gist_id}","starred_url":"https://api.github.com/users/reposense/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reposense/subscriptions","organizations_url":"https://api.github.com/users/reposense/orgs","repos_url":"https://api.github.com/users/reposense/repos","events_url":"https://api.github.com/users/reposense/events{/privacy}","received_events_url":"https://api.github.com/users/reposense/received_events","type":"Organization","site_admin":false},"repo":{"id":92653253,"node_id":"MDEwOlJlcG9zaXRvcnk5MjY1MzI1Mw==","name":"RepoSense","full_name":"reposense/RepoSense","owner":{"login":"reposense","id":38902595,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4OTAyNTk1","avatar_url":"https://avatars1.githubusercontent.com/u/38902595?v=4","gravatar_id":"","url":"https://api.github.com/users/reposense","html_url":"https://github.com/reposense","followers_url":"https://api.github.com/users/reposense/followers","following_url":"https://api.github.com/users/reposense/following{/other_user}","gists_url":"https://api.github.com/users/reposense/gists{/gist_id}","starred_url":"https://api.github.com/users/reposense/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reposense/subscriptions","organizations_url":"https://api.github.com/users/reposense/orgs","repos_url":"https://api.github.com/users/reposense/repos","events_url":"https://api.github.com/users/reposense/events{/privacy}","received_events_url":"https://api.github.com/users/reposense/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/reposense/RepoSense","description":"Product demo ","fork":false,"url":"https://api.github.com/repos/reposense/RepoSense","forks_url":"https://api.github.com/repos/reposense/RepoSense/forks","keys_url":"https://api.github.com/repos/reposense/RepoSense/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reposense/RepoSense/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reposense/RepoSense/teams","hooks_url":"https://api.github.com/repos/reposense/RepoSense/hooks","issue_events_url":"https://api.github.com/repos/reposense/RepoSense/issues/events{/number}","events_url":"https://api.github.com/repos/reposense/RepoSense/events","assignees_url":"https://api.github.com/repos/reposense/RepoSense/assignees{/user}","branches_url":"https://api.github.com/repos/reposense/RepoSense/branches{/branch}","tags_url":"https://api.github.com/repos/reposense/RepoSense/tags","blobs_url":"https://api.github.com/repos/reposense/RepoSense/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reposense/RepoSense/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reposense/RepoSense/git/refs{/sha}","trees_url":"https://api.github.com/repos/reposense/RepoSense/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reposense/RepoSense/statuses/{sha}","languages_url":"https://api.github.com/repos/reposense/RepoSense/languages","stargazers_url":"https://api.github.com/repos/reposense/RepoSense/stargazers","contributors_url":"https://api.github.com/repos/reposense/RepoSense/contributors","subscribers_url":"https://api.github.com/repos/reposense/RepoSense/subscribers","subscription_url":"https://api.github.com/repos/reposense/RepoSense/subscription","commits_url":"https://api.github.com/repos/reposense/RepoSense/commits{/sha}","git_commits_url":"https://api.github.com/repos/reposense/RepoSense/git/commits{/sha}","comments_url":"https://api.github.com/repos/reposense/RepoSense/comments{/number}","issue_comment_url":"https://api.github.com/repos/reposense/RepoSense/issues/comments{/number}","contents_url":"https://api.github.com/repos/reposense/RepoSense/contents/{+path}","compare_url":"https://api.github.com/repos/reposense/RepoSense/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reposense/RepoSense/merges","archive_url":"https://api.github.com/repos/reposense/RepoSense/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reposense/RepoSense/downloads","issues_url":"https://api.github.com/repos/reposense/RepoSense/issues{/number}","pulls_url":"https://api.github.com/repos/reposense/RepoSense/pulls{/number}","milestones_url":"https://api.github.com/repos/reposense/RepoSense/milestones{/number}","notifications_url":"https://api.github.com/repos/reposense/RepoSense/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reposense/RepoSense/labels{/name}","releases_url":"https://api.github.com/repos/reposense/RepoSense/releases{/id}","deployments_url":"https://api.github.com/repos/reposense/RepoSense/deployments","created_at":"2017-05-28T10:02:08Z","updated_at":"2018-07-01T19:38:53Z","pushed_at":"2018-07-02T04:28:06Z","git_url":"git://github.com/reposense/RepoSense.git","ssh_url":"git@github.com:reposense/RepoSense.git","clone_url":"https://github.com/reposense/RepoSense.git","svn_url":"https://github.com/reposense/RepoSense","homepage":"https://reposense.github.io/dashboard-demo/","size":9141,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":51,"license":null,"forks":8,"open_issues":51,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/reposense/RepoSense/pulls/160"},"html":{"href":"https://github.com/reposense/RepoSense/pull/160"},"issue":{"href":"https://api.github.com/repos/reposense/RepoSense/issues/160"},"comments":{"href":"https://api.github.com/repos/reposense/RepoSense/issues/160/comments"},"review_comments":{"href":"https://api.github.com/repos/reposense/RepoSense/pulls/160/comments"},"review_comment":{"href":"https://api.github.com/repos/reposense/RepoSense/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/reposense/RepoSense/pulls/160/commits"},"statuses":{"href":"https://api.github.com/repos/reposense/RepoSense/statuses/2bb6afdd1a1e8ff03d4b3d94a165a5833756cd08"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"codacy-bot"}}