{"action":"created","comment":{"url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/pulls/comments/187776642","pull_request_review_id":119630275,"id":187776642,"diff_hunk":"@@ -23,25 +25,50 @@\n import javax.servlet.http.HttpServlet;\n import javax.servlet.http.HttpServletRequest;\n import javax.servlet.http.HttpServletResponse;\n+import java.util.ArrayList;\n+import java.util.List;\n+\n+import java.util.regex.Matcher;\n+import java.util.regex.Pattern;\n \n-/** Servlet class responsible for the profile page. */\n+/** Servlet class responsible for the profile page.\n+    * Provides methods for accessing and editing about information when user requests the /profile URL.\n+    */\n public class ProfileServlet extends HttpServlet {\n \n \n-/** Store class that gives access to Users. */\n+  /** Store class that gives access to Users. */\n   private UserStore userStore;\n \n+  /** Id of current profile's user */\n+  private UUID profileId;\n+\n+  /** Store class that gives access to Conversations  */\n+  private ConversationStore conversationStore;\n+\n+  /** Store class that gives access to Messages */\n+  private MessageStore messageStore;\n+\n+  /** All the messages for a given ID */\n+  private List <Message> messages;\n+\n+  /** All the conversations */\n+  private List <Conversation> conversations;\n+\n+  /* Only messages that correspond to a given user ID */\n+  private List <Message> realMessages = new ArrayList<>();","path":"src/main/java/codeu/controller/ProfileServlet.java","position":55,"original_position":55,"commit_id":"0bd2e348f6dd1f5ea13db524fbcb72265ffddfb5","original_commit_id":"0bd2e348f6dd1f5ea13db524fbcb72265ffddfb5","user":{"login":"joycezhao2","id":33562369,"avatar_url":"https://avatars3.githubusercontent.com/u/33562369?v=4","gravatar_id":"","url":"https://api.github.com/users/joycezhao2","html_url":"https://github.com/joycezhao2","followers_url":"https://api.github.com/users/joycezhao2/followers","following_url":"https://api.github.com/users/joycezhao2/following{/other_user}","gists_url":"https://api.github.com/users/joycezhao2/gists{/gist_id}","starred_url":"https://api.github.com/users/joycezhao2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joycezhao2/subscriptions","organizations_url":"https://api.github.com/users/joycezhao2/orgs","repos_url":"https://api.github.com/users/joycezhao2/repos","events_url":"https://api.github.com/users/joycezhao2/events{/privacy}","received_events_url":"https://api.github.com/users/joycezhao2/received_events","type":"User","site_admin":false},"body":"I just copied the same style as the other servlet comment examples, but i can change them if it helps more","created_at":"2018-05-12T16:15:16Z","updated_at":"2018-05-12T16:15:16Z","html_url":"https://github.com/codeu-2018-team31/codeu_project_2018/pull/43#discussion_r187776642","pull_request_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/pulls/43","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/pulls/comments/187776642"},"html":{"href":"https://github.com/codeu-2018-team31/codeu_project_2018/pull/43#discussion_r187776642"},"pull_request":{"href":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/pulls/43"}},"in_reply_to_id":187775147},"pull_request":{"url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/pulls/43","id":181667795,"html_url":"https://github.com/codeu-2018-team31/codeu_project_2018/pull/43","diff_url":"https://github.com/codeu-2018-team31/codeu_project_2018/pull/43.diff","patch_url":"https://github.com/codeu-2018-team31/codeu_project_2018/pull/43.patch","issue_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/issues/43","number":43,"state":"open","locked":false,"title":"Add profile to profile servlet","user":{"login":"joycezhao2","id":33562369,"avatar_url":"https://avatars3.githubusercontent.com/u/33562369?v=4","gravatar_id":"","url":"https://api.github.com/users/joycezhao2","html_url":"https://github.com/joycezhao2","followers_url":"https://api.github.com/users/joycezhao2/followers","following_url":"https://api.github.com/users/joycezhao2/following{/other_user}","gists_url":"https://api.github.com/users/joycezhao2/gists{/gist_id}","starred_url":"https://api.github.com/users/joycezhao2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joycezhao2/subscriptions","organizations_url":"https://api.github.com/users/joycezhao2/orgs","repos_url":"https://api.github.com/users/joycezhao2/repos","events_url":"https://api.github.com/users/joycezhao2/events{/privacy}","received_events_url":"https://api.github.com/users/joycezhao2/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-14T21:22:23Z","updated_at":"2018-05-12T16:15:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1680de8f7551e9625b268c83f065c306e4c238db","assignee":null,"assignees":[],"requested_reviewers":[{"login":"willjschmitt","id":6719076,"avatar_url":"https://avatars1.githubusercontent.com/u/6719076?v=4","gravatar_id":"","url":"https://api.github.com/users/willjschmitt","html_url":"https://github.com/willjschmitt","followers_url":"https://api.github.com/users/willjschmitt/followers","following_url":"https://api.github.com/users/willjschmitt/following{/other_user}","gists_url":"https://api.github.com/users/willjschmitt/gists{/gist_id}","starred_url":"https://api.github.com/users/willjschmitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willjschmitt/subscriptions","organizations_url":"https://api.github.com/users/willjschmitt/orgs","repos_url":"https://api.github.com/users/willjschmitt/repos","events_url":"https://api.github.com/users/willjschmitt/events{/privacy}","received_events_url":"https://api.github.com/users/willjschmitt/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/pulls/43/commits","review_comments_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/pulls/43/comments","review_comment_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/issues/43/comments","statuses_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/statuses/0bd2e348f6dd1f5ea13db524fbcb72265ffddfb5","head":{"label":"codeu-2018-team31:add-profile-to-profile-servlet","ref":"add-profile-to-profile-servlet","sha":"0bd2e348f6dd1f5ea13db524fbcb72265ffddfb5","user":{"login":"codeu-2018-team31","id":36962431,"avatar_url":"https://avatars3.githubusercontent.com/u/36962431?v=4","gravatar_id":"","url":"https://api.github.com/users/codeu-2018-team31","html_url":"https://github.com/codeu-2018-team31","followers_url":"https://api.github.com/users/codeu-2018-team31/followers","following_url":"https://api.github.com/users/codeu-2018-team31/following{/other_user}","gists_url":"https://api.github.com/users/codeu-2018-team31/gists{/gist_id}","starred_url":"https://api.github.com/users/codeu-2018-team31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeu-2018-team31/subscriptions","organizations_url":"https://api.github.com/users/codeu-2018-team31/orgs","repos_url":"https://api.github.com/users/codeu-2018-team31/repos","events_url":"https://api.github.com/users/codeu-2018-team31/events{/privacy}","received_events_url":"https://api.github.com/users/codeu-2018-team31/received_events","type":"Organization","site_admin":false},"repo":{"id":123454413,"name":"codeu_project_2018","full_name":"codeu-2018-team31/codeu_project_2018","owner":{"login":"codeu-2018-team31","id":36962431,"avatar_url":"https://avatars3.githubusercontent.com/u/36962431?v=4","gravatar_id":"","url":"https://api.github.com/users/codeu-2018-team31","html_url":"https://github.com/codeu-2018-team31","followers_url":"https://api.github.com/users/codeu-2018-team31/followers","following_url":"https://api.github.com/users/codeu-2018-team31/following{/other_user}","gists_url":"https://api.github.com/users/codeu-2018-team31/gists{/gist_id}","starred_url":"https://api.github.com/users/codeu-2018-team31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeu-2018-team31/subscriptions","organizations_url":"https://api.github.com/users/codeu-2018-team31/orgs","repos_url":"https://api.github.com/users/codeu-2018-team31/repos","events_url":"https://api.github.com/users/codeu-2018-team31/events{/privacy}","received_events_url":"https://api.github.com/users/codeu-2018-team31/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeu-2018-team31/codeu_project_2018","description":null,"fork":false,"url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018","forks_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/forks","keys_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/teams","hooks_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/hooks","issue_events_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/issues/events{/number}","events_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/events","assignees_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/assignees{/user}","branches_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/branches{/branch}","tags_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/tags","blobs_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/statuses/{sha}","languages_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/languages","stargazers_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/stargazers","contributors_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/contributors","subscribers_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/subscribers","subscription_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/subscription","commits_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/contents/{+path}","compare_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/merges","archive_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/downloads","issues_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/issues{/number}","pulls_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/pulls{/number}","milestones_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/milestones{/number}","notifications_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/labels{/name}","releases_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/releases{/id}","deployments_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/deployments","created_at":"2018-03-01T15:33:53Z","updated_at":"2018-05-03T18:47:41Z","pushed_at":"2018-05-11T21:48:20Z","git_url":"git://github.com/codeu-2018-team31/codeu_project_2018.git","ssh_url":"git@github.com:codeu-2018-team31/codeu_project_2018.git","clone_url":"https://github.com/codeu-2018-team31/codeu_project_2018.git","svn_url":"https://github.com/codeu-2018-team31/codeu_project_2018","homepage":null,"size":244,"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":1,"mirror_url":null,"archived":false,"open_issues_count":20,"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":1,"open_issues":20,"watchers":0,"default_branch":"master"}},"base":{"label":"codeu-2018-team31:servlet","ref":"servlet","sha":"58606b1d48795b68ba2626ce35af8cdac6a2ae4c","user":{"login":"codeu-2018-team31","id":36962431,"avatar_url":"https://avatars3.githubusercontent.com/u/36962431?v=4","gravatar_id":"","url":"https://api.github.com/users/codeu-2018-team31","html_url":"https://github.com/codeu-2018-team31","followers_url":"https://api.github.com/users/codeu-2018-team31/followers","following_url":"https://api.github.com/users/codeu-2018-team31/following{/other_user}","gists_url":"https://api.github.com/users/codeu-2018-team31/gists{/gist_id}","starred_url":"https://api.github.com/users/codeu-2018-team31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeu-2018-team31/subscriptions","organizations_url":"https://api.github.com/users/codeu-2018-team31/orgs","repos_url":"https://api.github.com/users/codeu-2018-team31/repos","events_url":"https://api.github.com/users/codeu-2018-team31/events{/privacy}","received_events_url":"https://api.github.com/users/codeu-2018-team31/received_events","type":"Organization","site_admin":false},"repo":{"id":123454413,"name":"codeu_project_2018","full_name":"codeu-2018-team31/codeu_project_2018","owner":{"login":"codeu-2018-team31","id":36962431,"avatar_url":"https://avatars3.githubusercontent.com/u/36962431?v=4","gravatar_id":"","url":"https://api.github.com/users/codeu-2018-team31","html_url":"https://github.com/codeu-2018-team31","followers_url":"https://api.github.com/users/codeu-2018-team31/followers","following_url":"https://api.github.com/users/codeu-2018-team31/following{/other_user}","gists_url":"https://api.github.com/users/codeu-2018-team31/gists{/gist_id}","starred_url":"https://api.github.com/users/codeu-2018-team31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeu-2018-team31/subscriptions","organizations_url":"https://api.github.com/users/codeu-2018-team31/orgs","repos_url":"https://api.github.com/users/codeu-2018-team31/repos","events_url":"https://api.github.com/users/codeu-2018-team31/events{/privacy}","received_events_url":"https://api.github.com/users/codeu-2018-team31/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeu-2018-team31/codeu_project_2018","description":null,"fork":false,"url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018","forks_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/forks","keys_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/teams","hooks_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/hooks","issue_events_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/issues/events{/number}","events_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/events","assignees_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/assignees{/user}","branches_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/branches{/branch}","tags_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/tags","blobs_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/statuses/{sha}","languages_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/languages","stargazers_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/stargazers","contributors_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/contributors","subscribers_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/subscribers","subscription_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/subscription","commits_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/contents/{+path}","compare_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/merges","archive_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/downloads","issues_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/issues{/number}","pulls_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/pulls{/number}","milestones_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/milestones{/number}","notifications_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/labels{/name}","releases_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/releases{/id}","deployments_url":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/deployments","created_at":"2018-03-01T15:33:53Z","updated_at":"2018-05-03T18:47:41Z","pushed_at":"2018-05-11T21:48:20Z","git_url":"git://github.com/codeu-2018-team31/codeu_project_2018.git","ssh_url":"git@github.com:codeu-2018-team31/codeu_project_2018.git","clone_url":"https://github.com/codeu-2018-team31/codeu_project_2018.git","svn_url":"https://github.com/codeu-2018-team31/codeu_project_2018","homepage":null,"size":244,"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":1,"mirror_url":null,"archived":false,"open_issues_count":20,"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":1,"open_issues":20,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/pulls/43"},"html":{"href":"https://github.com/codeu-2018-team31/codeu_project_2018/pull/43"},"issue":{"href":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/issues/43"},"comments":{"href":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/codeu-2018-team31/codeu_project_2018/statuses/0bd2e348f6dd1f5ea13db524fbcb72265ffddfb5"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"joycezhao2"}}