)]}'
{"manila/api/contrib/types_manage.py":[{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"fd17e015e5ebea2a39f7e606664a9dc249bad216","unresolved":false,"context_lines":[{"line_number":99,"context_line":""},{"line_number":100,"context_line":"        try:"},{"line_number":101,"context_line":"            share_type \u003d share_types.get_share_type(context, id)"},{"line_number":102,"context_line":"            share_types.destroy(context, id)"},{"line_number":103,"context_line":"            notifier_info \u003d dict(share_types\u003dshare_type)"},{"line_number":104,"context_line":"            rpc.get_notifier(\u0027shareType\u0027).info("},{"line_number":105,"context_line":"                context, \u0027share_type.delete\u0027, notifier_info)"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_78643db8","line":102,"updated":"2015-09-03 20:28:36.000000000","message":"Seems to be an un-related change.","commit_id":"12061fb803d1dbe54b8610aaa21d5a479d8b40f3"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"b71f7472b856c466d2eab2cbb5c10d587b6866fa","unresolved":false,"context_lines":[{"line_number":99,"context_line":""},{"line_number":100,"context_line":"        try:"},{"line_number":101,"context_line":"            share_type \u003d share_types.get_share_type(context, id)"},{"line_number":102,"context_line":"            share_types.destroy(context, id)"},{"line_number":103,"context_line":"            notifier_info \u003d dict(share_types\u003dshare_type)"},{"line_number":104,"context_line":"            rpc.get_notifier(\u0027shareType\u0027).info("},{"line_number":105,"context_line":"                context, \u0027share_type.delete\u0027, notifier_info)"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_7c1de3bc","line":102,"in_reply_to":"da20952f_67ad55e8","updated":"2015-09-04 19:59:07.000000000","message":"Done","commit_id":"12061fb803d1dbe54b8610aaa21d5a479d8b40f3"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"3ecd4a21028b38150faf192a55eaab1653211702","unresolved":false,"context_lines":[{"line_number":99,"context_line":""},{"line_number":100,"context_line":"        try:"},{"line_number":101,"context_line":"            share_type \u003d share_types.get_share_type(context, id)"},{"line_number":102,"context_line":"            share_types.destroy(context, id)"},{"line_number":103,"context_line":"            notifier_info \u003d dict(share_types\u003dshare_type)"},{"line_number":104,"context_line":"            rpc.get_notifier(\u0027shareType\u0027).info("},{"line_number":105,"context_line":"                context, \u0027share_type.delete\u0027, notifier_info)"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_67ad55e8","line":102,"in_reply_to":"da20952f_78643db8","updated":"2015-09-04 16:39:03.000000000","message":"+1","commit_id":"12061fb803d1dbe54b8610aaa21d5a479d8b40f3"}],"manila/api/v1/cgsnapshots.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"b627b66e12163a94528891662e2323e53ba86288","unresolved":false,"context_lines":[{"line_number":41,"context_line":"        super(CGSnapshotController, self).__init__()"},{"line_number":42,"context_line":"        self.cg_api \u003d cg_api.API()"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    def show(self, req, id):"},{"line_number":45,"context_line":"        \"\"\"Return data about the given cgsnapshot.\"\"\""},{"line_number":46,"context_line":"        context \u003d req.environ[\u0027manila.context\u0027]"},{"line_number":47,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_888d9633","line":44,"updated":"2015-08-27 11:02:23.000000000","message":"I guess each of methods should have microversion decorator.","commit_id":"42cb35bfb86b39a1f6d269fe41dd5ffb81222403"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"fb0a4baacf45ec55c27c256dc953c3f427cd87fb","unresolved":false,"context_lines":[{"line_number":41,"context_line":"        super(CGSnapshotController, self).__init__()"},{"line_number":42,"context_line":"        self.cg_api \u003d cg_api.API()"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    def show(self, req, id):"},{"line_number":45,"context_line":"        \"\"\"Return data about the given cgsnapshot.\"\"\""},{"line_number":46,"context_line":"        context \u003d req.environ[\u0027manila.context\u0027]"},{"line_number":47,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_9b887424","line":44,"in_reply_to":"da20952f_888d9633","updated":"2015-08-27 15:16:34.000000000","message":"yeah i\u0027ll add that today","commit_id":"42cb35bfb86b39a1f6d269fe41dd5ffb81222403"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"fd17e015e5ebea2a39f7e606664a9dc249bad216","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        context \u003d req.environ[\u0027manila.context\u0027]"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"        if not self.is_valid_body(body, \u0027cgsnapshot\u0027):"},{"line_number":118,"context_line":"            raise exc.HTTPBadRequest()"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"        cg_data \u003d body[\u0027cgsnapshot\u0027]"},{"line_number":121,"context_line":"        valid_update_keys \u003d {"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_f8936d59","line":118,"updated":"2015-09-03 20:28:36.000000000","message":"Please provide a message: exc.HTTPBadRequest(explanation\u003dmsg)","commit_id":"12061fb803d1dbe54b8610aaa21d5a479d8b40f3"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"b71f7472b856c466d2eab2cbb5c10d587b6866fa","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        context \u003d req.environ[\u0027manila.context\u0027]"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"        if not self.is_valid_body(body, \u0027cgsnapshot\u0027):"},{"line_number":118,"context_line":"            raise exc.HTTPBadRequest()"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"        cg_data \u003d body[\u0027cgsnapshot\u0027]"},{"line_number":121,"context_line":"        valid_update_keys \u003d {"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_5c181fd3","line":118,"in_reply_to":"da20952f_9c99d77b","updated":"2015-09-04 19:59:07.000000000","message":"Done","commit_id":"12061fb803d1dbe54b8610aaa21d5a479d8b40f3"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"b43b56be44ca65675d0b631c1b837ff19ae473a3","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        context \u003d req.environ[\u0027manila.context\u0027]"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"        if not self.is_valid_body(body, \u0027cgsnapshot\u0027):"},{"line_number":118,"context_line":"            raise exc.HTTPBadRequest()"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"        cg_data \u003d body[\u0027cgsnapshot\u0027]"},{"line_number":121,"context_line":"        valid_update_keys \u003d {"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_9c99d77b","line":118,"in_reply_to":"da20952f_f8936d59","updated":"2015-09-04 19:49:46.000000000","message":"For example, the message could be \"cgsnapshot is missing from the request body\".","commit_id":"12061fb803d1dbe54b8610aaa21d5a479d8b40f3"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"fd17e015e5ebea2a39f7e606664a9dc249bad216","unresolved":false,"context_lines":[{"line_number":130,"context_line":"        try:"},{"line_number":131,"context_line":"            cg \u003d self.cg_api.get_cgsnapshot(context, id)"},{"line_number":132,"context_line":"        except exception.NotFound:"},{"line_number":133,"context_line":"            raise exc.HTTPNotFound()"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"        cg \u003d self.cg_api.update_cgsnapshot(context, cg, cg_data)"},{"line_number":136,"context_line":"        return self._view_builder.detail(req, cg)"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_d87d491d","line":133,"updated":"2015-09-03 20:28:36.000000000","message":"Please add a message.","commit_id":"12061fb803d1dbe54b8610aaa21d5a479d8b40f3"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"b71f7472b856c466d2eab2cbb5c10d587b6866fa","unresolved":false,"context_lines":[{"line_number":130,"context_line":"        try:"},{"line_number":131,"context_line":"            cg \u003d self.cg_api.get_cgsnapshot(context, id)"},{"line_number":132,"context_line":"        except exception.NotFound:"},{"line_number":133,"context_line":"            raise exc.HTTPNotFound()"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"        cg \u003d self.cg_api.update_cgsnapshot(context, cg, cg_data)"},{"line_number":136,"context_line":"        return self._view_builder.detail(req, cg)"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_1c0e278c","line":133,"in_reply_to":"da20952f_9c70f741","updated":"2015-09-04 19:59:07.000000000","message":"Done","commit_id":"12061fb803d1dbe54b8610aaa21d5a479d8b40f3"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"b43b56be44ca65675d0b631c1b837ff19ae473a3","unresolved":false,"context_lines":[{"line_number":130,"context_line":"        try:"},{"line_number":131,"context_line":"            cg \u003d self.cg_api.get_cgsnapshot(context, id)"},{"line_number":132,"context_line":"        except exception.NotFound:"},{"line_number":133,"context_line":"            raise exc.HTTPNotFound()"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"        cg \u003d self.cg_api.update_cgsnapshot(context, cg, cg_data)"},{"line_number":136,"context_line":"        return self._view_builder.detail(req, cg)"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_9c70f741","line":133,"in_reply_to":"da20952f_d87d491d","updated":"2015-09-04 19:49:46.000000000","message":"Message could be \"CG snapshot \u003cuuid\u003e not found\".","commit_id":"12061fb803d1dbe54b8610aaa21d5a479d8b40f3"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"fd17e015e5ebea2a39f7e606664a9dc249bad216","unresolved":false,"context_lines":[{"line_number":142,"context_line":"        context \u003d req.environ[\u0027manila.context\u0027]"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"        if not self.is_valid_body(body, \u0027cgsnapshot\u0027):"},{"line_number":145,"context_line":"            raise exc.HTTPBadRequest()"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        cgsnapshot \u003d body.get(\u0027cgsnapshot\u0027)"},{"line_number":148,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_58905943","line":145,"updated":"2015-09-03 20:28:36.000000000","message":"Same","commit_id":"12061fb803d1dbe54b8610aaa21d5a479d8b40f3"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"b71f7472b856c466d2eab2cbb5c10d587b6866fa","unresolved":false,"context_lines":[{"line_number":142,"context_line":"        context \u003d req.environ[\u0027manila.context\u0027]"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"        if not self.is_valid_body(body, \u0027cgsnapshot\u0027):"},{"line_number":145,"context_line":"            raise exc.HTTPBadRequest()"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        cgsnapshot \u003d body.get(\u0027cgsnapshot\u0027)"},{"line_number":148,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_bc27fb10","line":145,"in_reply_to":"da20952f_58905943","updated":"2015-09-04 19:59:07.000000000","message":"Done","commit_id":"12061fb803d1dbe54b8610aaa21d5a479d8b40f3"}],"manila/api/v1/router.py":[{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"5eb4aa8c9c2d877d945d5e99c239e739aba87b26","unresolved":false,"context_lines":[{"line_number":137,"context_line":"                       action\u003d\u0027pools_detail\u0027,"},{"line_number":138,"context_line":"                       conditions\u003d{\u0027method\u0027: [\u0027GET\u0027]})"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"        self.resources[\u0027consistency-groups\u0027] \u003d \\"},{"line_number":141,"context_line":"            consistency_groups.create_resource()"},{"line_number":142,"context_line":"        mapper.resource(\u0027consistency-group\u0027, \u0027consistency-groups\u0027,"},{"line_number":143,"context_line":"                        controller\u003dself.resources[\u0027consistency-groups\u0027],"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_729c59c0","line":140,"updated":"2015-09-03 22:09:37.000000000","message":"Please use () instead of \\","commit_id":"12061fb803d1dbe54b8610aaa21d5a479d8b40f3"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"d313510252ff78c74a07dcd5cb2bb963ca5bc18e","unresolved":false,"context_lines":[{"line_number":137,"context_line":"                       action\u003d\u0027pools_detail\u0027,"},{"line_number":138,"context_line":"                       conditions\u003d{\u0027method\u0027: [\u0027GET\u0027]})"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"        self.resources[\u0027consistency-groups\u0027] \u003d \\"},{"line_number":141,"context_line":"            consistency_groups.create_resource()"},{"line_number":142,"context_line":"        mapper.resource(\u0027consistency-group\u0027, \u0027consistency-groups\u0027,"},{"line_number":143,"context_line":"                        controller\u003dself.resources[\u0027consistency-groups\u0027],"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_476931bd","line":140,"in_reply_to":"da20952f_068b5bc4","updated":"2015-09-04 16:37:52.000000000","message":"Alex, \u003d)\n\nself.resources[\u0027consistency-groups\u0027] \u003d (\n\n    consistency_groups.create_resource())","commit_id":"12061fb803d1dbe54b8610aaa21d5a479d8b40f3"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"b71f7472b856c466d2eab2cbb5c10d587b6866fa","unresolved":false,"context_lines":[{"line_number":137,"context_line":"                       action\u003d\u0027pools_detail\u0027,"},{"line_number":138,"context_line":"                       conditions\u003d{\u0027method\u0027: [\u0027GET\u0027]})"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"        self.resources[\u0027consistency-groups\u0027] \u003d \\"},{"line_number":141,"context_line":"            consistency_groups.create_resource()"},{"line_number":142,"context_line":"        mapper.resource(\u0027consistency-group\u0027, \u0027consistency-groups\u0027,"},{"line_number":143,"context_line":"                        controller\u003dself.resources[\u0027consistency-groups\u0027],"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_dc6bcf1c","line":140,"in_reply_to":"da20952f_13461a7b","updated":"2015-09-04 19:59:07.000000000","message":"Done","commit_id":"12061fb803d1dbe54b8610aaa21d5a479d8b40f3"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"2c9c6ab48ab3c35e5a5a28ddf71ffc855bab1fcc","unresolved":false,"context_lines":[{"line_number":137,"context_line":"                       action\u003d\u0027pools_detail\u0027,"},{"line_number":138,"context_line":"                       conditions\u003d{\u0027method\u0027: [\u0027GET\u0027]})"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"        self.resources[\u0027consistency-groups\u0027] \u003d \\"},{"line_number":141,"context_line":"            consistency_groups.create_resource()"},{"line_number":142,"context_line":"        mapper.resource(\u0027consistency-group\u0027, \u0027consistency-groups\u0027,"},{"line_number":143,"context_line":"                        controller\u003dself.resources[\u0027consistency-groups\u0027],"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_13461a7b","line":140,"in_reply_to":"da20952f_476931bd","updated":"2015-09-04 18:36:44.000000000","message":"gross","commit_id":"12061fb803d1dbe54b8610aaa21d5a479d8b40f3"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"e4d68dfc469a017d7992b5205ebde106fd2242d3","unresolved":false,"context_lines":[{"line_number":137,"context_line":"                       action\u003d\u0027pools_detail\u0027,"},{"line_number":138,"context_line":"                       conditions\u003d{\u0027method\u0027: [\u0027GET\u0027]})"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"        self.resources[\u0027consistency-groups\u0027] \u003d \\"},{"line_number":141,"context_line":"            consistency_groups.create_resource()"},{"line_number":142,"context_line":"        mapper.resource(\u0027consistency-group\u0027, \u0027consistency-groups\u0027,"},{"line_number":143,"context_line":"                        controller\u003dself.resources[\u0027consistency-groups\u0027],"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_068b5bc4","line":140,"in_reply_to":"da20952f_729c59c0","updated":"2015-09-04 16:33:21.000000000","message":"I\u0027m not sure how I can do that here. It errors if I do\n(self.resources[\u0027consistency-groups\u0027] \u003d\n    consistency_groups.create_resource())\n\nIt\u0027s done this way up above as well","commit_id":"12061fb803d1dbe54b8610aaa21d5a479d8b40f3"}],"manila/api/v1/share_networks.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"b627b66e12163a94528891662e2323e53ba86288","unresolved":false,"context_lines":[{"line_number":60,"context_line":"            raise exc.HTTPNotFound(explanation\u003dsix.text_type(e))"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        return self._view_builder.build_share_network(share_network)"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def delete(self, req, id):"},{"line_number":65,"context_line":"        \"\"\"Delete specified share network.\"\"\""},{"line_number":66,"context_line":"        context \u003d req.environ[\u0027manila.context\u0027]"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_28feca6b","line":63,"updated":"2015-08-27 11:02:23.000000000","message":"Same here - requires microversion-related update.","commit_id":"42cb35bfb86b39a1f6d269fe41dd5ffb81222403"}],"manila/consistency_group/api.py":[{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"40de32f1cf6ec1a4525c4cced4e02dd8957dde0a","unresolved":false,"context_lines":[{"line_number":185,"context_line":"        # NOTE(ameade): check for shares in the CG"},{"line_number":186,"context_line":"        if self.db.count_shares_in_consistency_group(context, cg_id):"},{"line_number":187,"context_line":"            msg \u003d (_(\"Cannot delete a consistency group with shares\"))"},{"line_number":188,"context_line":"            raise exception.InvalidConsistencyGroup(reason\u003dmsg)"},{"line_number":189,"context_line":""},{"line_number":190,"context_line":"        cg \u003d self.db.consistency_group_update("},{"line_number":191,"context_line":"            context, cg_id, {\u0027status\u0027: constants.STATUS_DELETING})"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_769e37ba","line":188,"updated":"2015-08-21 04:12:51.000000000","message":"As I mentioned in the Manila mid cycle meetup, I don\u0027t agree with this design.  We should be able to delete a CG with shares with a force flag.  We should be able to delete CG with all the shares in it with one command.","commit_id":"42cb35bfb86b39a1f6d269fe41dd5ffb81222403"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"5eb4aa8c9c2d877d945d5e99c239e739aba87b26","unresolved":false,"context_lines":[{"line_number":97,"context_line":""},{"line_number":98,"context_line":"                if (not share_type_handle_ss) and share_network_id:"},{"line_number":99,"context_line":"                    msg \u003d _(\"When using a share types with the \""},{"line_number":100,"context_line":"                            \"driver_handles_share_servers extra spec as\""},{"line_number":101,"context_line":"                            \"False, a share_network_id must not be provided.\")"},{"line_number":102,"context_line":"                    raise exception.InvalidInput(reason\u003dmsg)"},{"line_number":103,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_f221494e","line":100,"updated":"2015-09-03 22:09:37.000000000","message":"A space is missing at the end.","commit_id":"12061fb803d1dbe54b8610aaa21d5a479d8b40f3"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"e4d68dfc469a017d7992b5205ebde106fd2242d3","unresolved":false,"context_lines":[{"line_number":97,"context_line":""},{"line_number":98,"context_line":"                if (not share_type_handle_ss) and share_network_id:"},{"line_number":99,"context_line":"                    msg \u003d _(\"When using a share types with the \""},{"line_number":100,"context_line":"                            \"driver_handles_share_servers extra spec as\""},{"line_number":101,"context_line":"                            \"False, a share_network_id must not be provided.\")"},{"line_number":102,"context_line":"                    raise exception.InvalidInput(reason\u003dmsg)"},{"line_number":103,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_a69b8f17","line":100,"in_reply_to":"da20952f_f221494e","updated":"2015-09-04 16:33:21.000000000","message":"Done","commit_id":"12061fb803d1dbe54b8610aaa21d5a479d8b40f3"}],"manila/share/api.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"b627b66e12163a94528891662e2323e53ba86288","unresolved":false,"context_lines":[{"line_number":170,"context_line":"            raise exception.InvalidParameterValue(six.text_type(e))"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"        consistency_group \u003d None"},{"line_number":173,"context_line":"        if consistency_group_id:"},{"line_number":174,"context_line":"            try:"},{"line_number":175,"context_line":"                consistency_group \u003d self.db.consistency_group_get("},{"line_number":176,"context_line":"                    context, consistency_group_id)"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_684a8285","line":173,"updated":"2015-08-27 11:02:23.000000000","message":"Is it possible to split it to separate method? Method \"create\" already very big. It also will ease testing of it.","commit_id":"42cb35bfb86b39a1f6d269fe41dd5ffb81222403"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"b627b66e12163a94528891662e2323e53ba86288","unresolved":false,"context_lines":[{"line_number":190,"context_line":"                cg_st_ids \u003d [st[\u0027share_type_id\u0027] for st in"},{"line_number":191,"context_line":"                             consistency_group.get(\u0027share_types\u0027, [])]"},{"line_number":192,"context_line":"                if share_type_id not in cg_st_ids:"},{"line_number":193,"context_line":"                    msg \u003d _(\"The specified share type is not supported by the\""},{"line_number":194,"context_line":"                            \" specified consistency group.\")"},{"line_number":195,"context_line":"                    raise exception.InvalidParameterValue(msg)"},{"line_number":196,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_283b2aed","line":193,"updated":"2015-08-27 11:02:23.000000000","message":"ID of a share type and CG?","commit_id":"42cb35bfb86b39a1f6d269fe41dd5ffb81222403"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"b627b66e12163a94528891662e2323e53ba86288","unresolved":false,"context_lines":[{"line_number":196,"context_line":""},{"line_number":197,"context_line":"            if (not consistency_group.get(\u0027share_network_id\u0027)"},{"line_number":198,"context_line":"                    \u003d\u003d share_network_id):"},{"line_number":199,"context_line":"                msg \u003d _(\"The specified share network is not supported by the\""},{"line_number":200,"context_line":"                        \" specified consistency group.\")"},{"line_number":201,"context_line":"                raise exception.InvalidParameterValue(msg)"},{"line_number":202,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_e82532c2","line":199,"updated":"2015-08-27 11:02:23.000000000","message":"Same here.","commit_id":"42cb35bfb86b39a1f6d269fe41dd5ffb81222403"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"b627b66e12163a94528891662e2323e53ba86288","unresolved":false,"context_lines":[{"line_number":362,"context_line":"        cgsnapshot_members_count \u003d self.db.count_cgsnapshot_members_in_share("},{"line_number":363,"context_line":"            context, share_id)"},{"line_number":364,"context_line":"        if cgsnapshot_members_count:"},{"line_number":365,"context_line":"            msg \u003d (_(\"Share still has %d dependent cgsnapshot members\") %"},{"line_number":366,"context_line":"                   cgsnapshot_members_count)"},{"line_number":367,"context_line":"            raise exception.InvalidShare(reason\u003dmsg)"},{"line_number":368,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_c82ceead","line":365,"updated":"2015-08-27 11:02:23.000000000","message":"Which share? Need ID.","commit_id":"42cb35bfb86b39a1f6d269fe41dd5ffb81222403"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"fb0a4baacf45ec55c27c256dc953c3f427cd87fb","unresolved":false,"context_lines":[{"line_number":362,"context_line":"        cgsnapshot_members_count \u003d self.db.count_cgsnapshot_members_in_share("},{"line_number":363,"context_line":"            context, share_id)"},{"line_number":364,"context_line":"        if cgsnapshot_members_count:"},{"line_number":365,"context_line":"            msg \u003d (_(\"Share still has %d dependent cgsnapshot members\") %"},{"line_number":366,"context_line":"                   cgsnapshot_members_count)"},{"line_number":367,"context_line":"            raise exception.InvalidShare(reason\u003dmsg)"},{"line_number":368,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_fb7e50ad","line":365,"in_reply_to":"da20952f_c82ceead","updated":"2015-08-27 15:16:34.000000000","message":"the one that is attempting to be deleted, this is consistency with the snapshots message","commit_id":"42cb35bfb86b39a1f6d269fe41dd5ffb81222403"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"5eb4aa8c9c2d877d945d5e99c239e739aba87b26","unresolved":false,"context_lines":[{"line_number":174,"context_line":"                consistency_group \u003d self.db.consistency_group_get("},{"line_number":175,"context_line":"                    context, consistency_group_id)"},{"line_number":176,"context_line":"            except exception.NotFound as e:"},{"line_number":177,"context_line":"                raise exception.InvalidParameterValue(six.text_type(e))"},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"            if (not cgsnapshot_member and"},{"line_number":180,"context_line":"                    not (consistency_group[\u0027status\u0027] \u003d\u003d"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_126cfd33","line":177,"updated":"2015-09-03 22:09:37.000000000","message":"Should be ConsistencyGroupNotFound","commit_id":"12061fb803d1dbe54b8610aaa21d5a479d8b40f3"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"e4d68dfc469a017d7992b5205ebde106fd2242d3","unresolved":false,"context_lines":[{"line_number":174,"context_line":"                consistency_group \u003d self.db.consistency_group_get("},{"line_number":175,"context_line":"                    context, consistency_group_id)"},{"line_number":176,"context_line":"            except exception.NotFound as e:"},{"line_number":177,"context_line":"                raise exception.InvalidParameterValue(six.text_type(e))"},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"            if (not cgsnapshot_member and"},{"line_number":180,"context_line":"                    not (consistency_group[\u0027status\u0027] \u003d\u003d"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_66ea5776","line":177,"in_reply_to":"da20952f_126cfd33","updated":"2015-09-04 16:33:21.000000000","message":"Actually if you supply a consistency group that doesnt exist, it\u0027s a bad request. 404\u0027s are for when the uri resource does not exist.","commit_id":"12061fb803d1dbe54b8610aaa21d5a479d8b40f3"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"13ffc8f5fceec520cbebfe48966862c2dec2b1e1","unresolved":false,"context_lines":[{"line_number":185,"context_line":"                }"},{"line_number":186,"context_line":"                msg \u003d _(\"Consistency group status must be %(avail)s, got\""},{"line_number":187,"context_line":"                        \"%(cg_status)s.\") % params"},{"line_number":188,"context_line":"                raise exception.Conflict(message\u003dmsg)"},{"line_number":189,"context_line":""},{"line_number":190,"context_line":"            if share_type_id:"},{"line_number":191,"context_line":"                cg_st_ids \u003d [st[\u0027share_type_id\u0027] for st in"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_9dbb430f","line":188,"updated":"2015-09-03 19:57:14.000000000","message":"Should be InvalidConsistencyGroup instead of Conflict.","commit_id":"12061fb803d1dbe54b8610aaa21d5a479d8b40f3"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"fa8536d93607eb6ccba68c66925b24f3d8511930","unresolved":false,"context_lines":[{"line_number":185,"context_line":"                }"},{"line_number":186,"context_line":"                msg \u003d _(\"Consistency group status must be %(avail)s, got\""},{"line_number":187,"context_line":"                        \"%(cg_status)s.\") % params"},{"line_number":188,"context_line":"                raise exception.Conflict(message\u003dmsg)"},{"line_number":189,"context_line":""},{"line_number":190,"context_line":"            if share_type_id:"},{"line_number":191,"context_line":"                cg_st_ids \u003d [st[\u0027share_type_id\u0027] for st in"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_7888bd71","line":188,"in_reply_to":"da20952f_9dbb430f","updated":"2015-09-03 20:12:05.000000000","message":"Done","commit_id":"12061fb803d1dbe54b8610aaa21d5a479d8b40f3"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"13ffc8f5fceec520cbebfe48966862c2dec2b1e1","unresolved":false,"context_lines":[{"line_number":379,"context_line":"        else:"},{"line_number":380,"context_line":"            project_id \u003d context.project_id"},{"line_number":381,"context_line":""},{"line_number":382,"context_line":"        share_id \u003d share[\u0027id\u0027]"},{"line_number":383,"context_line":""},{"line_number":384,"context_line":"        statuses \u003d (constants.STATUS_AVAILABLE, constants.STATUS_ERROR)"},{"line_number":385,"context_line":"        if not (force or share[\u0027status\u0027] in statuses):"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_bd99677b","line":382,"updated":"2015-09-03 19:57:14.000000000","message":"We should check if share is in a CG here.","commit_id":"12061fb803d1dbe54b8610aaa21d5a479d8b40f3"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"fa8536d93607eb6ccba68c66925b24f3d8511930","unresolved":false,"context_lines":[{"line_number":379,"context_line":"        else:"},{"line_number":380,"context_line":"            project_id \u003d context.project_id"},{"line_number":381,"context_line":""},{"line_number":382,"context_line":"        share_id \u003d share[\u0027id\u0027]"},{"line_number":383,"context_line":""},{"line_number":384,"context_line":"        statuses \u003d (constants.STATUS_AVAILABLE, constants.STATUS_ERROR)"},{"line_number":385,"context_line":"        if not (force or share[\u0027status\u0027] in statuses):"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_783d1d8e","line":382,"in_reply_to":"da20952f_bd99677b","updated":"2015-09-03 20:12:05.000000000","message":"With the current design it\u0027s okay to delete a share in a CG.","commit_id":"12061fb803d1dbe54b8610aaa21d5a479d8b40f3"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"14acd6109d5faf62c107a3b5ac9b04291cd7b234","unresolved":false,"context_lines":[{"line_number":174,"context_line":"                consistency_group \u003d self.db.consistency_group_get("},{"line_number":175,"context_line":"                    context, consistency_group_id)"},{"line_number":176,"context_line":"            except exception.NotFound as e:"},{"line_number":177,"context_line":"                raise exception.InvalidParameterValue(six.text_type(e))"},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"            if (not cgsnapshot_member and"},{"line_number":180,"context_line":"                    not (consistency_group[\u0027status\u0027] \u003d\u003d"}],"source_content_type":"text/x-python","patch_set":8,"id":"da20952f_f7a6e0a9","line":177,"updated":"2015-09-05 16:12:21.000000000","message":"InvalidParameterValue still doesn\u0027t look right to me for a NotFound exception. If you just raise here, the InvalidConsistencyGroup exception will be raised. The error code is set in api/v1/shares.py, not here.\n\nBut this doesn\u0027t have to hold up this patch.","commit_id":"27ec61b0099002154aa89d76181fcbb8de629acb"}],"manila/tests/api/v1/test_shares.py":[{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"14acd6109d5faf62c107a3b5ac9b04291cd7b234","unresolved":false,"context_lines":[{"line_number":424,"context_line":""},{"line_number":425,"context_line":"        req \u003d fakes.HTTPRequest.blank(\u0027/share/1\u0027, version\u003d\"1.5\")"},{"line_number":426,"context_line":"        res_dict \u003d self.controller.update(req, 1, body)"},{"line_number":427,"context_line":"        self.assertEqual(None, res_dict[\u0027share\u0027][\"consistency_group_id\"])"},{"line_number":428,"context_line":"        self.assertEqual(None,"},{"line_number":429,"context_line":"                         res_dict[\u0027share\u0027][\"source_cgsnapshot_member_id\"])"},{"line_number":430,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"da20952f_b7094897","line":427,"updated":"2015-09-05 16:12:21.000000000","message":"assertIsNone","commit_id":"27ec61b0099002154aa89d76181fcbb8de629acb"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"0046dced978c874a1b1a02ded07c7c9449b40140","unresolved":false,"context_lines":[{"line_number":424,"context_line":""},{"line_number":425,"context_line":"        req \u003d fakes.HTTPRequest.blank(\u0027/share/1\u0027, version\u003d\"1.5\")"},{"line_number":426,"context_line":"        res_dict \u003d self.controller.update(req, 1, body)"},{"line_number":427,"context_line":"        self.assertEqual(None, res_dict[\u0027share\u0027][\"consistency_group_id\"])"},{"line_number":428,"context_line":"        self.assertEqual(None,"},{"line_number":429,"context_line":"                         res_dict[\u0027share\u0027][\"source_cgsnapshot_member_id\"])"},{"line_number":430,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"da20952f_e5ef06e7","line":427,"in_reply_to":"da20952f_b7094897","updated":"2015-09-05 20:21:12.000000000","message":"Done","commit_id":"27ec61b0099002154aa89d76181fcbb8de629acb"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"14acd6109d5faf62c107a3b5ac9b04291cd7b234","unresolved":false,"context_lines":[{"line_number":425,"context_line":"        req \u003d fakes.HTTPRequest.blank(\u0027/share/1\u0027, version\u003d\"1.5\")"},{"line_number":426,"context_line":"        res_dict \u003d self.controller.update(req, 1, body)"},{"line_number":427,"context_line":"        self.assertEqual(None, res_dict[\u0027share\u0027][\"consistency_group_id\"])"},{"line_number":428,"context_line":"        self.assertEqual(None,"},{"line_number":429,"context_line":"                         res_dict[\u0027share\u0027][\"source_cgsnapshot_member_id\"])"},{"line_number":430,"context_line":""},{"line_number":431,"context_line":"    def test_share_not_updates_size(self):"}],"source_content_type":"text/x-python","patch_set":8,"id":"da20952f_57fc6c71","line":428,"updated":"2015-09-05 16:12:21.000000000","message":"assertIsNone","commit_id":"27ec61b0099002154aa89d76181fcbb8de629acb"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"0046dced978c874a1b1a02ded07c7c9449b40140","unresolved":false,"context_lines":[{"line_number":425,"context_line":"        req \u003d fakes.HTTPRequest.blank(\u0027/share/1\u0027, version\u003d\"1.5\")"},{"line_number":426,"context_line":"        res_dict \u003d self.controller.update(req, 1, body)"},{"line_number":427,"context_line":"        self.assertEqual(None, res_dict[\u0027share\u0027][\"consistency_group_id\"])"},{"line_number":428,"context_line":"        self.assertEqual(None,"},{"line_number":429,"context_line":"                         res_dict[\u0027share\u0027][\"source_cgsnapshot_member_id\"])"},{"line_number":430,"context_line":""},{"line_number":431,"context_line":"    def test_share_not_updates_size(self):"}],"source_content_type":"text/x-python","patch_set":8,"id":"da20952f_05eb1add","line":428,"in_reply_to":"da20952f_57fc6c71","updated":"2015-09-05 20:21:12.000000000","message":"Done","commit_id":"27ec61b0099002154aa89d76181fcbb8de629acb"}]}
