{"action":"created","comment":{"url":"https://api.github.com/repos/diging/quadriga/pulls/comments/56905001","id":56905001,"diff_hunk":"@@ -32,270 +30,202 @@\n @Controller\r\n public class ConceptCollectionWorkspaceController {\r\n \r\n-\t@Autowired\r\n-\tprivate IConceptCollectionManager conceptCollectionManager;\r\n+    @Autowired\r\n+    private IWorkspaceManager wsManager;\r\n \r\n-\t@Autowired\r\n-\tprivate IWorkspaceManager wsManager;\r\n-\t\r\n-\t@Autowired\r\n-\tprivate IWorkspaceCCManager workspaceCCManager;\r\n+    @Autowired\r\n+    private IWorkspaceCCManager workspaceCCManager;\r\n \r\n-\tprivate static final Logger logger = LoggerFactory\r\n-\t\t\t.getLogger(ConceptCollectionWorkspaceController.class);\r\n+    private static final Logger logger = LoggerFactory.getLogger(ConceptCollectionWorkspaceController.class);\r\n \r\n-\t/**\r\n-\t * Retrieves the concept collections associated with the given workspace\r\n-\t * @param workspaceId\r\n-\t * @param model\r\n-\t * @return String - Url to redirect the page on success or failure\r\n-\t * @throws QuadrigaStorageException\r\n-\t * @throws QuadrigaAccessException\r\n-\t */\r\n-\t@AccessPolicies({ @ElementAccessPolicy(type = CheckedElementType.WORKSPACE,paramIndex = 1, userRole = {RoleNames.ROLE_WORKSPACE_COLLABORATOR_ADMIN} )})\r\n-\t@RequestMapping(value = \"auth/workbench/workspace/{workspaceid}/conceptcollections\", method = RequestMethod.GET)\r\n-\tpublic String listProjectConceptCollection(@PathVariable(\"workspaceid\") String workspaceId, Model model) throws QuadrigaStorageException, QuadrigaAccessException {\r\n-\t\tUserDetails user = (UserDetails) SecurityContextHolder.getContext()\r\n-\t\t\t\t.getAuthentication().getPrincipal();\r\n-\t\tString userId = user.getUsername();\r\n-\t\tlogger.info(\"Concept collection list is empty buddy\");\r\n-\t\t//List<IConceptCollection> conceptCollectionList = null;\r\n-\t\tList<IWorkspaceConceptCollection> conceptCollectionList = null;\r\n-\t\t\r\n-\t\ttry {\r\n-\t\t\tconceptCollectionList = workspaceCCManager.listWorkspaceCC(workspaceId, userId);\r\n-\t\t} catch (QuadrigaStorageException e) {\r\n-\t\t\tlogger.error(\"Issue while accessing DB\",e);\r\n-\t\t}\r\n-\t\tif(conceptCollectionList == null){\r\n-\t\t\tlogger.info(\"Concept collection list is empty buddy\");\r\n-\t\t}\r\n-\t\tIterator<IWorkspaceConceptCollection> itr = conceptCollectionList.iterator(); \r\n-\t\twhile(itr.hasNext()){\r\n-\t\t\tIWorkspaceConceptCollection con = itr.next();\r\n-\t\t\tlogger.info(\" \"+con.getConceptCollection().getConceptCollectionName());\r\n-\t\t}\r\n-\t\tmodel.addAttribute(\"conceptCollectionList\", conceptCollectionList);\r\n-\t\tIWorkSpace workspace = wsManager.getWorkspaceDetails(workspaceId,userId);\r\n-\t\tmodel.addAttribute(\"workspacedetails\", workspace);\r\n-\t\tmodel.addAttribute(\"workspaceId\", workspaceId);\r\n-\t\treturn \"auth/workbench/workspace/conceptcollections\";\r\n-\t}\r\n+    /**\r\n+     * Retrieves the concept collections associated with the given workspace\r\n+     * \r\n+     * @param workspaceId\r\n+     * @param model\r\n+     * @return String - Url to redirect the page on success or failure\r\n+     * @throws QuadrigaStorageException\r\n+     * @throws QuadrigaAccessException\r\n+     */\r\n+    @AccessPolicies({ @ElementAccessPolicy(type = CheckedElementType.WORKSPACE, paramIndex = 1, userRole = {\r\n+            RoleNames.ROLE_WORKSPACE_COLLABORATOR_ADMIN }) })\r\n+    @RequestMapping(value = \"auth/workbench/workspace/{workspaceid}/conceptcollections\", method = RequestMethod.GET)\r\n+    public String listProjectConceptCollection(@PathVariable(\"workspaceid\") String workspaceId, Model model,\r\n+            Principal principal) throws QuadrigaStorageException, QuadrigaAccessException {\r\n+        String userId = principal.getName();\r\n+        // List<IConceptCollection> conceptCollectionList = null;\r\n+        List<IWorkspaceConceptCollection> conceptCollectionList = null;\r\n \r\n-\t\r\n-\t/**\r\n-\t * Retrieve the concept collections which are not associated to the given workspace\r\n-\t * @param workspaceId\r\n-\t * @param model\r\n-\t * @return String - String - Url to redirect the page on success or failure\r\n-\t * @throws QuadrigaStorageException\r\n-\t * @throws QuadrigaAccessException\r\n-\t */\r\n-\t@AccessPolicies({ @ElementAccessPolicy(type = CheckedElementType.WORKSPACE,paramIndex = 1, userRole = {RoleNames.ROLE_WORKSPACE_COLLABORATOR_ADMIN} )})\r\n-\t@RequestMapping(value = \"auth/workbench/workspace/{workspaceid}/addconceptcollection\", method = RequestMethod.GET)\r\n-\tpublic String addWorkspaceConceptCollection(\r\n-\t\t\t@PathVariable(\"workspaceid\") String workspaceId, Model model) \r\n-\t\t\t\t\tthrows QuadrigaStorageException, QuadrigaAccessException\r\n-\t{\r\n-\t\ttry {\r\n-\t\t\tUserDetails user = (UserDetails) SecurityContextHolder.getContext()\r\n-\t\t\t\t\t.getAuthentication().getPrincipal();\r\n-\t\t\tString userId = user.getUsername();\r\n+        conceptCollectionList = workspaceCCManager.listWorkspaceCC(workspaceId, userId);\r\n+        if (conceptCollectionList == null) {\r\n+            logger.info(\"Concept collection list is empty buddy\");\r\n+        }\r\n+        model.addAttribute(\"conceptCollectionList\", conceptCollectionList);\r\n+        IWorkSpace workspace = wsManager.getWorkspaceDetails(workspaceId, userId);\r\n+        model.addAttribute(\"workspacedetails\", workspace);\r\n+        model.addAttribute(\"workspaceId\", workspaceId);\r\n+        return \"auth/workbench/workspace/conceptcollections\";\r\n+    }\r\n \r\n-\t\t\tList<IConceptCollection> conceptCollectionList = null;\r\n-\t\t\ttry {\r\n-\t\t\t\tconceptCollectionList = workspaceCCManager.getNonAssociatedWorkspaceConcepts(workspaceId, userId);\r\n-\t\t\t} catch (QuadrigaStorageException e) {\r\n-\t\t\t\tlogger.error(\"Issue while accessing DB\",e);\r\n-\t\t\t}\r\n-\t\t\tif (conceptCollectionList == null) {\r\n-\t\t\t\tlogger.info(\"conceptCollectionList list is empty\");\r\n-\t\t\t}\r\n-\t\t\tIterator<IConceptCollection> I = conceptCollectionList.iterator(); \r\n-\t\t\twhile(I.hasNext()){\r\n-\t\t\t\tIConceptCollection con = I.next();\r\n-\t\t\t\tlogger.info(\" \"+con.getConceptCollectionName());\r\n-\t\t\t}\r\n-\t\t\tmodel.addAttribute(\"conceptCollectionList\", conceptCollectionList);\r\n-\t\t\tIWorkSpace workspace = wsManager.getWorkspaceDetails(workspaceId,userId);\r\n-\t\t\tmodel.addAttribute(\"workspacedetails\", workspace);\r\n-\t\t\tmodel.addAttribute(\"workspaceId\", workspaceId);\r\n-\t\t\tmodel.addAttribute(\"userId\", userId);\r\n-\t\t} catch (Exception e) {\r\n-\t\t\tlogger.error(\" ----\" + e.getMessage());\r\n-\t\t}\r\n-\t\treturn \"auth/workbench/workspace/addconceptcollections\";\r\n-\t}\r\n-\t\r\n-\t/**\r\n-\t * Associate the concept collection with the given workspace\r\n-\t * @param req\r\n-\t * @param workspaceId\r\n-\t * @param model\r\n-\t * @return String - URL to direct the page on success or failure\r\n-\t * @throws QuadrigaStorageException\r\n-\t * @throws QuadrigaAccessException\r\n-\t */\r\n-\t@AccessPolicies({ @ElementAccessPolicy(type = CheckedElementType.WORKSPACE,paramIndex = 2, userRole = {RoleNames.ROLE_WORKSPACE_COLLABORATOR_ADMIN} )})\r\n-\t@RequestMapping(value = \"auth/workbench/workspace/{workspaceid}/addconceptcollection\", method = RequestMethod.POST)\r\n-\tpublic String addWorkspaceConceptCollection(HttpServletRequest req,\r\n-\t\t\t@PathVariable(\"workspaceid\") String workspaceId, Model model) throws QuadrigaStorageException, QuadrigaAccessException {\r\n-\t\tString msg = \"\";\r\n-\t\tint flag=0;\r\n-\t\tUserDetails user = (UserDetails) SecurityContextHolder.getContext()\r\n-\t\t\t\t.getAuthentication().getPrincipal();\r\n-\t\tString userId = user.getUsername();\r\n+    /**\r\n+     * Retrieve the concept collections which are not associated to the given\r\n+     * workspace\r\n+     * \r\n+     * @param workspaceId\r\n+     * @param model\r\n+     * @return String - String - Url to redirect the page on success or failure\r\n+     * @throws QuadrigaStorageException\r\n+     * @throws QuadrigaAccessException\r\n+     */\r\n+    @AccessPolicies({ @ElementAccessPolicy(type = CheckedElementType.WORKSPACE, paramIndex = 1, userRole = {\r\n+            RoleNames.ROLE_WORKSPACE_COLLABORATOR_ADMIN }) })\r\n+    @RequestMapping(value = \"auth/workbench/workspace/{workspaceid}/addconceptcollection\", method = RequestMethod.GET)\r\n+    public String addWorkspaceConceptCollection(@PathVariable(\"workspaceid\") String workspaceId, Model model,\r\n+            Principal principal) throws QuadrigaStorageException, QuadrigaAccessException {\r\n+        String userId = principal.getName();\r\n \r\n-\t\tString[] values = req.getParameterValues(\"selected\");\r\n-\t\tif (values == null) {\r\n-\t\t\tmodel.addAttribute(\"deletesuccess\", 0);\r\n-\t\t\tList<IConceptCollection> conceptCollectionList = null;\r\n-\t\t\ttry {\r\n-\t\t\t\tconceptCollectionList = workspaceCCManager.getNonAssociatedWorkspaceConcepts(workspaceId, userId);\r\n-\t\t\t} catch (QuadrigaStorageException e) {\r\n-\t\t\t\tlogger.error(\"Issue while accessing DB\",e);\r\n-\t\t\t}\r\n-\t\t\tif(conceptCollectionList == null){\r\n-\t\t\t\tlogger.info(\"Concept Collection list is empty buddy\");\r\n-\t\t\t}\r\n-\t\t\tmodel.addAttribute(\"conceptCollectionList\", conceptCollectionList);\r\n-\t\t\tIWorkSpace workspace = wsManager.getWorkspaceDetails(workspaceId,userId);\r\n-\t\t\tmodel.addAttribute(\"workspacedetails\", workspace);\r\n-\t\t\tmodel.addAttribute(\"workspaceId\", workspaceId);\r\n-\t\t\treturn \"auth/workbench/workspace/conceptcollections\";\r\n-\t\t} else {\r\n-\t\t\tfor (int i = 0; i < values.length; i++) {\r\n-\t\t\t\tlogger.info(\"values \" + values[i]);\r\n-\t\t\t\ttry {\r\n-\t\t\t\t\tmsg=workspaceCCManager.addWorkspaceCC(workspaceId, values[i], userId);\r\n-\t\t\t\t\tif(!msg.equals(\"\")){\r\n-\t\t\t\t\t\tflag=1;\r\n-\t\t\t\t\t}\r\n-\t\t\t\t} catch (Exception e) {\r\n-\t\t\t\t\tlogger.error(\"Issue while accessing DB\",e);\r\n-\t\t\t\t}\r\n-\t\t\t}\r\n-\t\t}\r\n-\t\tif(flag==0){\r\n-\t\t\tmodel.addAttribute(\"success\", 1);\r\n-\t\t}else{\r\n-\t\t\tmodel.addAttribute(\"success\", 0);\r\n-\t\t}\r\n-\t\tList<IWorkspaceConceptCollection> conceptCollectionList = null;\r\n-\t\ttry {\r\n-\t\t\tconceptCollectionList = workspaceCCManager.listWorkspaceCC(workspaceId, userId);\r\n-\t\t} catch (QuadrigaStorageException e) {\r\n-\t\t\tlogger.error(\"Issue while accessing DB\",e);\r\n-\t\t}\r\n-\t\tif(conceptCollectionList == null){\r\n-\t\t\tlogger.info(\"conceptCollectionList list is empty buddy\");\r\n-\t\t}\r\n-\t\tmodel.addAttribute(\"conceptCollectionList\", conceptCollectionList);\r\n-\t\tIWorkSpace workspace = wsManager.getWorkspaceDetails(workspaceId,userId);\r\n-\t\tmodel.addAttribute(\"workspacedetails\", workspace);\r\n-\t\tmodel.addAttribute(\"workspaceId\", workspaceId);\r\n-\t\treturn \"auth/workbench/workspace/conceptcollections\";\r\n-\t}\r\n+        List<IConceptCollection> conceptCollectionList = null;\r\n+        conceptCollectionList = workspaceCCManager.getNonAssociatedWorkspaceConcepts(workspaceId, userId);\r\n+        if (conceptCollectionList == null) {\r\n+            logger.info(\"conceptCollectionList list is empty\");\r\n+        }\r\n+        model.addAttribute(\"conceptCollectionList\", conceptCollectionList);\r\n+        IWorkSpace workspace = wsManager.getWorkspaceDetails(workspaceId, userId);\r\n+        model.addAttribute(\"workspacedetails\", workspace);\r\n+        model.addAttribute(\"workspaceId\", workspaceId);\r\n+        model.addAttribute(\"userId\", userId);\r\n+        return \"auth/workbench/workspace/addconceptcollections\";\r\n+    }\r\n \r\n+    /**\r\n+     * Associate the concept collection with the given workspace\r\n+     * \r\n+     * @param req\r\n+     * @param workspaceId\r\n+     * @param model\r\n+     * @return String - URL to direct the page on success or failure\r\n+     * @throws QuadrigaStorageException\r\n+     * @throws QuadrigaAccessException\r\n+     */\r\n+    @AccessPolicies({ @ElementAccessPolicy(type = CheckedElementType.WORKSPACE, paramIndex = 2, userRole = {\r\n+            RoleNames.ROLE_WORKSPACE_COLLABORATOR_ADMIN }) })\r\n+    @RequestMapping(value = \"auth/workbench/workspace/{workspaceid}/addconceptcollection\", method = RequestMethod.POST)\r\n+    public String addWorkspaceConceptCollection(HttpServletRequest req, @PathVariable(\"workspaceid\") String workspaceId,\r\n+            Model model, RedirectAttributes attr, Principal principal)\r\n+                    throws QuadrigaStorageException, QuadrigaAccessException {\r\n+        String msg = \"\";\r\n+        int flag = 0;\r\n+        String userId = principal.getName();\r\n \r\n-\t/**\r\n-\t * Retrieve the concept collection associated to the given workspace for deletion\r\n-\t * @param workspaceId\r\n-\t * @param model\r\n-\t * @return String - URL to redirect on success or failure\r\n-\t * @throws QuadrigaStorageException\r\n-\t * @throws QuadrigaAccessException\r\n-\t */\r\n-\t@AccessPolicies({ @ElementAccessPolicy(type = CheckedElementType.WORKSPACE,paramIndex = 1, userRole = {RoleNames.ROLE_WORKSPACE_COLLABORATOR_ADMIN} )})\r\n-\t@RequestMapping(value = \"auth/workbench/workspace/{workspaceid}/deleteconceptcollections\", method = RequestMethod.GET)\r\n-\tpublic String deleteWorkspaceConceptCollection(@PathVariable(\"workspaceid\") String workspaceId, Model model) \r\n-\t\t\tthrows QuadrigaStorageException, QuadrigaAccessException {\r\n-\t\tUserDetails user = (UserDetails) SecurityContextHolder.getContext()\r\n-\t\t\t\t.getAuthentication().getPrincipal();\r\n-\t\tString userId = user.getUsername();\r\n-\t\t\r\n-\t\tList<IWorkspaceConceptCollection> conceptCollectionList = null;\r\n-\t\ttry {\r\n-\t\t\tconceptCollectionList = workspaceCCManager.listWorkspaceCC(workspaceId, userId);\r\n-\t\t} catch (QuadrigaStorageException e) {\r\n-\t\t\tlogger.error(\"Issue while accessing DB\",e);\r\n-\t\t}\r\n-\t\tif(conceptCollectionList == null){\r\n-\t\t\tlogger.info(\"conceptCollectionList list is empty buddy\");\r\n-\t\t}\r\n-\t\tmodel.addAttribute(\"conceptCollectionList\", conceptCollectionList);\r\n-\t\tIWorkSpace workspace = wsManager.getWorkspaceDetails(workspaceId,userId);\r\n-\t\tmodel.addAttribute(\"workspacedetails\", workspace);\r\n-\t\tmodel.addAttribute(\"projectid\", workspaceId);\r\n-\t\treturn \"auth/workbench/workspace/deleteconceptcollections\";\r\n-\t}\r\n-\t\r\n-\t/**\r\n-\t * Deletes the association of the selected concept collections from the workspace\r\n-\t * @param req\r\n-\t * @param workspaceId\r\n-\t * @param model\r\n-\t * @return String - URL to redirect on success or failure\r\n-\t * @throws QuadrigaStorageException\r\n-\t * @throws QuadrigaAccessException\r\n-\t */\r\n-\t@AccessPolicies({ @ElementAccessPolicy(type = CheckedElementType.WORKSPACE,paramIndex = 2, userRole = {RoleNames.ROLE_WORKSPACE_COLLABORATOR_ADMIN} )})\r\n-\t@RequestMapping(value = \"auth/workbench/workspace/{workspaceid}/deleteconceptcollections\", method = RequestMethod.POST)\r\n-\tpublic String deleteWorkspaceConceptCollection(HttpServletRequest req,@PathVariable(\"workspaceid\") String workspaceId, Model model)\r\n-\t\t\tthrows QuadrigaStorageException, QuadrigaAccessException {\r\n-\t\tUserDetails user = (UserDetails) SecurityContextHolder.getContext()\r\n-\t\t\t\t.getAuthentication().getPrincipal();\r\n-\t\tString userId = user.getUsername();\r\n-\t\tString msg = \"\";\r\n-\t\tint flag=0;\r\n-\t\t\r\n-\t\tString[] values = req.getParameterValues(\"selected\");\r\n-\t\tif (values == null) {\r\n-\t\t\tmodel.addAttribute(\"deletesuccess\", 0);\r\n-\t\t\tList<IWorkspaceConceptCollection> conceptCollectionList = null;\r\n-\t\t\ttry {\r\n-\t\t\t\tconceptCollectionList = workspaceCCManager.listWorkspaceCC(workspaceId, userId);\r\n-\t\t\t} catch (QuadrigaStorageException e) {\r\n-\t\t\t\tlogger.error(\"Issue while accessing DB\",e);\r\n-\t\t\t}\r\n-\t\t\tif(conceptCollectionList == null){\r\n-\t\t\t\tlogger.info(\"Concept Collection list is empty buddy\");\r\n-\t\t\t}\r\n-\t\t\tmodel.addAttribute(\"conceptCollectionList\", conceptCollectionList);\r\n-\t\t\tIWorkSpace workspace = wsManager.getWorkspaceDetails(workspaceId,userId);\r\n-\t\t\tmodel.addAttribute(\"workspacedetails\", workspace);\r\n-\t\t\tmodel.addAttribute(\"projectid\", workspaceId);\r\n-\t\t\treturn \"auth/workbench/workspace/conceptcollections\";\r\n-\t\t} else {\r\n-\t\t\tfor (int i = 0; i < values.length; i++) {\r\n-\t\t\t\ttry {\r\n-\t\t\t       workspaceCCManager.deleteWorkspaceCC(workspaceId, userId, values[i]);\r\n-\t\t\t\t} catch (QuadrigaStorageException e) {\r\n-\t\t\t\t\tlogger.error(\"Issue while accessing DB\",e);\r\n-\t\t\t\t}\r\n-\t\t\t\tif(!msg.equals(\"\")){\r\n-\t\t\t\t\tflag=1;\r\n-\t\t\t\t}\r\n-\t\t\t}\r\n-\t\t}\r\n-\t\tif(flag==0){\r\n-\t\t\tmodel.addAttribute(\"deletesuccess\", 1);\r\n-\t\t}else{\r\n-\t\t\tmodel.addAttribute(\"deletesuccess\", 0);\r\n-\t\t}\r\n-\t\tList<IWorkspaceConceptCollection> conceptCollectionList = null;\r\n-\t\ttry {\r\n-\t\t\tconceptCollectionList = workspaceCCManager.listWorkspaceCC(workspaceId, userId);\r\n-\t\t} catch (QuadrigaStorageException e) {\r\n-\t\t\tlogger.error(\"Issue while accessing DB\",e);\r\n-\t\t}\r\n-\t\tif(conceptCollectionList == null){\r\n-\t\t\tlogger.info(\"Dictionary list is empty buddy\");\r\n-\t\t}\r\n-\t\tmodel.addAttribute(\"conceptCollectionList\", conceptCollectionList);\r\n-\t\tIWorkSpace workspace = wsManager.getWorkspaceDetails(workspaceId,userId);\r\n-\t\tmodel.addAttribute(\"workspacedetails\", workspace);\r\n-\t\tmodel.addAttribute(\"projectid\", workspaceId);\r\n-\t\treturn \"auth/workbench/workspace/conceptcollections\";\r\n-\t}\r\n+        String[] values = req.getParameterValues(\"selected\");\r\n+        if (values == null) {\r\n+            attr.addFlashAttribute(\"show_error_alert\", true);\r\n+            attr.addFlashAttribute(\"error_alert_msg\", \"Please select a Concept Collection\");\r\n+            return \"redirect:/auth/workbench/workspace/\" + workspaceId + \"/addconceptcollection\";\r\n+        }\r\n+        for (int i = 0; i < values.length; i++) {\r\n+            msg = workspaceCCManager.addWorkspaceCC(workspaceId, values[i], userId);\r\n+            if (!msg.equals(\"\")) {\r\n+                flag = 1;\r\n+            }\r\n+        }\r\n+        if (flag == 0) {\r\n+            attr.addFlashAttribute(\"show_success_alert\", true);\r\n+            attr.addFlashAttribute(\"success_alert_msg\", \"Concept Collection added to workspace successfully\");\r","path":"Quadriga/src/main/java/edu/asu/spring/quadriga/web/workspace/ConceptCollectionWorkspaceController.java","position":394,"original_position":394,"commit_id":"df80b3e1b5895c815970eeb6ecafb59e1c07f340","original_commit_id":"df80b3e1b5895c815970eeb6ecafb59e1c07f340","user":{"login":"jdamerow","id":8881141,"avatar_url":"https://avatars.githubusercontent.com/u/8881141?v=3","gravatar_id":"","url":"https://api.github.com/users/jdamerow","html_url":"https://github.com/jdamerow","followers_url":"https://api.github.com/users/jdamerow/followers","following_url":"https://api.github.com/users/jdamerow/following{/other_user}","gists_url":"https://api.github.com/users/jdamerow/gists{/gist_id}","starred_url":"https://api.github.com/users/jdamerow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdamerow/subscriptions","organizations_url":"https://api.github.com/users/jdamerow/orgs","repos_url":"https://api.github.com/users/jdamerow/repos","events_url":"https://api.github.com/users/jdamerow/events{/privacy}","received_events_url":"https://api.github.com/users/jdamerow/received_events","type":"User","site_admin":false},"body":"add period to the end of the sentence.","created_at":"2016-03-21T21:57:43Z","updated_at":"2016-03-21T21:57:43Z","html_url":"https://github.com/diging/quadriga/pull/163#discussion_r56905001","pull_request_url":"https://api.github.com/repos/diging/quadriga/pulls/163","_links":{"self":{"href":"https://api.github.com/repos/diging/quadriga/pulls/comments/56905001"},"html":{"href":"https://github.com/diging/quadriga/pull/163#discussion_r56905001"},"pull_request":{"href":"https://api.github.com/repos/diging/quadriga/pulls/163"}}},"pull_request":{"url":"https://api.github.com/repos/diging/quadriga/pulls/163","id":63599971,"html_url":"https://github.com/diging/quadriga/pull/163","diff_url":"https://github.com/diging/quadriga/pull/163.diff","patch_url":"https://github.com/diging/quadriga/pull/163.patch","issue_url":"https://api.github.com/repos/diging/quadriga/issues/163","number":163,"state":"open","locked":false,"title":"Bug/quad 129","user":{"login":"suprajkolluri","id":14131064,"avatar_url":"https://avatars.githubusercontent.com/u/14131064?v=3","gravatar_id":"","url":"https://api.github.com/users/suprajkolluri","html_url":"https://github.com/suprajkolluri","followers_url":"https://api.github.com/users/suprajkolluri/followers","following_url":"https://api.github.com/users/suprajkolluri/following{/other_user}","gists_url":"https://api.github.com/users/suprajkolluri/gists{/gist_id}","starred_url":"https://api.github.com/users/suprajkolluri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suprajkolluri/subscriptions","organizations_url":"https://api.github.com/users/suprajkolluri/orgs","repos_url":"https://api.github.com/users/suprajkolluri/repos","events_url":"https://api.github.com/users/suprajkolluri/events{/privacy}","received_events_url":"https://api.github.com/users/suprajkolluri/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-21T17:21:58Z","updated_at":"2016-03-21T21:57:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"94fa2da63ce6f32899624466f163ea9ac4066218","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/diging/quadriga/pulls/163/commits","review_comments_url":"https://api.github.com/repos/diging/quadriga/pulls/163/comments","review_comment_url":"https://api.github.com/repos/diging/quadriga/pulls/comments{/number}","comments_url":"https://api.github.com/repos/diging/quadriga/issues/163/comments","statuses_url":"https://api.github.com/repos/diging/quadriga/statuses/df80b3e1b5895c815970eeb6ecafb59e1c07f340","head":{"label":"diging:bug/QUAD-129","ref":"bug/QUAD-129","sha":"df80b3e1b5895c815970eeb6ecafb59e1c07f340","user":{"login":"diging","id":5402168,"avatar_url":"https://avatars.githubusercontent.com/u/5402168?v=3","gravatar_id":"","url":"https://api.github.com/users/diging","html_url":"https://github.com/diging","followers_url":"https://api.github.com/users/diging/followers","following_url":"https://api.github.com/users/diging/following{/other_user}","gists_url":"https://api.github.com/users/diging/gists{/gist_id}","starred_url":"https://api.github.com/users/diging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diging/subscriptions","organizations_url":"https://api.github.com/users/diging/orgs","repos_url":"https://api.github.com/users/diging/repos","events_url":"https://api.github.com/users/diging/events{/privacy}","received_events_url":"https://api.github.com/users/diging/received_events","type":"Organization","site_admin":false},"repo":{"id":32819066,"name":"quadriga","full_name":"diging/quadriga","owner":{"login":"diging","id":5402168,"avatar_url":"https://avatars.githubusercontent.com/u/5402168?v=3","gravatar_id":"","url":"https://api.github.com/users/diging","html_url":"https://github.com/diging","followers_url":"https://api.github.com/users/diging/followers","following_url":"https://api.github.com/users/diging/following{/other_user}","gists_url":"https://api.github.com/users/diging/gists{/gist_id}","starred_url":"https://api.github.com/users/diging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diging/subscriptions","organizations_url":"https://api.github.com/users/diging/orgs","repos_url":"https://api.github.com/users/diging/repos","events_url":"https://api.github.com/users/diging/events{/privacy}","received_events_url":"https://api.github.com/users/diging/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/diging/quadriga","description":"","fork":false,"url":"https://api.github.com/repos/diging/quadriga","forks_url":"https://api.github.com/repos/diging/quadriga/forks","keys_url":"https://api.github.com/repos/diging/quadriga/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diging/quadriga/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diging/quadriga/teams","hooks_url":"https://api.github.com/repos/diging/quadriga/hooks","issue_events_url":"https://api.github.com/repos/diging/quadriga/issues/events{/number}","events_url":"https://api.github.com/repos/diging/quadriga/events","assignees_url":"https://api.github.com/repos/diging/quadriga/assignees{/user}","branches_url":"https://api.github.com/repos/diging/quadriga/branches{/branch}","tags_url":"https://api.github.com/repos/diging/quadriga/tags","blobs_url":"https://api.github.com/repos/diging/quadriga/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diging/quadriga/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diging/quadriga/git/refs{/sha}","trees_url":"https://api.github.com/repos/diging/quadriga/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diging/quadriga/statuses/{sha}","languages_url":"https://api.github.com/repos/diging/quadriga/languages","stargazers_url":"https://api.github.com/repos/diging/quadriga/stargazers","contributors_url":"https://api.github.com/repos/diging/quadriga/contributors","subscribers_url":"https://api.github.com/repos/diging/quadriga/subscribers","subscription_url":"https://api.github.com/repos/diging/quadriga/subscription","commits_url":"https://api.github.com/repos/diging/quadriga/commits{/sha}","git_commits_url":"https://api.github.com/repos/diging/quadriga/git/commits{/sha}","comments_url":"https://api.github.com/repos/diging/quadriga/comments{/number}","issue_comment_url":"https://api.github.com/repos/diging/quadriga/issues/comments{/number}","contents_url":"https://api.github.com/repos/diging/quadriga/contents/{+path}","compare_url":"https://api.github.com/repos/diging/quadriga/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diging/quadriga/merges","archive_url":"https://api.github.com/repos/diging/quadriga/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diging/quadriga/downloads","issues_url":"https://api.github.com/repos/diging/quadriga/issues{/number}","pulls_url":"https://api.github.com/repos/diging/quadriga/pulls{/number}","milestones_url":"https://api.github.com/repos/diging/quadriga/milestones{/number}","notifications_url":"https://api.github.com/repos/diging/quadriga/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diging/quadriga/labels{/name}","releases_url":"https://api.github.com/repos/diging/quadriga/releases{/id}","deployments_url":"https://api.github.com/repos/diging/quadriga/deployments","created_at":"2015-03-24T19:05:57Z","updated_at":"2016-03-07T03:29:55Z","pushed_at":"2016-03-21T21:23:11Z","git_url":"git://github.com/diging/quadriga.git","ssh_url":"git@github.com:diging/quadriga.git","clone_url":"https://github.com/diging/quadriga.git","svn_url":"https://github.com/diging/quadriga","homepage":"http://diging.github.io/quadriga/","size":11686,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":3,"default_branch":"develop"}},"base":{"label":"diging:develop","ref":"develop","sha":"e2d3a7e20e409588eca3b7650a278bda7b13f760","user":{"login":"diging","id":5402168,"avatar_url":"https://avatars.githubusercontent.com/u/5402168?v=3","gravatar_id":"","url":"https://api.github.com/users/diging","html_url":"https://github.com/diging","followers_url":"https://api.github.com/users/diging/followers","following_url":"https://api.github.com/users/diging/following{/other_user}","gists_url":"https://api.github.com/users/diging/gists{/gist_id}","starred_url":"https://api.github.com/users/diging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diging/subscriptions","organizations_url":"https://api.github.com/users/diging/orgs","repos_url":"https://api.github.com/users/diging/repos","events_url":"https://api.github.com/users/diging/events{/privacy}","received_events_url":"https://api.github.com/users/diging/received_events","type":"Organization","site_admin":false},"repo":{"id":32819066,"name":"quadriga","full_name":"diging/quadriga","owner":{"login":"diging","id":5402168,"avatar_url":"https://avatars.githubusercontent.com/u/5402168?v=3","gravatar_id":"","url":"https://api.github.com/users/diging","html_url":"https://github.com/diging","followers_url":"https://api.github.com/users/diging/followers","following_url":"https://api.github.com/users/diging/following{/other_user}","gists_url":"https://api.github.com/users/diging/gists{/gist_id}","starred_url":"https://api.github.com/users/diging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diging/subscriptions","organizations_url":"https://api.github.com/users/diging/orgs","repos_url":"https://api.github.com/users/diging/repos","events_url":"https://api.github.com/users/diging/events{/privacy}","received_events_url":"https://api.github.com/users/diging/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/diging/quadriga","description":"","fork":false,"url":"https://api.github.com/repos/diging/quadriga","forks_url":"https://api.github.com/repos/diging/quadriga/forks","keys_url":"https://api.github.com/repos/diging/quadriga/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diging/quadriga/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diging/quadriga/teams","hooks_url":"https://api.github.com/repos/diging/quadriga/hooks","issue_events_url":"https://api.github.com/repos/diging/quadriga/issues/events{/number}","events_url":"https://api.github.com/repos/diging/quadriga/events","assignees_url":"https://api.github.com/repos/diging/quadriga/assignees{/user}","branches_url":"https://api.github.com/repos/diging/quadriga/branches{/branch}","tags_url":"https://api.github.com/repos/diging/quadriga/tags","blobs_url":"https://api.github.com/repos/diging/quadriga/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diging/quadriga/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diging/quadriga/git/refs{/sha}","trees_url":"https://api.github.com/repos/diging/quadriga/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diging/quadriga/statuses/{sha}","languages_url":"https://api.github.com/repos/diging/quadriga/languages","stargazers_url":"https://api.github.com/repos/diging/quadriga/stargazers","contributors_url":"https://api.github.com/repos/diging/quadriga/contributors","subscribers_url":"https://api.github.com/repos/diging/quadriga/subscribers","subscription_url":"https://api.github.com/repos/diging/quadriga/subscription","commits_url":"https://api.github.com/repos/diging/quadriga/commits{/sha}","git_commits_url":"https://api.github.com/repos/diging/quadriga/git/commits{/sha}","comments_url":"https://api.github.com/repos/diging/quadriga/comments{/number}","issue_comment_url":"https://api.github.com/repos/diging/quadriga/issues/comments{/number}","contents_url":"https://api.github.com/repos/diging/quadriga/contents/{+path}","compare_url":"https://api.github.com/repos/diging/quadriga/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diging/quadriga/merges","archive_url":"https://api.github.com/repos/diging/quadriga/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diging/quadriga/downloads","issues_url":"https://api.github.com/repos/diging/quadriga/issues{/number}","pulls_url":"https://api.github.com/repos/diging/quadriga/pulls{/number}","milestones_url":"https://api.github.com/repos/diging/quadriga/milestones{/number}","notifications_url":"https://api.github.com/repos/diging/quadriga/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diging/quadriga/labels{/name}","releases_url":"https://api.github.com/repos/diging/quadriga/releases{/id}","deployments_url":"https://api.github.com/repos/diging/quadriga/deployments","created_at":"2015-03-24T19:05:57Z","updated_at":"2016-03-07T03:29:55Z","pushed_at":"2016-03-21T21:23:11Z","git_url":"git://github.com/diging/quadriga.git","ssh_url":"git@github.com:diging/quadriga.git","clone_url":"https://github.com/diging/quadriga.git","svn_url":"https://github.com/diging/quadriga","homepage":"http://diging.github.io/quadriga/","size":11686,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":3,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/diging/quadriga/pulls/163"},"html":{"href":"https://github.com/diging/quadriga/pull/163"},"issue":{"href":"https://api.github.com/repos/diging/quadriga/issues/163"},"comments":{"href":"https://api.github.com/repos/diging/quadriga/issues/163/comments"},"review_comments":{"href":"https://api.github.com/repos/diging/quadriga/pulls/163/comments"},"review_comment":{"href":"https://api.github.com/repos/diging/quadriga/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/diging/quadriga/pulls/163/commits"},"statuses":{"href":"https://api.github.com/repos/diging/quadriga/statuses/df80b3e1b5895c815970eeb6ecafb59e1c07f340"}}}}