{"action":"created","comment":{"url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/comments/75586143","id":75586143,"diff_hunk":"@@ -354,16 +354,69 @@ function sessionsByRooms(id, sessions, trackInfo) {\n  return sessionInRooms;\n }\n \n-function foldByRooms(roomsData, sessions, trackInfo) {\n-  var roomInfo = [];\n+function foldByRooms(room, sessions, trackInfo) {\n+   const roomData = new Map();\n+  const trackDetails = new Object();\n+  const microlocationArray = [];\n+  trackInfo.forEach((track) => {\n+    trackDetails[track.id] = track.color;\n+  });\n+\n+  sessions.forEach((session) => {\n+    if (!session.start_time) {\n+      return;\n+    }\n+\n+    // generate slug/key for session\n+    const date = moment(session.start_time).format('YYYY-MM-DD');\n+    const roomName = (session.microlocation == null) ? 'defroom' : session.microlocation.name;\n+    const slug = date ;\n+    let room = null;\n+\n+    // set up room if it does not exist\n+    if (!roomData.has(slug) && (session.microlocation != null)) {\n+      room = {\n+        color: returnTrackColor(trackDetails, (session.track == null) ? null : session.track.id),\n+        date: moment(session.start_time).format('dddd, Do MMM'),\n+        slug: slug,\n+        sessions: []\n+      };\n+      roomData.set(slug,room);\n+    } else {\n+      room = roomData.get(slug);\n+    }\n \n-  roomsData.forEach((room) => {\n-    roomInfo.push({\n-      hall: room.name,\n-      sessionDetail: sessionsByRooms(room.id, sessions,trackInfo)\n+    if (room == undefined) {\n+      return;\n+    }\n+     const slug2 = date + '-' + session.microlocation.name ;\n+    if(microlocationArray.indexOf(slug2) == -1 ) {\n+      microlocationArray.push(slug2);\n+      var venue = session.microlocation.name;\n+    }\n+    else {\n+      venue = \"\";\n+    }\n+    console.log(venue);","path":"src/backend/fold.js","position":53,"original_position":53,"commit_id":"d32ff0caf89021526e337ddb9e7af5ca8eba3909","original_commit_id":"d32ff0caf89021526e337ddb9e7af5ca8eba3909","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Unexpected console statement                 no-console","created_at":"2016-08-20T23:04:53Z","updated_at":"2016-08-20T23:04:53Z","html_url":"https://github.com/fossasia/open-event-webapp/pull/664#discussion_r75586143","pull_request_url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/664","_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/comments/75586143"},"html":{"href":"https://github.com/fossasia/open-event-webapp/pull/664#discussion_r75586143"},"pull_request":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/664"}}},"pull_request":{"url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/664","id":82083143,"html_url":"https://github.com/fossasia/open-event-webapp/pull/664","diff_url":"https://github.com/fossasia/open-event-webapp/pull/664.diff","patch_url":"https://github.com/fossasia/open-event-webapp/pull/664.patch","issue_url":"https://api.github.com/repos/fossasia/open-event-webapp/issues/664","number":664,"state":"open","locked":false,"title":"Room Page Redesign [ Do not Merge ]","user":{"login":"aayusharora","id":12194719,"avatar_url":"https://avatars.githubusercontent.com/u/12194719?v=3","gravatar_id":"","url":"https://api.github.com/users/aayusharora","html_url":"https://github.com/aayusharora","followers_url":"https://api.github.com/users/aayusharora/followers","following_url":"https://api.github.com/users/aayusharora/following{/other_user}","gists_url":"https://api.github.com/users/aayusharora/gists{/gist_id}","starred_url":"https://api.github.com/users/aayusharora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aayusharora/subscriptions","organizations_url":"https://api.github.com/users/aayusharora/orgs","repos_url":"https://api.github.com/users/aayusharora/repos","events_url":"https://api.github.com/users/aayusharora/events{/privacy}","received_events_url":"https://api.github.com/users/aayusharora/received_events","type":"User","site_admin":false},"body":"Update description soon.........","created_at":"2016-08-20T16:38:38Z","updated_at":"2016-08-20T23:04:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f760ef700f54edaa7d0cee49524508f675b3a50a","assignee":{"login":"aayusharora","id":12194719,"avatar_url":"https://avatars.githubusercontent.com/u/12194719?v=3","gravatar_id":"","url":"https://api.github.com/users/aayusharora","html_url":"https://github.com/aayusharora","followers_url":"https://api.github.com/users/aayusharora/followers","following_url":"https://api.github.com/users/aayusharora/following{/other_user}","gists_url":"https://api.github.com/users/aayusharora/gists{/gist_id}","starred_url":"https://api.github.com/users/aayusharora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aayusharora/subscriptions","organizations_url":"https://api.github.com/users/aayusharora/orgs","repos_url":"https://api.github.com/users/aayusharora/repos","events_url":"https://api.github.com/users/aayusharora/events{/privacy}","received_events_url":"https://api.github.com/users/aayusharora/received_events","type":"User","site_admin":false},"assignees":[{"login":"aayusharora","id":12194719,"avatar_url":"https://avatars.githubusercontent.com/u/12194719?v=3","gravatar_id":"","url":"https://api.github.com/users/aayusharora","html_url":"https://github.com/aayusharora","followers_url":"https://api.github.com/users/aayusharora/followers","following_url":"https://api.github.com/users/aayusharora/following{/other_user}","gists_url":"https://api.github.com/users/aayusharora/gists{/gist_id}","starred_url":"https://api.github.com/users/aayusharora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aayusharora/subscriptions","organizations_url":"https://api.github.com/users/aayusharora/orgs","repos_url":"https://api.github.com/users/aayusharora/repos","events_url":"https://api.github.com/users/aayusharora/events{/privacy}","received_events_url":"https://api.github.com/users/aayusharora/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/fossasia/open-event-webapp/milestones/20","html_url":"https://github.com/fossasia/open-event-webapp/milestones/GSOC%202016:%20Milestone%2014%20(FINISH)","labels_url":"https://api.github.com/repos/fossasia/open-event-webapp/milestones/20/labels","id":1762483,"number":20,"title":"GSOC 2016: Milestone 14 (FINISH)","description":"GSOC 2016 Milestone 14 - All issues to be completed by 21st August 2016.\r\n\r\nInstructions: \r\n1. Create issues to work on.\r\n2. Assign the issue to the milestone.\r\n3. Assign the issue to a user.\r\n\r\nCompleted Milestone:\r\n1. Create a blog post describing what has been done.\r\n2. Tag a release.\r\n3. Deploy on a server.","creator":{"login":"juslee","id":1696598,"avatar_url":"https://avatars.githubusercontent.com/u/1696598?v=3","gravatar_id":"","url":"https://api.github.com/users/juslee","html_url":"https://github.com/juslee","followers_url":"https://api.github.com/users/juslee/followers","following_url":"https://api.github.com/users/juslee/following{/other_user}","gists_url":"https://api.github.com/users/juslee/gists{/gist_id}","starred_url":"https://api.github.com/users/juslee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juslee/subscriptions","organizations_url":"https://api.github.com/users/juslee/orgs","repos_url":"https://api.github.com/users/juslee/repos","events_url":"https://api.github.com/users/juslee/events{/privacy}","received_events_url":"https://api.github.com/users/juslee/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":22,"state":"open","created_at":"2016-05-12T14:10:31Z","updated_at":"2016-08-20T16:38:38Z","due_on":"2016-08-20T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/664/commits","review_comments_url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/664/comments","review_comment_url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fossasia/open-event-webapp/issues/664/comments","statuses_url":"https://api.github.com/repos/fossasia/open-event-webapp/statuses/d32ff0caf89021526e337ddb9e7af5ca8eba3909","head":{"label":"aayusharora:Venue","ref":"Venue","sha":"d32ff0caf89021526e337ddb9e7af5ca8eba3909","user":{"login":"aayusharora","id":12194719,"avatar_url":"https://avatars.githubusercontent.com/u/12194719?v=3","gravatar_id":"","url":"https://api.github.com/users/aayusharora","html_url":"https://github.com/aayusharora","followers_url":"https://api.github.com/users/aayusharora/followers","following_url":"https://api.github.com/users/aayusharora/following{/other_user}","gists_url":"https://api.github.com/users/aayusharora/gists{/gist_id}","starred_url":"https://api.github.com/users/aayusharora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aayusharora/subscriptions","organizations_url":"https://api.github.com/users/aayusharora/orgs","repos_url":"https://api.github.com/users/aayusharora/repos","events_url":"https://api.github.com/users/aayusharora/events{/privacy}","received_events_url":"https://api.github.com/users/aayusharora/received_events","type":"User","site_admin":false},"repo":{"id":60962627,"name":"open-event-webapp","full_name":"aayusharora/open-event-webapp","owner":{"login":"aayusharora","id":12194719,"avatar_url":"https://avatars.githubusercontent.com/u/12194719?v=3","gravatar_id":"","url":"https://api.github.com/users/aayusharora","html_url":"https://github.com/aayusharora","followers_url":"https://api.github.com/users/aayusharora/followers","following_url":"https://api.github.com/users/aayusharora/following{/other_user}","gists_url":"https://api.github.com/users/aayusharora/gists{/gist_id}","starred_url":"https://api.github.com/users/aayusharora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aayusharora/subscriptions","organizations_url":"https://api.github.com/users/aayusharora/orgs","repos_url":"https://api.github.com/users/aayusharora/repos","events_url":"https://api.github.com/users/aayusharora/events{/privacy}","received_events_url":"https://api.github.com/users/aayusharora/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aayusharora/open-event-webapp","description":"Open Event Webapp","fork":true,"url":"https://api.github.com/repos/aayusharora/open-event-webapp","forks_url":"https://api.github.com/repos/aayusharora/open-event-webapp/forks","keys_url":"https://api.github.com/repos/aayusharora/open-event-webapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aayusharora/open-event-webapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aayusharora/open-event-webapp/teams","hooks_url":"https://api.github.com/repos/aayusharora/open-event-webapp/hooks","issue_events_url":"https://api.github.com/repos/aayusharora/open-event-webapp/issues/events{/number}","events_url":"https://api.github.com/repos/aayusharora/open-event-webapp/events","assignees_url":"https://api.github.com/repos/aayusharora/open-event-webapp/assignees{/user}","branches_url":"https://api.github.com/repos/aayusharora/open-event-webapp/branches{/branch}","tags_url":"https://api.github.com/repos/aayusharora/open-event-webapp/tags","blobs_url":"https://api.github.com/repos/aayusharora/open-event-webapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aayusharora/open-event-webapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aayusharora/open-event-webapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/aayusharora/open-event-webapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aayusharora/open-event-webapp/statuses/{sha}","languages_url":"https://api.github.com/repos/aayusharora/open-event-webapp/languages","stargazers_url":"https://api.github.com/repos/aayusharora/open-event-webapp/stargazers","contributors_url":"https://api.github.com/repos/aayusharora/open-event-webapp/contributors","subscribers_url":"https://api.github.com/repos/aayusharora/open-event-webapp/subscribers","subscription_url":"https://api.github.com/repos/aayusharora/open-event-webapp/subscription","commits_url":"https://api.github.com/repos/aayusharora/open-event-webapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/aayusharora/open-event-webapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/aayusharora/open-event-webapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/aayusharora/open-event-webapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/aayusharora/open-event-webapp/contents/{+path}","compare_url":"https://api.github.com/repos/aayusharora/open-event-webapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aayusharora/open-event-webapp/merges","archive_url":"https://api.github.com/repos/aayusharora/open-event-webapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aayusharora/open-event-webapp/downloads","issues_url":"https://api.github.com/repos/aayusharora/open-event-webapp/issues{/number}","pulls_url":"https://api.github.com/repos/aayusharora/open-event-webapp/pulls{/number}","milestones_url":"https://api.github.com/repos/aayusharora/open-event-webapp/milestones{/number}","notifications_url":"https://api.github.com/repos/aayusharora/open-event-webapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aayusharora/open-event-webapp/labels{/name}","releases_url":"https://api.github.com/repos/aayusharora/open-event-webapp/releases{/id}","deployments_url":"https://api.github.com/repos/aayusharora/open-event-webapp/deployments","created_at":"2016-06-12T11:02:40Z","updated_at":"2016-07-22T20:08:22Z","pushed_at":"2016-08-20T23:04:43Z","git_url":"git://github.com/aayusharora/open-event-webapp.git","ssh_url":"git@github.com:aayusharora/open-event-webapp.git","clone_url":"https://github.com/aayusharora/open-event-webapp.git","svn_url":"https://github.com/aayusharora/open-event-webapp","homepage":null,"size":367202,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fossasia:development","ref":"development","sha":"c83550eb4e77bf7575b892984d236b05c67f92c0","user":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"repo":{"id":35269905,"name":"open-event-webapp","full_name":"fossasia/open-event-webapp","owner":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fossasia/open-event-webapp","description":"Open Event Web App Generator","fork":false,"url":"https://api.github.com/repos/fossasia/open-event-webapp","forks_url":"https://api.github.com/repos/fossasia/open-event-webapp/forks","keys_url":"https://api.github.com/repos/fossasia/open-event-webapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fossasia/open-event-webapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fossasia/open-event-webapp/teams","hooks_url":"https://api.github.com/repos/fossasia/open-event-webapp/hooks","issue_events_url":"https://api.github.com/repos/fossasia/open-event-webapp/issues/events{/number}","events_url":"https://api.github.com/repos/fossasia/open-event-webapp/events","assignees_url":"https://api.github.com/repos/fossasia/open-event-webapp/assignees{/user}","branches_url":"https://api.github.com/repos/fossasia/open-event-webapp/branches{/branch}","tags_url":"https://api.github.com/repos/fossasia/open-event-webapp/tags","blobs_url":"https://api.github.com/repos/fossasia/open-event-webapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fossasia/open-event-webapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fossasia/open-event-webapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/fossasia/open-event-webapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fossasia/open-event-webapp/statuses/{sha}","languages_url":"https://api.github.com/repos/fossasia/open-event-webapp/languages","stargazers_url":"https://api.github.com/repos/fossasia/open-event-webapp/stargazers","contributors_url":"https://api.github.com/repos/fossasia/open-event-webapp/contributors","subscribers_url":"https://api.github.com/repos/fossasia/open-event-webapp/subscribers","subscription_url":"https://api.github.com/repos/fossasia/open-event-webapp/subscription","commits_url":"https://api.github.com/repos/fossasia/open-event-webapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/fossasia/open-event-webapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/fossasia/open-event-webapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/fossasia/open-event-webapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/fossasia/open-event-webapp/contents/{+path}","compare_url":"https://api.github.com/repos/fossasia/open-event-webapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fossasia/open-event-webapp/merges","archive_url":"https://api.github.com/repos/fossasia/open-event-webapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fossasia/open-event-webapp/downloads","issues_url":"https://api.github.com/repos/fossasia/open-event-webapp/issues{/number}","pulls_url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls{/number}","milestones_url":"https://api.github.com/repos/fossasia/open-event-webapp/milestones{/number}","notifications_url":"https://api.github.com/repos/fossasia/open-event-webapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fossasia/open-event-webapp/labels{/name}","releases_url":"https://api.github.com/repos/fossasia/open-event-webapp/releases{/id}","deployments_url":"https://api.github.com/repos/fossasia/open-event-webapp/deployments","created_at":"2015-05-08T09:11:00Z","updated_at":"2016-08-19T20:15:38Z","pushed_at":"2016-08-20T23:04:44Z","git_url":"git://github.com/fossasia/open-event-webapp.git","ssh_url":"git@github.com:fossasia/open-event-webapp.git","clone_url":"https://github.com/fossasia/open-event-webapp.git","svn_url":"https://github.com/fossasia/open-event-webapp","homepage":"http://opev-webgen-dev.herokuapp.com","size":369745,"stargazers_count":20,"watchers_count":20,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":74,"mirror_url":null,"open_issues_count":19,"forks":74,"open_issues":19,"watchers":20,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/664"},"html":{"href":"https://github.com/fossasia/open-event-webapp/pull/664"},"issue":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/issues/664"},"comments":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/issues/664/comments"},"review_comments":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/664/comments"},"review_comment":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/664/commits"},"statuses":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/statuses/d32ff0caf89021526e337ddb9e7af5ca8eba3909"}}}}
{"actor":{"display_login":"houndci-bot"}}