{"action":"created","comment":{"url":"https://api.github.com/repos/motech/motech/pulls/comments/41138883","id":41138883,"diff_hunk":"@@ -22,7 +22,7 @@ <h4 class=\"frame-title\">{{selectedEntity.module}} <span ui-if=\"selectedEntity.mo\n             </select>\n         </span>\n         <div class=\"btn-group\">\n-            <button ng-click=\"importEntityInstances()\" type=\"button\" class=\"btn btn-default\" ng-show=\"showImportButton\">\n+            <button ng-click=\"importEntityInstances()\" type=\"button\" class=\"btn btn-default\" ng-hide=\"shouldHideButton()\">\n                 <span class=\"glyphicon glyphicon-import\"></span>","path":"platform/mds/mds-web/src/main/resources/webapp/partials/widgets/entityInstances.html","position":6,"original_position":6,"commit_id":"beabe214833a8ef030a128b7eb5ecb8913013a50","original_commit_id":"beabe214833a8ef030a128b7eb5ecb8913013a50","user":{"login":"tstalka","id":7116048,"avatar_url":"https://avatars.githubusercontent.com/u/7116048?v=3","gravatar_id":"","url":"https://api.github.com/users/tstalka","html_url":"https://github.com/tstalka","followers_url":"https://api.github.com/users/tstalka/followers","following_url":"https://api.github.com/users/tstalka/following{/other_user}","gists_url":"https://api.github.com/users/tstalka/gists{/gist_id}","starred_url":"https://api.github.com/users/tstalka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tstalka/subscriptions","organizations_url":"https://api.github.com/users/tstalka/orgs","repos_url":"https://api.github.com/users/tstalka/repos","events_url":"https://api.github.com/users/tstalka/events{/privacy}","received_events_url":"https://api.github.com/users/tstalka/received_events","type":"User","site_admin":false},"body":"showImportButton is needed for custom-ui, we can have editable entity but button should be hidden\r\n\r\n","created_at":"2015-10-05T12:44:44Z","updated_at":"2015-10-05T12:44:44Z","html_url":"https://github.com/motech/motech/pull/89#discussion_r41138883","pull_request_url":"https://api.github.com/repos/motech/motech/pulls/89","_links":{"self":{"href":"https://api.github.com/repos/motech/motech/pulls/comments/41138883"},"html":{"href":"https://github.com/motech/motech/pull/89#discussion_r41138883"},"pull_request":{"href":"https://api.github.com/repos/motech/motech/pulls/89"}}},"pull_request":{"url":"https://api.github.com/repos/motech/motech/pulls/89","id":46396299,"html_url":"https://github.com/motech/motech/pull/89","diff_url":"https://github.com/motech/motech/pull/89.diff","patch_url":"https://github.com/motech/motech/pull/89.patch","issue_url":"https://api.github.com/repos/motech/motech/issues/89","number":89,"state":"open","locked":false,"title":"MOTECH-1925: Import CSV is not possible for readonly entities","user":{"login":"kmadej","id":9861925,"avatar_url":"https://avatars.githubusercontent.com/u/9861925?v=3","gravatar_id":"","url":"https://api.github.com/users/kmadej","html_url":"https://github.com/kmadej","followers_url":"https://api.github.com/users/kmadej/followers","following_url":"https://api.github.com/users/kmadej/following{/other_user}","gists_url":"https://api.github.com/users/kmadej/gists{/gist_id}","starred_url":"https://api.github.com/users/kmadej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmadej/subscriptions","organizations_url":"https://api.github.com/users/kmadej/orgs","repos_url":"https://api.github.com/users/kmadej/repos","events_url":"https://api.github.com/users/kmadej/events{/privacy}","received_events_url":"https://api.github.com/users/kmadej/received_events","type":"User","site_admin":false},"body":"Now the import button is invisible above the entities grid for readonly entities.\r\nAdditionally I disallowed it at the backend.","created_at":"2015-09-30T12:42:07Z","updated_at":"2015-10-05T12:44:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"473037a00343aa094138ddddf853713535760ac6","assignee":{"login":"tstalka","id":7116048,"avatar_url":"https://avatars.githubusercontent.com/u/7116048?v=3","gravatar_id":"","url":"https://api.github.com/users/tstalka","html_url":"https://github.com/tstalka","followers_url":"https://api.github.com/users/tstalka/followers","following_url":"https://api.github.com/users/tstalka/following{/other_user}","gists_url":"https://api.github.com/users/tstalka/gists{/gist_id}","starred_url":"https://api.github.com/users/tstalka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tstalka/subscriptions","organizations_url":"https://api.github.com/users/tstalka/orgs","repos_url":"https://api.github.com/users/tstalka/repos","events_url":"https://api.github.com/users/tstalka/events{/privacy}","received_events_url":"https://api.github.com/users/tstalka/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/motech/motech/pulls/89/commits","review_comments_url":"https://api.github.com/repos/motech/motech/pulls/89/comments","review_comment_url":"https://api.github.com/repos/motech/motech/pulls/comments{/number}","comments_url":"https://api.github.com/repos/motech/motech/issues/89/comments","statuses_url":"https://api.github.com/repos/motech/motech/statuses/beabe214833a8ef030a128b7eb5ecb8913013a50","head":{"label":"kmadej:0.26-MOTECH-1925","ref":"0.26-MOTECH-1925","sha":"beabe214833a8ef030a128b7eb5ecb8913013a50","user":{"login":"kmadej","id":9861925,"avatar_url":"https://avatars.githubusercontent.com/u/9861925?v=3","gravatar_id":"","url":"https://api.github.com/users/kmadej","html_url":"https://github.com/kmadej","followers_url":"https://api.github.com/users/kmadej/followers","following_url":"https://api.github.com/users/kmadej/following{/other_user}","gists_url":"https://api.github.com/users/kmadej/gists{/gist_id}","starred_url":"https://api.github.com/users/kmadej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmadej/subscriptions","organizations_url":"https://api.github.com/users/kmadej/orgs","repos_url":"https://api.github.com/users/kmadej/repos","events_url":"https://api.github.com/users/kmadej/events{/privacy}","received_events_url":"https://api.github.com/users/kmadej/received_events","type":"User","site_admin":false},"repo":{"id":42516496,"name":"motech","full_name":"kmadej/motech","owner":{"login":"kmadej","id":9861925,"avatar_url":"https://avatars.githubusercontent.com/u/9861925?v=3","gravatar_id":"","url":"https://api.github.com/users/kmadej","html_url":"https://github.com/kmadej","followers_url":"https://api.github.com/users/kmadej/followers","following_url":"https://api.github.com/users/kmadej/following{/other_user}","gists_url":"https://api.github.com/users/kmadej/gists{/gist_id}","starred_url":"https://api.github.com/users/kmadej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmadej/subscriptions","organizations_url":"https://api.github.com/users/kmadej/orgs","repos_url":"https://api.github.com/users/kmadej/repos","events_url":"https://api.github.com/users/kmadej/events{/privacy}","received_events_url":"https://api.github.com/users/kmadej/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kmadej/motech","description":"Mobile Technology for Community Health","fork":true,"url":"https://api.github.com/repos/kmadej/motech","forks_url":"https://api.github.com/repos/kmadej/motech/forks","keys_url":"https://api.github.com/repos/kmadej/motech/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kmadej/motech/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kmadej/motech/teams","hooks_url":"https://api.github.com/repos/kmadej/motech/hooks","issue_events_url":"https://api.github.com/repos/kmadej/motech/issues/events{/number}","events_url":"https://api.github.com/repos/kmadej/motech/events","assignees_url":"https://api.github.com/repos/kmadej/motech/assignees{/user}","branches_url":"https://api.github.com/repos/kmadej/motech/branches{/branch}","tags_url":"https://api.github.com/repos/kmadej/motech/tags","blobs_url":"https://api.github.com/repos/kmadej/motech/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kmadej/motech/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kmadej/motech/git/refs{/sha}","trees_url":"https://api.github.com/repos/kmadej/motech/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kmadej/motech/statuses/{sha}","languages_url":"https://api.github.com/repos/kmadej/motech/languages","stargazers_url":"https://api.github.com/repos/kmadej/motech/stargazers","contributors_url":"https://api.github.com/repos/kmadej/motech/contributors","subscribers_url":"https://api.github.com/repos/kmadej/motech/subscribers","subscription_url":"https://api.github.com/repos/kmadej/motech/subscription","commits_url":"https://api.github.com/repos/kmadej/motech/commits{/sha}","git_commits_url":"https://api.github.com/repos/kmadej/motech/git/commits{/sha}","comments_url":"https://api.github.com/repos/kmadej/motech/comments{/number}","issue_comment_url":"https://api.github.com/repos/kmadej/motech/issues/comments{/number}","contents_url":"https://api.github.com/repos/kmadej/motech/contents/{+path}","compare_url":"https://api.github.com/repos/kmadej/motech/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kmadej/motech/merges","archive_url":"https://api.github.com/repos/kmadej/motech/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kmadej/motech/downloads","issues_url":"https://api.github.com/repos/kmadej/motech/issues{/number}","pulls_url":"https://api.github.com/repos/kmadej/motech/pulls{/number}","milestones_url":"https://api.github.com/repos/kmadej/motech/milestones{/number}","notifications_url":"https://api.github.com/repos/kmadej/motech/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kmadej/motech/labels{/name}","releases_url":"https://api.github.com/repos/kmadej/motech/releases{/id}","created_at":"2015-09-15T11:57:10Z","updated_at":"2015-09-15T11:57:16Z","pushed_at":"2015-10-05T09:49:54Z","git_url":"git://github.com/kmadej/motech.git","ssh_url":"git@github.com:kmadej/motech.git","clone_url":"https://github.com/kmadej/motech.git","svn_url":"https://github.com/kmadej/motech","homepage":"http://docs.motechproject.org","size":80449,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":false,"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":"motech:0.26.X","ref":"0.26.X","sha":"bfee26630202de369867807471e07fd8346f419d","user":{"login":"motech","id":477919,"avatar_url":"https://avatars.githubusercontent.com/u/477919?v=3","gravatar_id":"","url":"https://api.github.com/users/motech","html_url":"https://github.com/motech","followers_url":"https://api.github.com/users/motech/followers","following_url":"https://api.github.com/users/motech/following{/other_user}","gists_url":"https://api.github.com/users/motech/gists{/gist_id}","starred_url":"https://api.github.com/users/motech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motech/subscriptions","organizations_url":"https://api.github.com/users/motech/orgs","repos_url":"https://api.github.com/users/motech/repos","events_url":"https://api.github.com/users/motech/events{/privacy}","received_events_url":"https://api.github.com/users/motech/received_events","type":"Organization","site_admin":false},"repo":{"id":40527870,"name":"motech","full_name":"motech/motech","owner":{"login":"motech","id":477919,"avatar_url":"https://avatars.githubusercontent.com/u/477919?v=3","gravatar_id":"","url":"https://api.github.com/users/motech","html_url":"https://github.com/motech","followers_url":"https://api.github.com/users/motech/followers","following_url":"https://api.github.com/users/motech/following{/other_user}","gists_url":"https://api.github.com/users/motech/gists{/gist_id}","starred_url":"https://api.github.com/users/motech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motech/subscriptions","organizations_url":"https://api.github.com/users/motech/orgs","repos_url":"https://api.github.com/users/motech/repos","events_url":"https://api.github.com/users/motech/events{/privacy}","received_events_url":"https://api.github.com/users/motech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/motech/motech","description":"Mobile Technology for Community Health","fork":false,"url":"https://api.github.com/repos/motech/motech","forks_url":"https://api.github.com/repos/motech/motech/forks","keys_url":"https://api.github.com/repos/motech/motech/keys{/key_id}","collaborators_url":"https://api.github.com/repos/motech/motech/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/motech/motech/teams","hooks_url":"https://api.github.com/repos/motech/motech/hooks","issue_events_url":"https://api.github.com/repos/motech/motech/issues/events{/number}","events_url":"https://api.github.com/repos/motech/motech/events","assignees_url":"https://api.github.com/repos/motech/motech/assignees{/user}","branches_url":"https://api.github.com/repos/motech/motech/branches{/branch}","tags_url":"https://api.github.com/repos/motech/motech/tags","blobs_url":"https://api.github.com/repos/motech/motech/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/motech/motech/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/motech/motech/git/refs{/sha}","trees_url":"https://api.github.com/repos/motech/motech/git/trees{/sha}","statuses_url":"https://api.github.com/repos/motech/motech/statuses/{sha}","languages_url":"https://api.github.com/repos/motech/motech/languages","stargazers_url":"https://api.github.com/repos/motech/motech/stargazers","contributors_url":"https://api.github.com/repos/motech/motech/contributors","subscribers_url":"https://api.github.com/repos/motech/motech/subscribers","subscription_url":"https://api.github.com/repos/motech/motech/subscription","commits_url":"https://api.github.com/repos/motech/motech/commits{/sha}","git_commits_url":"https://api.github.com/repos/motech/motech/git/commits{/sha}","comments_url":"https://api.github.com/repos/motech/motech/comments{/number}","issue_comment_url":"https://api.github.com/repos/motech/motech/issues/comments{/number}","contents_url":"https://api.github.com/repos/motech/motech/contents/{+path}","compare_url":"https://api.github.com/repos/motech/motech/compare/{base}...{head}","merges_url":"https://api.github.com/repos/motech/motech/merges","archive_url":"https://api.github.com/repos/motech/motech/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/motech/motech/downloads","issues_url":"https://api.github.com/repos/motech/motech/issues{/number}","pulls_url":"https://api.github.com/repos/motech/motech/pulls{/number}","milestones_url":"https://api.github.com/repos/motech/motech/milestones{/number}","notifications_url":"https://api.github.com/repos/motech/motech/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/motech/motech/labels{/name}","releases_url":"https://api.github.com/repos/motech/motech/releases{/id}","created_at":"2015-08-11T07:26:54Z","updated_at":"2015-10-01T20:00:48Z","pushed_at":"2015-10-05T12:24:34Z","git_url":"git://github.com/motech/motech.git","ssh_url":"git@github.com:motech/motech.git","clone_url":"https://github.com/motech/motech.git","svn_url":"https://github.com/motech/motech","homepage":"http://docs.motechproject.org","size":42375,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":13,"forks":19,"open_issues":13,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/motech/motech/pulls/89"},"html":{"href":"https://github.com/motech/motech/pull/89"},"issue":{"href":"https://api.github.com/repos/motech/motech/issues/89"},"comments":{"href":"https://api.github.com/repos/motech/motech/issues/89/comments"},"review_comments":{"href":"https://api.github.com/repos/motech/motech/pulls/89/comments"},"review_comment":{"href":"https://api.github.com/repos/motech/motech/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/motech/motech/pulls/89/commits"},"statuses":{"href":"https://api.github.com/repos/motech/motech/statuses/beabe214833a8ef030a128b7eb5ecb8913013a50"}}}}