{"action":"created","comment":{"url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/pulls/comments/228776110","pull_request_review_id":169120713,"id":228776110,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyODc3NjExMA==","diff_hunk":"@@ -0,0 +1,166 @@\n+package org.cs4239.team1.protectPMLeefrontendserver.service;\n+\n+import org.cs4239.team1.protectPMLeefrontendserver.exception.BadRequestException;\n+import org.cs4239.team1.protectPMLeefrontendserver.exception.ResourceNotFoundException;\n+import org.cs4239.team1.protectPMLeefrontendserver.model.Note;\n+import org.cs4239.team1.protectPMLeefrontendserver.model.Role;\n+import org.cs4239.team1.protectPMLeefrontendserver.model.TreatmentId;\n+import org.cs4239.team1.protectPMLeefrontendserver.model.User;\n+import org.cs4239.team1.protectPMLeefrontendserver.payload.NotePermissionRequest;\n+import org.cs4239.team1.protectPMLeefrontendserver.payload.NoteRequest;\n+import org.cs4239.team1.protectPMLeefrontendserver.payload.NoteResponse;\n+import org.cs4239.team1.protectPMLeefrontendserver.payload.PagedResponse;\n+import org.cs4239.team1.protectPMLeefrontendserver.repository.NoteRepository;\n+import org.cs4239.team1.protectPMLeefrontendserver.repository.TreatmentRepository;\n+import org.cs4239.team1.protectPMLeefrontendserver.repository.UserRepository;\n+import org.cs4239.team1.protectPMLeefrontendserver.util.AppConstants;\n+import org.cs4239.team1.protectPMLeefrontendserver.util.ModelMapper;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.data.domain.Page;\n+import org.springframework.data.domain.PageRequest;\n+import org.springframework.data.domain.Pageable;\n+import org.springframework.data.domain.Sort;\n+import org.springframework.security.access.prepost.PreAuthorize;\n+import org.springframework.stereotype.Service;\n+\n+import java.util.Collections;\n+import java.util.List;\n+\n+@Service\n+public class NoteService {\n+\n+    @Autowired\n+    private UserRepository userRepository;\n+\n+    @Autowired\n+    private TreatmentRepository treatmentRepository;\n+\n+    @Autowired\n+    private NoteRepository noteRepository;\n+\n+    private static final Logger logger = LoggerFactory.getLogger(NoteService.class);\n+\n+    @PreAuthorize(\"hasRole('THERAPIST') or hasRole('PATIENT')\")\n+    public Note createNote(NoteRequest noteRequest, User creator) {\n+\n+        boolean isVisibleToPatient;\n+        boolean isVisibleToTherapist;\n+\n+        User patient = userRepository.findByNric(noteRequest.getPatientNric())\n+                .orElseThrow(() -> new ResourceNotFoundException(\"User\", \"nric\", noteRequest.getPatientNric()));\n+        if (!patient.getRoles().contains(Role.ROLE_PATIENT)){\n+            throw new BadRequestException(\"User_\" + patient.getNric() + \" is not a patient!\");\n+        }\n+\n+        // Creator is the patient\n+        if (creator.getNric().equals(noteRequest.getPatientNric())){\n+            isVisibleToPatient = true;\n+            isVisibleToTherapist = false;\n+        }\n+        // Treatment pair exist\n+        else if(treatmentRepository.findByTreatmentId(new TreatmentId(creator.getNric(), patient.getNric())) != null){\n+            isVisibleToPatient = false;\n+            isVisibleToTherapist = true;\n+        }\n+        else{\n+            throw new AssertionError(\"Should not happen.\");\n+        }\n+\n+        return noteRepository.save(new Note(creator, patient, noteRequest.getNoteContent(), isVisibleToPatient, isVisibleToTherapist));\n+    }\n+\n+    @PreAuthorize(\"hasRole('THERAPIST')\")\n+    public Note setNotePermission(NotePermissionRequest notePermissionRequest, User user) {\n+\n+        boolean isVisibleToPatient;","path":"backend-server/src/main/java/org/cs4239/team1/protectPMLeefrontendserver/service/NoteService.java","position":77,"original_position":77,"commit_id":"ae7063cef80836b4af0974de80c60ce644ab09b9","original_commit_id":"ae7063cef80836b4af0974de80c60ce644ab09b9","user":{"login":"Zhiyuan-Amos","id":19281514,"node_id":"MDQ6VXNlcjE5MjgxNTE0","avatar_url":"https://avatars3.githubusercontent.com/u/19281514?v=4","gravatar_id":"","url":"https://api.github.com/users/Zhiyuan-Amos","html_url":"https://github.com/Zhiyuan-Amos","followers_url":"https://api.github.com/users/Zhiyuan-Amos/followers","following_url":"https://api.github.com/users/Zhiyuan-Amos/following{/other_user}","gists_url":"https://api.github.com/users/Zhiyuan-Amos/gists{/gist_id}","starred_url":"https://api.github.com/users/Zhiyuan-Amos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zhiyuan-Amos/subscriptions","organizations_url":"https://api.github.com/users/Zhiyuan-Amos/orgs","repos_url":"https://api.github.com/users/Zhiyuan-Amos/repos","events_url":"https://api.github.com/users/Zhiyuan-Amos/events{/privacy}","received_events_url":"https://api.github.com/users/Zhiyuan-Amos/received_events","type":"User","site_admin":false},"body":"unused variable","created_at":"2018-10-29T01:06:54Z","updated_at":"2018-10-29T01:19:15Z","html_url":"https://github.com/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/pull/123#discussion_r228776110","pull_request_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/pulls/123","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/pulls/comments/228776110"},"html":{"href":"https://github.com/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/pull/123#discussion_r228776110"},"pull_request":{"href":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/pulls/123"}}},"pull_request":{"url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/pulls/123","id":226283642,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2MjgzNjQy","html_url":"https://github.com/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/pull/123","diff_url":"https://github.com/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/pull/123.diff","patch_url":"https://github.com/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/pull/123.patch","issue_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/issues/123","number":123,"state":"open","locked":false,"title":"Notes","user":{"login":"chk1994","id":19282606,"node_id":"MDQ6VXNlcjE5MjgyNjA2","avatar_url":"https://avatars0.githubusercontent.com/u/19282606?v=4","gravatar_id":"","url":"https://api.github.com/users/chk1994","html_url":"https://github.com/chk1994","followers_url":"https://api.github.com/users/chk1994/followers","following_url":"https://api.github.com/users/chk1994/following{/other_user}","gists_url":"https://api.github.com/users/chk1994/gists{/gist_id}","starred_url":"https://api.github.com/users/chk1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chk1994/subscriptions","organizations_url":"https://api.github.com/users/chk1994/orgs","repos_url":"https://api.github.com/users/chk1994/repos","events_url":"https://api.github.com/users/chk1994/events{/privacy}","received_events_url":"https://api.github.com/users/chk1994/received_events","type":"User","site_admin":false},"body":"Notes model for patient and therapist\r\n- Patient have one to many relation with Notes\r\n- notes can be created by both patient and therapist\r\n1. Patient's notes\r\n- patient can create/view their own notes\r\n- therapist cannot view a patient's notes (rationale: No such requirement on pdf/ less privileges)\r\n- Patient can get a list of all his own notes\r\n2. Therapist notes\r\n- therapist can only create/view therapist notes of a patient if the pair belong to a valid ongoing treatment\r\n- therapist can view all therapist notes of a patient (including those created by other therapists) (rationale: for example a patient comes in unconscious, other therapist's notes(eg. past operations/allergies/prescibed drug interactions) may influence the kind of treatment performed on this patient)\r\n- therapist notes are nonviewable by the patient by default\r\n- therapist can allow/disallow the patient to view the therapist note by noteID\r\n- Therapist cannot get a list of his own notes yet.(Cause need check both ownership and valid treatment period for each of the therapist's patient. Couldnt get it right.)\r\n\r\n\r\n","created_at":"2018-10-27T10:02:12Z","updated_at":"2018-10-29T01:19:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b07d153d193011a147730dd3778d9ae8c8199550","assignee":null,"assignees":[],"requested_reviewers":[{"login":"Ley94","id":25318216,"node_id":"MDQ6VXNlcjI1MzE4MjE2","avatar_url":"https://avatars0.githubusercontent.com/u/25318216?v=4","gravatar_id":"","url":"https://api.github.com/users/Ley94","html_url":"https://github.com/Ley94","followers_url":"https://api.github.com/users/Ley94/followers","following_url":"https://api.github.com/users/Ley94/following{/other_user}","gists_url":"https://api.github.com/users/Ley94/gists{/gist_id}","starred_url":"https://api.github.com/users/Ley94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ley94/subscriptions","organizations_url":"https://api.github.com/users/Ley94/orgs","repos_url":"https://api.github.com/users/Ley94/repos","events_url":"https://api.github.com/users/Ley94/events{/privacy}","received_events_url":"https://api.github.com/users/Ley94/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/pulls/123/commits","review_comments_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/pulls/123/comments","review_comment_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/issues/123/comments","statuses_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/statuses/ae7063cef80836b4af0974de80c60ce644ab09b9","head":{"label":"IFS4205-2018-Sem1-Team1:Notes","ref":"Notes","sha":"ae7063cef80836b4af0974de80c60ce644ab09b9","user":{"login":"IFS4205-2018-Sem1-Team1","id":42331766,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyMzMxNzY2","avatar_url":"https://avatars1.githubusercontent.com/u/42331766?v=4","gravatar_id":"","url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1","html_url":"https://github.com/IFS4205-2018-Sem1-Team1","followers_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/followers","following_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/following{/other_user}","gists_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/gists{/gist_id}","starred_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/subscriptions","organizations_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/orgs","repos_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/repos","events_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/events{/privacy}","received_events_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/received_events","type":"Organization","site_admin":false},"repo":{"id":144528316,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQ1MjgzMTY=","name":"protect-PM-Lee-frontend","full_name":"IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend","private":false,"owner":{"login":"IFS4205-2018-Sem1-Team1","id":42331766,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyMzMxNzY2","avatar_url":"https://avatars1.githubusercontent.com/u/42331766?v=4","gravatar_id":"","url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1","html_url":"https://github.com/IFS4205-2018-Sem1-Team1","followers_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/followers","following_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/following{/other_user}","gists_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/gists{/gist_id}","starred_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/subscriptions","organizations_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/orgs","repos_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/repos","events_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/events{/privacy}","received_events_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend","description":"Learning to be good Info-Sec students to protect PM Lee's data","fork":false,"url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend","forks_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/forks","keys_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/teams","hooks_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/hooks","issue_events_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/events","assignees_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/tags","blobs_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/languages","stargazers_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/stargazers","contributors_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/contributors","subscribers_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/subscribers","subscription_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/subscription","commits_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/merges","archive_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/downloads","issues_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/labels{/name}","releases_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/deployments","created_at":"2018-08-13T04:10:42Z","updated_at":"2018-10-28T08:57:28Z","pushed_at":"2018-10-28T16:28:44Z","git_url":"git://github.com/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend.git","ssh_url":"git@github.com:IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend.git","clone_url":"https://github.com/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend.git","svn_url":"https://github.com/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend","homepage":null,"size":35709,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","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":15,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":15,"watchers":1,"default_branch":"master"}},"base":{"label":"IFS4205-2018-Sem1-Team1:master","ref":"master","sha":"04f4828ef33660a135957ba7997ce7721e355443","user":{"login":"IFS4205-2018-Sem1-Team1","id":42331766,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyMzMxNzY2","avatar_url":"https://avatars1.githubusercontent.com/u/42331766?v=4","gravatar_id":"","url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1","html_url":"https://github.com/IFS4205-2018-Sem1-Team1","followers_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/followers","following_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/following{/other_user}","gists_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/gists{/gist_id}","starred_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/subscriptions","organizations_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/orgs","repos_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/repos","events_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/events{/privacy}","received_events_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/received_events","type":"Organization","site_admin":false},"repo":{"id":144528316,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQ1MjgzMTY=","name":"protect-PM-Lee-frontend","full_name":"IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend","private":false,"owner":{"login":"IFS4205-2018-Sem1-Team1","id":42331766,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyMzMxNzY2","avatar_url":"https://avatars1.githubusercontent.com/u/42331766?v=4","gravatar_id":"","url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1","html_url":"https://github.com/IFS4205-2018-Sem1-Team1","followers_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/followers","following_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/following{/other_user}","gists_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/gists{/gist_id}","starred_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/subscriptions","organizations_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/orgs","repos_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/repos","events_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/events{/privacy}","received_events_url":"https://api.github.com/users/IFS4205-2018-Sem1-Team1/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend","description":"Learning to be good Info-Sec students to protect PM Lee's data","fork":false,"url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend","forks_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/forks","keys_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/teams","hooks_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/hooks","issue_events_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/events","assignees_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/tags","blobs_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/languages","stargazers_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/stargazers","contributors_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/contributors","subscribers_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/subscribers","subscription_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/subscription","commits_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/merges","archive_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/downloads","issues_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/labels{/name}","releases_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/deployments","created_at":"2018-08-13T04:10:42Z","updated_at":"2018-10-28T08:57:28Z","pushed_at":"2018-10-28T16:28:44Z","git_url":"git://github.com/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend.git","ssh_url":"git@github.com:IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend.git","clone_url":"https://github.com/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend.git","svn_url":"https://github.com/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend","homepage":null,"size":35709,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","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":15,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":15,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/pulls/123"},"html":{"href":"https://github.com/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/pull/123"},"issue":{"href":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/issues/123"},"comments":{"href":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/issues/123/comments"},"review_comments":{"href":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/pulls/123/comments"},"review_comment":{"href":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/pulls/123/commits"},"statuses":{"href":"https://api.github.com/repos/IFS4205-2018-Sem1-Team1/protect-PM-Lee-frontend/statuses/ae7063cef80836b4af0974de80c60ce644ab09b9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Zhiyuan-Amos"}}