{"action":"created","comment":{"url":"https://api.github.com/repos/openmrs/openmrs-core/pulls/comments/83264545","pull_request_review_id":4119951,"id":83264545,"diff_hunk":"@@ -775,6 +775,16 @@ public static boolean isSessionOpen() {\n \t}\n \n \t/**\n+\t * Used to re-read the state of the given instance from the underlying database.\n+\t * @since 2.0\n+\t * @param obj The object to refresh from the database in the session\n+\t */\n+\tpublic static void refreshEntity(Object obj) {\n+\t\tlog.trace(\"clearing session\");","path":"api/src/main/java/org/openmrs/api/context/Context.java","position":9,"original_position":9,"commit_id":"82ade5010cca6d9a1a831d1ce3c0b88cc69a7ccf","original_commit_id":"82ade5010cca6d9a1a831d1ce3c0b88cc69a7ccf","user":{"login":"preethi29","id":5102045,"avatar_url":"https://avatars.githubusercontent.com/u/5102045?v=3","gravatar_id":"","url":"https://api.github.com/users/preethi29","html_url":"https://github.com/preethi29","followers_url":"https://api.github.com/users/preethi29/followers","following_url":"https://api.github.com/users/preethi29/following{/other_user}","gists_url":"https://api.github.com/users/preethi29/gists{/gist_id}","starred_url":"https://api.github.com/users/preethi29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/preethi29/subscriptions","organizations_url":"https://api.github.com/users/preethi29/orgs","repos_url":"https://api.github.com/users/preethi29/repos","events_url":"https://api.github.com/users/preethi29/events{/privacy}","received_events_url":"https://api.github.com/users/preethi29/received_events","type":"User","site_admin":false},"body":"Will update this.","created_at":"2016-10-13T17:08:59Z","updated_at":"2016-10-13T17:08:59Z","html_url":"https://github.com/openmrs/openmrs-core/pull/1855#discussion_r83264545","pull_request_url":"https://api.github.com/repos/openmrs/openmrs-core/pulls/1855","_links":{"self":{"href":"https://api.github.com/repos/openmrs/openmrs-core/pulls/comments/83264545"},"html":{"href":"https://github.com/openmrs/openmrs-core/pull/1855#discussion_r83264545"},"pull_request":{"href":"https://api.github.com/repos/openmrs/openmrs-core/pulls/1855"}}},"pull_request":{"url":"https://api.github.com/repos/openmrs/openmrs-core/pulls/1855","id":89190901,"html_url":"https://github.com/openmrs/openmrs-core/pull/1855","diff_url":"https://github.com/openmrs/openmrs-core/pull/1855.diff","patch_url":"https://github.com/openmrs/openmrs-core/pull/1855.patch","issue_url":"https://api.github.com/repos/openmrs/openmrs-core/issues/1855","number":1855,"state":"open","locked":false,"title":"TRUNK-4963 | Reload parent obs from db once child is changed instead …","user":{"login":"preethi29","id":5102045,"avatar_url":"https://avatars.githubusercontent.com/u/5102045?v=3","gravatar_id":"","url":"https://api.github.com/users/preethi29","html_url":"https://github.com/preethi29","followers_url":"https://api.github.com/users/preethi29/followers","following_url":"https://api.github.com/users/preethi29/following{/other_user}","gists_url":"https://api.github.com/users/preethi29/gists{/gist_id}","starred_url":"https://api.github.com/users/preethi29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/preethi29/subscriptions","organizations_url":"https://api.github.com/users/preethi29/orgs","repos_url":"https://api.github.com/users/preethi29/repos","events_url":"https://api.github.com/users/preethi29/events{/privacy}","received_events_url":"https://api.github.com/users/preethi29/received_events","type":"User","site_admin":false},"body":"<!--- Provide PR Title above as: 'TRUNK-JiraIssueNumber JiraIssueTitle' -->\r\n\r\n## Description\r\n<!--- Describe your changes in detail -->\r\n\r\n## Related Issue\r\n<!--- This project only accepts pull requests related to open issues -->\r\n<!--- If suggesting a new feature or change, please discuss it in an issue\r\nfirst -->\r\n<!--- If fixing a bug, there should be an issue describing it with steps to\r\nreproduce -->\r\n<!--- Please link to the issue here: -->\r\nsee https://issues.openmrs.org/browse/TRUNK-4963\r\n\r\n## Checklist:\r\n<!--- Go over all the following points, and put an `x` in all the boxes that\r\napply. -->\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to\r\nhelp! -->\r\n- [x] My pull request only contains one single commit.\r\n- [x] My pull request is based on the latest master branch\r\n  `git pull --rebase upstream master`.\r\n- [x] I ran `mvn clean package` right before creating this pull request and\r\n  added all formatting changes to my commit.\r\n- [x] My code follows the code style of this project.\r\n- [x] I have read the **CONTRIBUTING** document.\r\n- [x] I have added tests to cover my changes.\r\n- [x] All new and existing tests passed.\r\n\r\n\r\n…updating the collection manually","created_at":"2016-10-13T12:21:15Z","updated_at":"2016-10-13T17:08:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa5139f94c1a5e8bbf1a659a3eaa9701f67f8455","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openmrs/openmrs-core/pulls/1855/commits","review_comments_url":"https://api.github.com/repos/openmrs/openmrs-core/pulls/1855/comments","review_comment_url":"https://api.github.com/repos/openmrs/openmrs-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openmrs/openmrs-core/issues/1855/comments","statuses_url":"https://api.github.com/repos/openmrs/openmrs-core/statuses/82ade5010cca6d9a1a831d1ce3c0b88cc69a7ccf","head":{"label":"preethi29:TRUNK-4963","ref":"TRUNK-4963","sha":"82ade5010cca6d9a1a831d1ce3c0b88cc69a7ccf","user":{"login":"preethi29","id":5102045,"avatar_url":"https://avatars.githubusercontent.com/u/5102045?v=3","gravatar_id":"","url":"https://api.github.com/users/preethi29","html_url":"https://github.com/preethi29","followers_url":"https://api.github.com/users/preethi29/followers","following_url":"https://api.github.com/users/preethi29/following{/other_user}","gists_url":"https://api.github.com/users/preethi29/gists{/gist_id}","starred_url":"https://api.github.com/users/preethi29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/preethi29/subscriptions","organizations_url":"https://api.github.com/users/preethi29/orgs","repos_url":"https://api.github.com/users/preethi29/repos","events_url":"https://api.github.com/users/preethi29/events{/privacy}","received_events_url":"https://api.github.com/users/preethi29/received_events","type":"User","site_admin":false},"repo":{"id":43358940,"name":"openmrs-core","full_name":"preethi29/openmrs-core","owner":{"login":"preethi29","id":5102045,"avatar_url":"https://avatars.githubusercontent.com/u/5102045?v=3","gravatar_id":"","url":"https://api.github.com/users/preethi29","html_url":"https://github.com/preethi29","followers_url":"https://api.github.com/users/preethi29/followers","following_url":"https://api.github.com/users/preethi29/following{/other_user}","gists_url":"https://api.github.com/users/preethi29/gists{/gist_id}","starred_url":"https://api.github.com/users/preethi29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/preethi29/subscriptions","organizations_url":"https://api.github.com/users/preethi29/orgs","repos_url":"https://api.github.com/users/preethi29/repos","events_url":"https://api.github.com/users/preethi29/events{/privacy}","received_events_url":"https://api.github.com/users/preethi29/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/preethi29/openmrs-core","description":"OpenMRS API and web application code","fork":true,"url":"https://api.github.com/repos/preethi29/openmrs-core","forks_url":"https://api.github.com/repos/preethi29/openmrs-core/forks","keys_url":"https://api.github.com/repos/preethi29/openmrs-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/preethi29/openmrs-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/preethi29/openmrs-core/teams","hooks_url":"https://api.github.com/repos/preethi29/openmrs-core/hooks","issue_events_url":"https://api.github.com/repos/preethi29/openmrs-core/issues/events{/number}","events_url":"https://api.github.com/repos/preethi29/openmrs-core/events","assignees_url":"https://api.github.com/repos/preethi29/openmrs-core/assignees{/user}","branches_url":"https://api.github.com/repos/preethi29/openmrs-core/branches{/branch}","tags_url":"https://api.github.com/repos/preethi29/openmrs-core/tags","blobs_url":"https://api.github.com/repos/preethi29/openmrs-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/preethi29/openmrs-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/preethi29/openmrs-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/preethi29/openmrs-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/preethi29/openmrs-core/statuses/{sha}","languages_url":"https://api.github.com/repos/preethi29/openmrs-core/languages","stargazers_url":"https://api.github.com/repos/preethi29/openmrs-core/stargazers","contributors_url":"https://api.github.com/repos/preethi29/openmrs-core/contributors","subscribers_url":"https://api.github.com/repos/preethi29/openmrs-core/subscribers","subscription_url":"https://api.github.com/repos/preethi29/openmrs-core/subscription","commits_url":"https://api.github.com/repos/preethi29/openmrs-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/preethi29/openmrs-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/preethi29/openmrs-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/preethi29/openmrs-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/preethi29/openmrs-core/contents/{+path}","compare_url":"https://api.github.com/repos/preethi29/openmrs-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/preethi29/openmrs-core/merges","archive_url":"https://api.github.com/repos/preethi29/openmrs-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/preethi29/openmrs-core/downloads","issues_url":"https://api.github.com/repos/preethi29/openmrs-core/issues{/number}","pulls_url":"https://api.github.com/repos/preethi29/openmrs-core/pulls{/number}","milestones_url":"https://api.github.com/repos/preethi29/openmrs-core/milestones{/number}","notifications_url":"https://api.github.com/repos/preethi29/openmrs-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/preethi29/openmrs-core/labels{/name}","releases_url":"https://api.github.com/repos/preethi29/openmrs-core/releases{/id}","deployments_url":"https://api.github.com/repos/preethi29/openmrs-core/deployments","created_at":"2015-09-29T09:46:43Z","updated_at":"2016-09-15T11:00:47Z","pushed_at":"2016-10-13T12:15:15Z","git_url":"git://github.com/preethi29/openmrs-core.git","ssh_url":"git@github.com:preethi29/openmrs-core.git","clone_url":"https://github.com/preethi29/openmrs-core.git","svn_url":"https://github.com/preethi29/openmrs-core","homepage":"http://openmrs.org","size":219262,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"4fba6363dc5e3865dcf166331a129c3b9066193b","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":5187976,"name":"openmrs-core","full_name":"openmrs/openmrs-core","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-core","description":"OpenMRS API and web application code","fork":false,"url":"https://api.github.com/repos/openmrs/openmrs-core","forks_url":"https://api.github.com/repos/openmrs/openmrs-core/forks","keys_url":"https://api.github.com/repos/openmrs/openmrs-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openmrs/openmrs-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openmrs/openmrs-core/teams","hooks_url":"https://api.github.com/repos/openmrs/openmrs-core/hooks","issue_events_url":"https://api.github.com/repos/openmrs/openmrs-core/issues/events{/number}","events_url":"https://api.github.com/repos/openmrs/openmrs-core/events","assignees_url":"https://api.github.com/repos/openmrs/openmrs-core/assignees{/user}","branches_url":"https://api.github.com/repos/openmrs/openmrs-core/branches{/branch}","tags_url":"https://api.github.com/repos/openmrs/openmrs-core/tags","blobs_url":"https://api.github.com/repos/openmrs/openmrs-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openmrs/openmrs-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openmrs/openmrs-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/openmrs/openmrs-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openmrs/openmrs-core/statuses/{sha}","languages_url":"https://api.github.com/repos/openmrs/openmrs-core/languages","stargazers_url":"https://api.github.com/repos/openmrs/openmrs-core/stargazers","contributors_url":"https://api.github.com/repos/openmrs/openmrs-core/contributors","subscribers_url":"https://api.github.com/repos/openmrs/openmrs-core/subscribers","subscription_url":"https://api.github.com/repos/openmrs/openmrs-core/subscription","commits_url":"https://api.github.com/repos/openmrs/openmrs-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/openmrs/openmrs-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/openmrs/openmrs-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/openmrs/openmrs-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/openmrs/openmrs-core/contents/{+path}","compare_url":"https://api.github.com/repos/openmrs/openmrs-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openmrs/openmrs-core/merges","archive_url":"https://api.github.com/repos/openmrs/openmrs-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openmrs/openmrs-core/downloads","issues_url":"https://api.github.com/repos/openmrs/openmrs-core/issues{/number}","pulls_url":"https://api.github.com/repos/openmrs/openmrs-core/pulls{/number}","milestones_url":"https://api.github.com/repos/openmrs/openmrs-core/milestones{/number}","notifications_url":"https://api.github.com/repos/openmrs/openmrs-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openmrs/openmrs-core/labels{/name}","releases_url":"https://api.github.com/repos/openmrs/openmrs-core/releases{/id}","deployments_url":"https://api.github.com/repos/openmrs/openmrs-core/deployments","created_at":"2012-07-26T04:54:29Z","updated_at":"2016-10-12T21:21:01Z","pushed_at":"2016-10-13T12:21:16Z","git_url":"git://github.com/openmrs/openmrs-core.git","ssh_url":"git@github.com:openmrs/openmrs-core.git","clone_url":"https://github.com/openmrs/openmrs-core.git","svn_url":"https://github.com/openmrs/openmrs-core","homepage":"http://openmrs.org","size":239794,"stargazers_count":372,"watchers_count":372,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1540,"mirror_url":null,"open_issues_count":5,"forks":1540,"open_issues":5,"watchers":372,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openmrs/openmrs-core/pulls/1855"},"html":{"href":"https://github.com/openmrs/openmrs-core/pull/1855"},"issue":{"href":"https://api.github.com/repos/openmrs/openmrs-core/issues/1855"},"comments":{"href":"https://api.github.com/repos/openmrs/openmrs-core/issues/1855/comments"},"review_comments":{"href":"https://api.github.com/repos/openmrs/openmrs-core/pulls/1855/comments"},"review_comment":{"href":"https://api.github.com/repos/openmrs/openmrs-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openmrs/openmrs-core/pulls/1855/commits"},"statuses":{"href":"https://api.github.com/repos/openmrs/openmrs-core/statuses/82ade5010cca6d9a1a831d1ce3c0b88cc69a7ccf"}}}}
{"actor":{"display_login":"preethi29"}}