{"action":"created","comment":{"url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/pulls/comments/50010638","id":50010638,"diff_hunk":"@@ -0,0 +1,84 @@\n+/*\n+ * The contents of this file are subject to the OpenMRS Public License\n+ * Version 2.0 (the \"License\"); you may not use this file except in\n+ * compliance with the License. You may obtain a copy of the License at\n+ * http://license.openmrs.org\n+ *\n+ * Software distributed under the License is distributed on an \"AS IS\"\n+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See\n+ * the License for the specific language governing rights and\n+ * limitations under the License.\n+ *\n+ * Copyright (C) OpenHMIS.  All Rights Reserved.\n+ */\n+\n+package org.openmrs.module.chartsearch.web.resources;\n+\n+import org.openmrs.api.context.Context;\n+import org.openmrs.module.chartsearch.api.ChartSearchService;\n+import org.openmrs.module.chartsearch.cache.ChartSearchBookmark;\n+import org.openmrs.module.chartsearch.cache.ChartSearchNote;\n+import org.openmrs.module.webservices.rest.web.RequestContext;\n+import org.openmrs.module.webservices.rest.web.RestConstants;\n+import org.openmrs.module.webservices.rest.web.annotation.Resource;\n+import org.openmrs.module.webservices.rest.web.representation.DefaultRepresentation;\n+import org.openmrs.module.webservices.rest.web.representation.Representation;\n+import org.openmrs.module.webservices.rest.web.resource.impl.DelegatingCrudResource;\n+import org.openmrs.module.webservices.rest.web.resource.impl.DelegatingResourceDescription;\n+import org.openmrs.module.webservices.rest.web.response.ResponseException;\n+\n+/**\n+ * REST resource representing a {@link ChartSearchNote}.\n+ */\n+@Resource(name = RestConstants.VERSION_1 + \"/chartsearchnote\", supportedClass = ChartSearchBookmark.class, supportedOpenmrsVersions = {\"1.10.x\", \"1.11.*\", \"1.12.*\", \"2.0.*\"})\n+\n+public class ChartSearchNoteResource extends DelegatingCrudResource<ChartSearchNote> {\n+    @Override\n+    public ChartSearchNote getByUniqueId(String uuid) {\n+        return Context.getService(ChartSearchService.class).getSearchNoteByUuid(uuid);\n+    }\n+\n+    @Override\n+    protected void delete(ChartSearchNote chartSearchNote, String s, RequestContext requestContext) throws ResponseException {\n+","path":"omod/src/main/java/org/openmrs/module/chartsearch/web/resources/ChartSearchNoteResource.java","position":43,"original_position":43,"commit_id":"01ec4386f8dad4b54787dde2dd7f4487b7702928","original_commit_id":"01ec4386f8dad4b54787dde2dd7f4487b7702928","user":{"login":"ssmusoke","id":689900,"avatar_url":"https://avatars.githubusercontent.com/u/689900?v=3","gravatar_id":"","url":"https://api.github.com/users/ssmusoke","html_url":"https://github.com/ssmusoke","followers_url":"https://api.github.com/users/ssmusoke/followers","following_url":"https://api.github.com/users/ssmusoke/following{/other_user}","gists_url":"https://api.github.com/users/ssmusoke/gists{/gist_id}","starred_url":"https://api.github.com/users/ssmusoke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssmusoke/subscriptions","organizations_url":"https://api.github.com/users/ssmusoke/orgs","repos_url":"https://api.github.com/users/ssmusoke/repos","events_url":"https://api.github.com/users/ssmusoke/events{/privacy}","received_events_url":"https://api.github.com/users/ssmusoke/received_events","type":"User","site_admin":false},"body":"@wluyima I was being consistent with the other resource classes, if that change needs to be made it needs to be across all of them ","created_at":"2016-01-18T15:28:20Z","updated_at":"2016-01-18T15:28:20Z","html_url":"https://github.com/openmrs/openmrs-module-chartsearch/pull/83#discussion_r50010638","pull_request_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/pulls/83","_links":{"self":{"href":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/pulls/comments/50010638"},"html":{"href":"https://github.com/openmrs/openmrs-module-chartsearch/pull/83#discussion_r50010638"},"pull_request":{"href":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/pulls/83"}}},"pull_request":{"url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/pulls/83","id":55333477,"html_url":"https://github.com/openmrs/openmrs-module-chartsearch/pull/83","diff_url":"https://github.com/openmrs/openmrs-module-chartsearch/pull/83.diff","patch_url":"https://github.com/openmrs/openmrs-module-chartsearch/pull/83.patch","issue_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/issues/83","number":83,"state":"closed","locked":false,"title":"Fix for CSM-124 adding representation for the Chart Search Note ","user":{"login":"ssmusoke","id":689900,"avatar_url":"https://avatars.githubusercontent.com/u/689900?v=3","gravatar_id":"","url":"https://api.github.com/users/ssmusoke","html_url":"https://github.com/ssmusoke","followers_url":"https://api.github.com/users/ssmusoke/followers","following_url":"https://api.github.com/users/ssmusoke/following{/other_user}","gists_url":"https://api.github.com/users/ssmusoke/gists{/gist_id}","starred_url":"https://api.github.com/users/ssmusoke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssmusoke/subscriptions","organizations_url":"https://api.github.com/users/ssmusoke/orgs","repos_url":"https://api.github.com/users/ssmusoke/repos","events_url":"https://api.github.com/users/ssmusoke/events{/privacy}","received_events_url":"https://api.github.com/users/ssmusoke/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-07T12:41:19Z","updated_at":"2016-01-18T15:28:20Z","closed_at":"2016-01-14T18:37:00Z","merged_at":"2016-01-14T18:37:00Z","merge_commit_sha":"92a0a4b2d040c3a4597103e571f3f3053fe5fb13","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/pulls/83/commits","review_comments_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/pulls/83/comments","review_comment_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/issues/83/comments","statuses_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/statuses/01ec4386f8dad4b54787dde2dd7f4487b7702928","head":{"label":"ssmusoke:master","ref":"master","sha":"01ec4386f8dad4b54787dde2dd7f4487b7702928","user":{"login":"ssmusoke","id":689900,"avatar_url":"https://avatars.githubusercontent.com/u/689900?v=3","gravatar_id":"","url":"https://api.github.com/users/ssmusoke","html_url":"https://github.com/ssmusoke","followers_url":"https://api.github.com/users/ssmusoke/followers","following_url":"https://api.github.com/users/ssmusoke/following{/other_user}","gists_url":"https://api.github.com/users/ssmusoke/gists{/gist_id}","starred_url":"https://api.github.com/users/ssmusoke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssmusoke/subscriptions","organizations_url":"https://api.github.com/users/ssmusoke/orgs","repos_url":"https://api.github.com/users/ssmusoke/repos","events_url":"https://api.github.com/users/ssmusoke/events{/privacy}","received_events_url":"https://api.github.com/users/ssmusoke/received_events","type":"User","site_admin":false},"repo":{"id":47911821,"name":"openmrs-module-chartsearch","full_name":"ssmusoke/openmrs-module-chartsearch","owner":{"login":"ssmusoke","id":689900,"avatar_url":"https://avatars.githubusercontent.com/u/689900?v=3","gravatar_id":"","url":"https://api.github.com/users/ssmusoke","html_url":"https://github.com/ssmusoke","followers_url":"https://api.github.com/users/ssmusoke/followers","following_url":"https://api.github.com/users/ssmusoke/following{/other_user}","gists_url":"https://api.github.com/users/ssmusoke/gists{/gist_id}","starred_url":"https://api.github.com/users/ssmusoke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssmusoke/subscriptions","organizations_url":"https://api.github.com/users/ssmusoke/orgs","repos_url":"https://api.github.com/users/ssmusoke/repos","events_url":"https://api.github.com/users/ssmusoke/events{/privacy}","received_events_url":"https://api.github.com/users/ssmusoke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ssmusoke/openmrs-module-chartsearch","description":"liquibase.xml","fork":true,"url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch","forks_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/forks","keys_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/teams","hooks_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/hooks","issue_events_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/issues/events{/number}","events_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/events","assignees_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/assignees{/user}","branches_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/branches{/branch}","tags_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/tags","blobs_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/languages","stargazers_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/stargazers","contributors_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/contributors","subscribers_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/subscribers","subscription_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/subscription","commits_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/contents/{+path}","compare_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/merges","archive_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/downloads","issues_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/issues{/number}","pulls_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/labels{/name}","releases_url":"https://api.github.com/repos/ssmusoke/openmrs-module-chartsearch/releases{/id}","created_at":"2015-12-13T08:39:09Z","updated_at":"2015-12-13T08:39:10Z","pushed_at":"2016-01-07T12:37:08Z","git_url":"git://github.com/ssmusoke/openmrs-module-chartsearch.git","ssh_url":"git@github.com:ssmusoke/openmrs-module-chartsearch.git","clone_url":"https://github.com/ssmusoke/openmrs-module-chartsearch.git","svn_url":"https://github.com/ssmusoke/openmrs-module-chartsearch","homepage":"","size":18881,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openmrs:master","ref":"master","sha":"e63e6940af188b6886c10a3037206cf4f726d4b3","user":{"login":"openmrs","id":860776,"avatar_url":"https://avatars.githubusercontent.com/u/860776?v=3","gravatar_id":"","url":"https://api.github.com/users/openmrs","html_url":"https://github.com/openmrs","followers_url":"https://api.github.com/users/openmrs/followers","following_url":"https://api.github.com/users/openmrs/following{/other_user}","gists_url":"https://api.github.com/users/openmrs/gists{/gist_id}","starred_url":"https://api.github.com/users/openmrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmrs/subscriptions","organizations_url":"https://api.github.com/users/openmrs/orgs","repos_url":"https://api.github.com/users/openmrs/repos","events_url":"https://api.github.com/users/openmrs/events{/privacy}","received_events_url":"https://api.github.com/users/openmrs/received_events","type":"Organization","site_admin":false},"repo":{"id":10794847,"name":"openmrs-module-chartsearch","full_name":"openmrs/openmrs-module-chartsearch","owner":{"login":"openmrs","id":860776,"avatar_url":"https://avatars.githubusercontent.com/u/860776?v=3","gravatar_id":"","url":"https://api.github.com/users/openmrs","html_url":"https://github.com/openmrs","followers_url":"https://api.github.com/users/openmrs/followers","following_url":"https://api.github.com/users/openmrs/following{/other_user}","gists_url":"https://api.github.com/users/openmrs/gists{/gist_id}","starred_url":"https://api.github.com/users/openmrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmrs/subscriptions","organizations_url":"https://api.github.com/users/openmrs/orgs","repos_url":"https://api.github.com/users/openmrs/repos","events_url":"https://api.github.com/users/openmrs/events{/privacy}","received_events_url":"https://api.github.com/users/openmrs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openmrs/openmrs-module-chartsearch","description":"liquibase.xml","fork":false,"url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch","forks_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/forks","keys_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/teams","hooks_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/hooks","issue_events_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/issues/events{/number}","events_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/events","assignees_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/assignees{/user}","branches_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/branches{/branch}","tags_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/tags","blobs_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/languages","stargazers_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/stargazers","contributors_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/contributors","subscribers_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/subscribers","subscription_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/subscription","commits_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/contents/{+path}","compare_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/merges","archive_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/downloads","issues_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/issues{/number}","pulls_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/labels{/name}","releases_url":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/releases{/id}","created_at":"2013-06-19T14:27:54Z","updated_at":"2016-01-14T18:37:03Z","pushed_at":"2016-01-14T18:37:01Z","git_url":"git://github.com/openmrs/openmrs-module-chartsearch.git","ssh_url":"git@github.com:openmrs/openmrs-module-chartsearch.git","clone_url":"https://github.com/openmrs/openmrs-module-chartsearch.git","svn_url":"https://github.com/openmrs/openmrs-module-chartsearch","homepage":"","size":18958,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":1,"forks":17,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/pulls/83"},"html":{"href":"https://github.com/openmrs/openmrs-module-chartsearch/pull/83"},"issue":{"href":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/issues/83"},"comments":{"href":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/issues/83/comments"},"review_comments":{"href":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/pulls/83/comments"},"review_comment":{"href":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/pulls/83/commits"},"statuses":{"href":"https://api.github.com/repos/openmrs/openmrs-module-chartsearch/statuses/01ec4386f8dad4b54787dde2dd7f4487b7702928"}}}}