{"action":"created","comment":{"url":"https://api.github.com/repos/TGAC/miso-lims/pulls/comments/123348576","pull_request_review_id":45539797,"id":123348576,"diff_hunk":"@@ -0,0 +1,86 @@\n+/*\n+ * Copyright (c) 2012. The Genome Analysis Centre, Norwich, UK\n+ * MISO project contacts: Robert Davey @ TGAC\n+ * *********************************************************************\n+ *\n+ * This file is part of MISO.\n+ *\n+ * MISO is free software: you can redistribute it and/or modify\n+ * it under the terms of the GNU General Public License as published by\n+ * the Free Software Foundation, either version 3 of the License, or\n+ * (at your option) any later version.\n+ *\n+ * MISO is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU General Public License\n+ * along with MISO.  If not, see <http://www.gnu.org/licenses/>.\n+ *\n+ * *********************************************************************\n+ */\n+\n+ListTarget.box = {\n+  name : \"Boxes\",\n+  createUrl : function(config, projectId) {\n+    return \"/miso/rest/box/dt\" + (config.boxUse ? \"/use/\" + config.boxUse : \"\");\n+  },\n+  createBulkActions : function(config, projectId) {\n+    return [];\n+  },\n+  createStaticActions : function(config, projectId) {\n+    return [ {\n+      \"name\" : \"Add\",\n+      \"handler\" : function() {\n+        window.location = '/miso/box/new';\n+      }\n+    } ];\n+  },\n+  createColumns : function(config, projectId) {\n+    return [\n+        {\n+          \"sTitle\" : \"Name\",\n+          \"mData\" : \"name\",\n+          \"include\" : true,\n+          \"iSortPriority\" : 1,\n+          \"mRender\" : ListUtils.render.idHyperlink(\"box\")\n+        },\n+        {\n+          \"sTitle\" : \"Alias\",\n+          \"mData\" : \"alias\",\n+          \"include\" : true,\n+          \"iSortPriority\" : 0,\n+          \"mRender\" : ListUtils.render.idHyperlink(\"box\")\n+        },\n+        {\n+          \"sTitle\" : \"Location\",\n+          \"mData\" : \"locationBarcode\",\n+          \"include\" : true,\n+          \"iSortPriority\" : 0\n+        },\n+        {\n+          \"sTitle\" : \"Items/Capacity\",\n+          \"mData\" : \"items.length\",\n+          \"include\" : true,\n+          \"iSortPriority\" : 0,\n+          \"mRender\" : function(data, type, full) {\n+            return full.items.length + \"/\" + (full.rows * full.cols);\n+          }\n+        },\n+        {\n+          \"sTitle\" : \"Size\",\n+          \"mData\" : \"sizeId\",\n+          \"include\" : true,\n+          \"iSortPriority\" : 0,\n+          \"mRender\" : ListUtils.render.textFromId(Constants.boxSizes,\n+              'rowsByColumns')\n+        }, {\n+          \"sTitle\" : \"Use\",","path":"miso-web/src/main/webapp/scripts/list_box.js","position":79,"original_position":79,"commit_id":"e91093dcc8e423dc28b4ad9d50858a6c53cb073a","original_commit_id":"e91093dcc8e423dc28b4ad9d50858a6c53cb073a","user":{"login":"callunity","id":8324996,"avatar_url":"https://avatars1.githubusercontent.com/u/8324996?v=3","gravatar_id":"","url":"https://api.github.com/users/callunity","html_url":"https://github.com/callunity","followers_url":"https://api.github.com/users/callunity/followers","following_url":"https://api.github.com/users/callunity/following{/other_user}","gists_url":"https://api.github.com/users/callunity/gists{/gist_id}","starred_url":"https://api.github.com/users/callunity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/callunity/subscriptions","organizations_url":"https://api.github.com/users/callunity/orgs","repos_url":"https://api.github.com/users/callunity/repos","events_url":"https://api.github.com/users/callunity/events{/privacy}","received_events_url":"https://api.github.com/users/callunity/received_events","type":"User","site_admin":false},"body":"This is now redundant since it's the same as the tab.","created_at":"2017-06-21T19:50:04Z","updated_at":"2017-06-21T19:50:21Z","html_url":"https://github.com/TGAC/miso-lims/pull/926#discussion_r123348576","pull_request_url":"https://api.github.com/repos/TGAC/miso-lims/pulls/926","_links":{"self":{"href":"https://api.github.com/repos/TGAC/miso-lims/pulls/comments/123348576"},"html":{"href":"https://github.com/TGAC/miso-lims/pull/926#discussion_r123348576"},"pull_request":{"href":"https://api.github.com/repos/TGAC/miso-lims/pulls/926"}}},"pull_request":{"url":"https://api.github.com/repos/TGAC/miso-lims/pulls/926","id":126623317,"html_url":"https://github.com/TGAC/miso-lims/pull/926","diff_url":"https://github.com/TGAC/miso-lims/pull/926.diff","patch_url":"https://github.com/TGAC/miso-lims/pull/926.patch","issue_url":"https://api.github.com/repos/TGAC/miso-lims/issues/926","number":926,"state":"open","locked":false,"title":"Move box methods to a separate service and change list pages to new u…","user":{"login":"apmasell","id":272423,"avatar_url":"https://avatars1.githubusercontent.com/u/272423?v=3","gravatar_id":"","url":"https://api.github.com/users/apmasell","html_url":"https://github.com/apmasell","followers_url":"https://api.github.com/users/apmasell/followers","following_url":"https://api.github.com/users/apmasell/following{/other_user}","gists_url":"https://api.github.com/users/apmasell/gists{/gist_id}","starred_url":"https://api.github.com/users/apmasell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apmasell/subscriptions","organizations_url":"https://api.github.com/users/apmasell/orgs","repos_url":"https://api.github.com/users/apmasell/repos","events_url":"https://api.github.com/users/apmasell/events{/privacy}","received_events_url":"https://api.github.com/users/apmasell/received_events","type":"User","site_admin":false},"body":"…tilities","created_at":"2017-06-20T20:33:25Z","updated_at":"2017-06-21T19:50:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"84530f6574f12e726994e9eb7bb858be82cf7b43","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/TGAC/miso-lims/pulls/926/commits","review_comments_url":"https://api.github.com/repos/TGAC/miso-lims/pulls/926/comments","review_comment_url":"https://api.github.com/repos/TGAC/miso-lims/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TGAC/miso-lims/issues/926/comments","statuses_url":"https://api.github.com/repos/TGAC/miso-lims/statuses/e91093dcc8e423dc28b4ad9d50858a6c53cb073a","head":{"label":"oicr-gsi:list_boxes","ref":"list_boxes","sha":"e91093dcc8e423dc28b4ad9d50858a6c53cb073a","user":{"login":"oicr-gsi","id":4701585,"avatar_url":"https://avatars3.githubusercontent.com/u/4701585?v=3","gravatar_id":"","url":"https://api.github.com/users/oicr-gsi","html_url":"https://github.com/oicr-gsi","followers_url":"https://api.github.com/users/oicr-gsi/followers","following_url":"https://api.github.com/users/oicr-gsi/following{/other_user}","gists_url":"https://api.github.com/users/oicr-gsi/gists{/gist_id}","starred_url":"https://api.github.com/users/oicr-gsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oicr-gsi/subscriptions","organizations_url":"https://api.github.com/users/oicr-gsi/orgs","repos_url":"https://api.github.com/users/oicr-gsi/repos","events_url":"https://api.github.com/users/oicr-gsi/events{/privacy}","received_events_url":"https://api.github.com/users/oicr-gsi/received_events","type":"Organization","site_admin":false},"repo":{"id":37474147,"name":"miso-lims","full_name":"oicr-gsi/miso-lims","owner":{"login":"oicr-gsi","id":4701585,"avatar_url":"https://avatars3.githubusercontent.com/u/4701585?v=3","gravatar_id":"","url":"https://api.github.com/users/oicr-gsi","html_url":"https://github.com/oicr-gsi","followers_url":"https://api.github.com/users/oicr-gsi/followers","following_url":"https://api.github.com/users/oicr-gsi/following{/other_user}","gists_url":"https://api.github.com/users/oicr-gsi/gists{/gist_id}","starred_url":"https://api.github.com/users/oicr-gsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oicr-gsi/subscriptions","organizations_url":"https://api.github.com/users/oicr-gsi/orgs","repos_url":"https://api.github.com/users/oicr-gsi/repos","events_url":"https://api.github.com/users/oicr-gsi/events{/privacy}","received_events_url":"https://api.github.com/users/oicr-gsi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/oicr-gsi/miso-lims","description":"MISO: An open-source LIMS for NGS sequencing centres, now with detailed samples","fork":true,"url":"https://api.github.com/repos/oicr-gsi/miso-lims","forks_url":"https://api.github.com/repos/oicr-gsi/miso-lims/forks","keys_url":"https://api.github.com/repos/oicr-gsi/miso-lims/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oicr-gsi/miso-lims/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oicr-gsi/miso-lims/teams","hooks_url":"https://api.github.com/repos/oicr-gsi/miso-lims/hooks","issue_events_url":"https://api.github.com/repos/oicr-gsi/miso-lims/issues/events{/number}","events_url":"https://api.github.com/repos/oicr-gsi/miso-lims/events","assignees_url":"https://api.github.com/repos/oicr-gsi/miso-lims/assignees{/user}","branches_url":"https://api.github.com/repos/oicr-gsi/miso-lims/branches{/branch}","tags_url":"https://api.github.com/repos/oicr-gsi/miso-lims/tags","blobs_url":"https://api.github.com/repos/oicr-gsi/miso-lims/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oicr-gsi/miso-lims/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oicr-gsi/miso-lims/git/refs{/sha}","trees_url":"https://api.github.com/repos/oicr-gsi/miso-lims/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oicr-gsi/miso-lims/statuses/{sha}","languages_url":"https://api.github.com/repos/oicr-gsi/miso-lims/languages","stargazers_url":"https://api.github.com/repos/oicr-gsi/miso-lims/stargazers","contributors_url":"https://api.github.com/repos/oicr-gsi/miso-lims/contributors","subscribers_url":"https://api.github.com/repos/oicr-gsi/miso-lims/subscribers","subscription_url":"https://api.github.com/repos/oicr-gsi/miso-lims/subscription","commits_url":"https://api.github.com/repos/oicr-gsi/miso-lims/commits{/sha}","git_commits_url":"https://api.github.com/repos/oicr-gsi/miso-lims/git/commits{/sha}","comments_url":"https://api.github.com/repos/oicr-gsi/miso-lims/comments{/number}","issue_comment_url":"https://api.github.com/repos/oicr-gsi/miso-lims/issues/comments{/number}","contents_url":"https://api.github.com/repos/oicr-gsi/miso-lims/contents/{+path}","compare_url":"https://api.github.com/repos/oicr-gsi/miso-lims/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oicr-gsi/miso-lims/merges","archive_url":"https://api.github.com/repos/oicr-gsi/miso-lims/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oicr-gsi/miso-lims/downloads","issues_url":"https://api.github.com/repos/oicr-gsi/miso-lims/issues{/number}","pulls_url":"https://api.github.com/repos/oicr-gsi/miso-lims/pulls{/number}","milestones_url":"https://api.github.com/repos/oicr-gsi/miso-lims/milestones{/number}","notifications_url":"https://api.github.com/repos/oicr-gsi/miso-lims/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oicr-gsi/miso-lims/labels{/name}","releases_url":"https://api.github.com/repos/oicr-gsi/miso-lims/releases{/id}","deployments_url":"https://api.github.com/repos/oicr-gsi/miso-lims/deployments","created_at":"2015-06-15T15:35:57Z","updated_at":"2017-04-20T00:27:27Z","pushed_at":"2017-06-21T18:48:07Z","git_url":"git://github.com/oicr-gsi/miso-lims.git","ssh_url":"git@github.com:oicr-gsi/miso-lims.git","clone_url":"https://github.com/oicr-gsi/miso-lims.git","svn_url":"https://github.com/oicr-gsi/miso-lims","homepage":"http://tgac.github.io/miso-lims/","size":90470,"stargazers_count":7,"watchers_count":7,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":0,"forks":6,"open_issues":0,"watchers":7,"default_branch":"oicr"}},"base":{"label":"TGAC:develop","ref":"develop","sha":"fa50ca7fbc3733fbff6bfe3805ba02968b115f1e","user":{"login":"TGAC","id":1872319,"avatar_url":"https://avatars1.githubusercontent.com/u/1872319?v=3","gravatar_id":"","url":"https://api.github.com/users/TGAC","html_url":"https://github.com/TGAC","followers_url":"https://api.github.com/users/TGAC/followers","following_url":"https://api.github.com/users/TGAC/following{/other_user}","gists_url":"https://api.github.com/users/TGAC/gists{/gist_id}","starred_url":"https://api.github.com/users/TGAC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TGAC/subscriptions","organizations_url":"https://api.github.com/users/TGAC/orgs","repos_url":"https://api.github.com/users/TGAC/repos","events_url":"https://api.github.com/users/TGAC/events{/privacy}","received_events_url":"https://api.github.com/users/TGAC/received_events","type":"Organization","site_admin":false},"repo":{"id":4726428,"name":"miso-lims","full_name":"TGAC/miso-lims","owner":{"login":"TGAC","id":1872319,"avatar_url":"https://avatars1.githubusercontent.com/u/1872319?v=3","gravatar_id":"","url":"https://api.github.com/users/TGAC","html_url":"https://github.com/TGAC","followers_url":"https://api.github.com/users/TGAC/followers","following_url":"https://api.github.com/users/TGAC/following{/other_user}","gists_url":"https://api.github.com/users/TGAC/gists{/gist_id}","starred_url":"https://api.github.com/users/TGAC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TGAC/subscriptions","organizations_url":"https://api.github.com/users/TGAC/orgs","repos_url":"https://api.github.com/users/TGAC/repos","events_url":"https://api.github.com/users/TGAC/events{/privacy}","received_events_url":"https://api.github.com/users/TGAC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TGAC/miso-lims","description":"MISO: An open-source LIMS for NGS sequencing centres","fork":false,"url":"https://api.github.com/repos/TGAC/miso-lims","forks_url":"https://api.github.com/repos/TGAC/miso-lims/forks","keys_url":"https://api.github.com/repos/TGAC/miso-lims/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TGAC/miso-lims/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TGAC/miso-lims/teams","hooks_url":"https://api.github.com/repos/TGAC/miso-lims/hooks","issue_events_url":"https://api.github.com/repos/TGAC/miso-lims/issues/events{/number}","events_url":"https://api.github.com/repos/TGAC/miso-lims/events","assignees_url":"https://api.github.com/repos/TGAC/miso-lims/assignees{/user}","branches_url":"https://api.github.com/repos/TGAC/miso-lims/branches{/branch}","tags_url":"https://api.github.com/repos/TGAC/miso-lims/tags","blobs_url":"https://api.github.com/repos/TGAC/miso-lims/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TGAC/miso-lims/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TGAC/miso-lims/git/refs{/sha}","trees_url":"https://api.github.com/repos/TGAC/miso-lims/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TGAC/miso-lims/statuses/{sha}","languages_url":"https://api.github.com/repos/TGAC/miso-lims/languages","stargazers_url":"https://api.github.com/repos/TGAC/miso-lims/stargazers","contributors_url":"https://api.github.com/repos/TGAC/miso-lims/contributors","subscribers_url":"https://api.github.com/repos/TGAC/miso-lims/subscribers","subscription_url":"https://api.github.com/repos/TGAC/miso-lims/subscription","commits_url":"https://api.github.com/repos/TGAC/miso-lims/commits{/sha}","git_commits_url":"https://api.github.com/repos/TGAC/miso-lims/git/commits{/sha}","comments_url":"https://api.github.com/repos/TGAC/miso-lims/comments{/number}","issue_comment_url":"https://api.github.com/repos/TGAC/miso-lims/issues/comments{/number}","contents_url":"https://api.github.com/repos/TGAC/miso-lims/contents/{+path}","compare_url":"https://api.github.com/repos/TGAC/miso-lims/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TGAC/miso-lims/merges","archive_url":"https://api.github.com/repos/TGAC/miso-lims/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TGAC/miso-lims/downloads","issues_url":"https://api.github.com/repos/TGAC/miso-lims/issues{/number}","pulls_url":"https://api.github.com/repos/TGAC/miso-lims/pulls{/number}","milestones_url":"https://api.github.com/repos/TGAC/miso-lims/milestones{/number}","notifications_url":"https://api.github.com/repos/TGAC/miso-lims/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TGAC/miso-lims/labels{/name}","releases_url":"https://api.github.com/repos/TGAC/miso-lims/releases{/id}","deployments_url":"https://api.github.com/repos/TGAC/miso-lims/deployments","created_at":"2012-06-20T13:17:28Z","updated_at":"2017-05-31T19:01:17Z","pushed_at":"2017-06-21T18:48:08Z","git_url":"git://github.com/TGAC/miso-lims.git","ssh_url":"git@github.com:TGAC/miso-lims.git","clone_url":"https://github.com/TGAC/miso-lims.git","svn_url":"https://github.com/TGAC/miso-lims","homepage":"http://tgac.github.io/miso-lims/","size":37410,"stargazers_count":57,"watchers_count":57,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":28,"mirror_url":null,"open_issues_count":13,"forks":28,"open_issues":13,"watchers":57,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/TGAC/miso-lims/pulls/926"},"html":{"href":"https://github.com/TGAC/miso-lims/pull/926"},"issue":{"href":"https://api.github.com/repos/TGAC/miso-lims/issues/926"},"comments":{"href":"https://api.github.com/repos/TGAC/miso-lims/issues/926/comments"},"review_comments":{"href":"https://api.github.com/repos/TGAC/miso-lims/pulls/926/comments"},"review_comment":{"href":"https://api.github.com/repos/TGAC/miso-lims/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TGAC/miso-lims/pulls/926/commits"},"statuses":{"href":"https://api.github.com/repos/TGAC/miso-lims/statuses/e91093dcc8e423dc28b4ad9d50858a6c53cb073a"}}}}
{"actor":{"display_login":"callunity"}}