{"action":"created","comment":{"url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/pulls/comments/222225557","pull_request_review_id":161058367,"id":222225557,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMjIyNTU1Nw==","diff_hunk":"@@ -18,7 +20,16 @@\n     @Override\n     public CommandResult execute(Model model, CommandHistory history) {\n         requireNonNull(model);\n-        model.updateFilteredPersonList(PREDICATE_SHOW_ALL_MEDICINES);\n-        return new CommandResult(MESSAGE_SUCCESS);\n+        model.updateFilteredMedicineList(PREDICATE_SHOW_ALL_MEDICINES);\n+\n+        // Temporary to print out to console. Should replace this with GUI in the future!!!\n+        ObservableList<Medicine> medicineObservableList = model.getFilteredMedicineList();\n+        StringBuilder medicineListStringBuilder = new StringBuilder();\n+        medicineObservableList.forEach((medicine) -> {\n+            medicineListStringBuilder.append(medicine.toString());\n+            medicineListStringBuilder.append(\"\\n\");","path":"src/main/java/seedu/address/logic/commands/ListStockCommand.java","position":24,"original_position":24,"commit_id":"83fa5aeb51a92ef62286627cca3d65629aef6579","original_commit_id":"83fa5aeb51a92ef62286627cca3d65629aef6579","user":{"login":"ChesterSng","id":39242483,"node_id":"MDQ6VXNlcjM5MjQyNDgz","avatar_url":"https://avatars3.githubusercontent.com/u/39242483?v=4","gravatar_id":"","url":"https://api.github.com/users/ChesterSng","html_url":"https://github.com/ChesterSng","followers_url":"https://api.github.com/users/ChesterSng/followers","following_url":"https://api.github.com/users/ChesterSng/following{/other_user}","gists_url":"https://api.github.com/users/ChesterSng/gists{/gist_id}","starred_url":"https://api.github.com/users/ChesterSng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChesterSng/subscriptions","organizations_url":"https://api.github.com/users/ChesterSng/orgs","repos_url":"https://api.github.com/users/ChesterSng/repos","events_url":"https://api.github.com/users/ChesterSng/events{/privacy}","received_events_url":"https://api.github.com/users/ChesterSng/received_events","type":"User","site_admin":false},"body":"Maybe a comma can be easier to see? Less scrolling! :)","created_at":"2018-10-03T08:32:48Z","updated_at":"2018-10-03T08:32:49Z","html_url":"https://github.com/CS2103-AY1819S1-W16-4/main/pull/32#discussion_r222225557","pull_request_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/pulls/32","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/pulls/comments/222225557"},"html":{"href":"https://github.com/CS2103-AY1819S1-W16-4/main/pull/32#discussion_r222225557"},"pull_request":{"href":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/pulls/32","id":219632826,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5NjMyODI2","html_url":"https://github.com/CS2103-AY1819S1-W16-4/main/pull/32","diff_url":"https://github.com/CS2103-AY1819S1-W16-4/main/pull/32.diff","patch_url":"https://github.com/CS2103-AY1819S1-W16-4/main/pull/32.patch","issue_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/issues/32","number":32,"state":"open","locked":false,"title":"Enabled saving Medicine to file","user":{"login":"blewjy","id":39292809,"node_id":"MDQ6VXNlcjM5MjkyODA5","avatar_url":"https://avatars0.githubusercontent.com/u/39292809?v=4","gravatar_id":"","url":"https://api.github.com/users/blewjy","html_url":"https://github.com/blewjy","followers_url":"https://api.github.com/users/blewjy/followers","following_url":"https://api.github.com/users/blewjy/following{/other_user}","gists_url":"https://api.github.com/users/blewjy/gists{/gist_id}","starred_url":"https://api.github.com/users/blewjy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blewjy/subscriptions","organizations_url":"https://api.github.com/users/blewjy/orgs","repos_url":"https://api.github.com/users/blewjy/repos","events_url":"https://api.github.com/users/blewjy/events{/privacy}","received_events_url":"https://api.github.com/users/blewjy/received_events","type":"User","site_admin":false},"body":"- Created relevant XML objects for MedicineBook\r\n- Enable saving and loading from file for MedicineBook","created_at":"2018-10-02T09:06:43Z","updated_at":"2018-10-03T08:32:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"22833e8eae8540ba2bae6690a9cd43b8a63d535a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/pulls/32/commits","review_comments_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/pulls/32/comments","review_comment_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/issues/32/comments","statuses_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/statuses/83fa5aeb51a92ef62286627cca3d65629aef6579","head":{"label":"blewjy:master","ref":"master","sha":"83fa5aeb51a92ef62286627cca3d65629aef6579","user":{"login":"blewjy","id":39292809,"node_id":"MDQ6VXNlcjM5MjkyODA5","avatar_url":"https://avatars0.githubusercontent.com/u/39292809?v=4","gravatar_id":"","url":"https://api.github.com/users/blewjy","html_url":"https://github.com/blewjy","followers_url":"https://api.github.com/users/blewjy/followers","following_url":"https://api.github.com/users/blewjy/following{/other_user}","gists_url":"https://api.github.com/users/blewjy/gists{/gist_id}","starred_url":"https://api.github.com/users/blewjy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blewjy/subscriptions","organizations_url":"https://api.github.com/users/blewjy/orgs","repos_url":"https://api.github.com/users/blewjy/repos","events_url":"https://api.github.com/users/blewjy/events{/privacy}","received_events_url":"https://api.github.com/users/blewjy/received_events","type":"User","site_admin":false},"repo":{"id":148446706,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg0NDY3MDY=","name":"addressbook-level4","full_name":"blewjy/addressbook-level4","private":false,"owner":{"login":"blewjy","id":39292809,"node_id":"MDQ6VXNlcjM5MjkyODA5","avatar_url":"https://avatars0.githubusercontent.com/u/39292809?v=4","gravatar_id":"","url":"https://api.github.com/users/blewjy","html_url":"https://github.com/blewjy","followers_url":"https://api.github.com/users/blewjy/followers","following_url":"https://api.github.com/users/blewjy/following{/other_user}","gists_url":"https://api.github.com/users/blewjy/gists{/gist_id}","starred_url":"https://api.github.com/users/blewjy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blewjy/subscriptions","organizations_url":"https://api.github.com/users/blewjy/orgs","repos_url":"https://api.github.com/users/blewjy/repos","events_url":"https://api.github.com/users/blewjy/events{/privacy}","received_events_url":"https://api.github.com/users/blewjy/received_events","type":"User","site_admin":false},"html_url":"https://github.com/blewjy/addressbook-level4","description":":ab::four: Address Book sample application (Level 4)","fork":true,"url":"https://api.github.com/repos/blewjy/addressbook-level4","forks_url":"https://api.github.com/repos/blewjy/addressbook-level4/forks","keys_url":"https://api.github.com/repos/blewjy/addressbook-level4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blewjy/addressbook-level4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blewjy/addressbook-level4/teams","hooks_url":"https://api.github.com/repos/blewjy/addressbook-level4/hooks","issue_events_url":"https://api.github.com/repos/blewjy/addressbook-level4/issues/events{/number}","events_url":"https://api.github.com/repos/blewjy/addressbook-level4/events","assignees_url":"https://api.github.com/repos/blewjy/addressbook-level4/assignees{/user}","branches_url":"https://api.github.com/repos/blewjy/addressbook-level4/branches{/branch}","tags_url":"https://api.github.com/repos/blewjy/addressbook-level4/tags","blobs_url":"https://api.github.com/repos/blewjy/addressbook-level4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blewjy/addressbook-level4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blewjy/addressbook-level4/git/refs{/sha}","trees_url":"https://api.github.com/repos/blewjy/addressbook-level4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blewjy/addressbook-level4/statuses/{sha}","languages_url":"https://api.github.com/repos/blewjy/addressbook-level4/languages","stargazers_url":"https://api.github.com/repos/blewjy/addressbook-level4/stargazers","contributors_url":"https://api.github.com/repos/blewjy/addressbook-level4/contributors","subscribers_url":"https://api.github.com/repos/blewjy/addressbook-level4/subscribers","subscription_url":"https://api.github.com/repos/blewjy/addressbook-level4/subscription","commits_url":"https://api.github.com/repos/blewjy/addressbook-level4/commits{/sha}","git_commits_url":"https://api.github.com/repos/blewjy/addressbook-level4/git/commits{/sha}","comments_url":"https://api.github.com/repos/blewjy/addressbook-level4/comments{/number}","issue_comment_url":"https://api.github.com/repos/blewjy/addressbook-level4/issues/comments{/number}","contents_url":"https://api.github.com/repos/blewjy/addressbook-level4/contents/{+path}","compare_url":"https://api.github.com/repos/blewjy/addressbook-level4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blewjy/addressbook-level4/merges","archive_url":"https://api.github.com/repos/blewjy/addressbook-level4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blewjy/addressbook-level4/downloads","issues_url":"https://api.github.com/repos/blewjy/addressbook-level4/issues{/number}","pulls_url":"https://api.github.com/repos/blewjy/addressbook-level4/pulls{/number}","milestones_url":"https://api.github.com/repos/blewjy/addressbook-level4/milestones{/number}","notifications_url":"https://api.github.com/repos/blewjy/addressbook-level4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blewjy/addressbook-level4/labels{/name}","releases_url":"https://api.github.com/repos/blewjy/addressbook-level4/releases{/id}","deployments_url":"https://api.github.com/repos/blewjy/addressbook-level4/deployments","created_at":"2018-09-12T08:23:10Z","updated_at":"2018-10-02T10:58:28Z","pushed_at":"2018-10-02T10:58:26Z","git_url":"git://github.com/blewjy/addressbook-level4.git","ssh_url":"git@github.com:blewjy/addressbook-level4.git","clone_url":"https://github.com/blewjy/addressbook-level4.git","svn_url":"https://github.com/blewjy/addressbook-level4","homepage":"https://se-edu.github.io/addressbook-level4","size":9644,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"CS2103-AY1819S1-W16-4:master","ref":"master","sha":"402f5077af8d16feb7f730652285c3b166e37d9b","user":{"login":"CS2103-AY1819S1-W16-4","id":42995678,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyOTk1Njc4","avatar_url":"https://avatars0.githubusercontent.com/u/42995678?v=4","gravatar_id":"","url":"https://api.github.com/users/CS2103-AY1819S1-W16-4","html_url":"https://github.com/CS2103-AY1819S1-W16-4","followers_url":"https://api.github.com/users/CS2103-AY1819S1-W16-4/followers","following_url":"https://api.github.com/users/CS2103-AY1819S1-W16-4/following{/other_user}","gists_url":"https://api.github.com/users/CS2103-AY1819S1-W16-4/gists{/gist_id}","starred_url":"https://api.github.com/users/CS2103-AY1819S1-W16-4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS2103-AY1819S1-W16-4/subscriptions","organizations_url":"https://api.github.com/users/CS2103-AY1819S1-W16-4/orgs","repos_url":"https://api.github.com/users/CS2103-AY1819S1-W16-4/repos","events_url":"https://api.github.com/users/CS2103-AY1819S1-W16-4/events{/privacy}","received_events_url":"https://api.github.com/users/CS2103-AY1819S1-W16-4/received_events","type":"Organization","site_admin":false},"repo":{"id":148255574,"node_id":"MDEwOlJlcG9zaXRvcnkxNDgyNTU1NzQ=","name":"main","full_name":"CS2103-AY1819S1-W16-4/main","private":false,"owner":{"login":"CS2103-AY1819S1-W16-4","id":42995678,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyOTk1Njc4","avatar_url":"https://avatars0.githubusercontent.com/u/42995678?v=4","gravatar_id":"","url":"https://api.github.com/users/CS2103-AY1819S1-W16-4","html_url":"https://github.com/CS2103-AY1819S1-W16-4","followers_url":"https://api.github.com/users/CS2103-AY1819S1-W16-4/followers","following_url":"https://api.github.com/users/CS2103-AY1819S1-W16-4/following{/other_user}","gists_url":"https://api.github.com/users/CS2103-AY1819S1-W16-4/gists{/gist_id}","starred_url":"https://api.github.com/users/CS2103-AY1819S1-W16-4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS2103-AY1819S1-W16-4/subscriptions","organizations_url":"https://api.github.com/users/CS2103-AY1819S1-W16-4/orgs","repos_url":"https://api.github.com/users/CS2103-AY1819S1-W16-4/repos","events_url":"https://api.github.com/users/CS2103-AY1819S1-W16-4/events{/privacy}","received_events_url":"https://api.github.com/users/CS2103-AY1819S1-W16-4/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/CS2103-AY1819S1-W16-4/main","description":":ab::four: Address Book sample application (Level 4)","fork":true,"url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main","forks_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/forks","keys_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/teams","hooks_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/hooks","issue_events_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/issues/events{/number}","events_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/events","assignees_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/assignees{/user}","branches_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/branches{/branch}","tags_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/tags","blobs_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/git/refs{/sha}","trees_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/statuses/{sha}","languages_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/languages","stargazers_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/stargazers","contributors_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/contributors","subscribers_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/subscribers","subscription_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/subscription","commits_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/commits{/sha}","git_commits_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/git/commits{/sha}","comments_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/comments{/number}","issue_comment_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/issues/comments{/number}","contents_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/contents/{+path}","compare_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/merges","archive_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/downloads","issues_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/issues{/number}","pulls_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/pulls{/number}","milestones_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/milestones{/number}","notifications_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/labels{/name}","releases_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/releases{/id}","deployments_url":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/deployments","created_at":"2018-09-11T03:34:08Z","updated_at":"2018-10-03T08:25:10Z","pushed_at":"2018-10-03T08:29:50Z","git_url":"git://github.com/CS2103-AY1819S1-W16-4/main.git","ssh_url":"git@github.com:CS2103-AY1819S1-W16-4/main.git","clone_url":"https://github.com/CS2103-AY1819S1-W16-4/main.git","svn_url":"https://github.com/CS2103-AY1819S1-W16-4/main","homepage":"https://se-edu.github.io/addressbook-level4","size":9657,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":4,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/pulls/32"},"html":{"href":"https://github.com/CS2103-AY1819S1-W16-4/main/pull/32"},"issue":{"href":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/issues/32"},"comments":{"href":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/CS2103-AY1819S1-W16-4/main/statuses/83fa5aeb51a92ef62286627cca3d65629aef6579"}},"author_association":"NONE"}}
{"actor":{"display_login":"ChesterSng"}}