)]}'
{"manila/share/drivers/huawei/huawei_nas.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"8bf911205bf7e983833635f458fdc16eb6c54b58","unresolved":false,"context_lines":[{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    def extend_share(self, share, new_size, share_server\u003dNone):"},{"line_number":102,"context_line":"        LOG.debug(\"Extend a share.\")"},{"line_number":103,"context_line":"        share_info \u003d self.plugin.extend_share(share, new_size, share_server)"},{"line_number":104,"context_line":"        return {\u0027share_info\u0027: share_info}"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    def create_share_from_snapshot(self, context, share, snapshot,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3afb71cf_b5bcd8dc","line":103,"updated":"2015-06-09 14:19:23.000000000","message":"Verify that new size is bigger than original?","commit_id":"766a94175f4dab7abb633121e76b0a0701118614"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"b6fa149636b0dd1124545720f9f3995c22f493c5","unresolved":false,"context_lines":[{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    def extend_share(self, share, new_size, share_server\u003dNone):"},{"line_number":102,"context_line":"        LOG.debug(\"Extend a share.\")"},{"line_number":103,"context_line":"        share_info \u003d self.plugin.extend_share(share, new_size, share_server)"},{"line_number":104,"context_line":"        return {\u0027share_info\u0027: share_info}"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    def create_share_from_snapshot(self, context, share, snapshot,"}],"source_content_type":"text/x-python","patch_set":2,"id":"1af86dd1_062c3caa","line":103,"in_reply_to":"3afb71cf_18f81549","updated":"2015-06-11 22:09:59.000000000","message":"Clinton: good point.","commit_id":"766a94175f4dab7abb633121e76b0a0701118614"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"d46991f64fb447c10b6d62e0b4bf8d3d27610b8f","unresolved":false,"context_lines":[{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    def extend_share(self, share, new_size, share_server\u003dNone):"},{"line_number":102,"context_line":"        LOG.debug(\"Extend a share.\")"},{"line_number":103,"context_line":"        share_info \u003d self.plugin.extend_share(share, new_size, share_server)"},{"line_number":104,"context_line":"        return {\u0027share_info\u0027: share_info}"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    def create_share_from_snapshot(self, context, share, snapshot,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3afb71cf_18f81549","line":103,"in_reply_to":"3afb71cf_81a2b497","updated":"2015-06-11 15:08:32.000000000","message":"Clinton +1","commit_id":"766a94175f4dab7abb633121e76b0a0701118614"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"41d3002170b0781b0bc38630d8a836e06d1e2a65","unresolved":false,"context_lines":[{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    def extend_share(self, share, new_size, share_server\u003dNone):"},{"line_number":102,"context_line":"        LOG.debug(\"Extend a share.\")"},{"line_number":103,"context_line":"        share_info \u003d self.plugin.extend_share(share, new_size, share_server)"},{"line_number":104,"context_line":"        return {\u0027share_info\u0027: share_info}"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    def create_share_from_snapshot(self, context, share, snapshot,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3afb71cf_81a2b497","line":103,"in_reply_to":"3afb71cf_b5bcd8dc","updated":"2015-06-09 19:05:17.000000000","message":"The API layer already does this, so I think we\u0027d not want the same check duplicated in each driver.","commit_id":"766a94175f4dab7abb633121e76b0a0701118614"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"bc22679b4f6ac7606812d998cc14d528ffcb68c7","unresolved":false,"context_lines":[{"line_number":101,"context_line":"    def extend_share(self, share, new_size, share_server\u003dNone):"},{"line_number":102,"context_line":"        LOG.debug(\"Extend a share.\")"},{"line_number":103,"context_line":"        share_info \u003d self.plugin.extend_share(share, new_size, share_server)"},{"line_number":104,"context_line":"        return {\u0027share_info\u0027: share_info}"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    def create_share_from_snapshot(self, context, share, snapshot,"},{"line_number":107,"context_line":"                                   share_server\u003dNone):"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa32b979_ac75c898","line":104,"updated":"2015-06-16 14:13:09.000000000","message":"The share manager is not expecting any data to be returned from this method, so please honor the driver interface and don\u0027t return anything here.  It appears you are doing this solely to aid your unit tests; please find another way to test your code.","commit_id":"ee650dd103c5ee8c825261e4d0d0232cf9c90783"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"132e09fef0cd98c46afe9b58e5e6c25609e8bfb7","unresolved":false,"context_lines":[{"line_number":101,"context_line":"    def extend_share(self, share, new_size, share_server\u003dNone):"},{"line_number":102,"context_line":"        LOG.debug(\"Extend a share.\")"},{"line_number":103,"context_line":"        share_info \u003d self.plugin.extend_share(share, new_size, share_server)"},{"line_number":104,"context_line":"        return {\u0027share_info\u0027: share_info}"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    def create_share_from_snapshot(self, context, share, snapshot,"},{"line_number":107,"context_line":"                                   share_server\u003dNone):"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa32b979_eda5ee46","line":104,"in_reply_to":"fa32b979_ac75c898","updated":"2015-06-17 04:49:50.000000000","message":"Done","commit_id":"ee650dd103c5ee8c825261e4d0d0232cf9c90783"}],"manila/share/drivers/huawei/v3/connection.py":[{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"81282f162ffab708b759716f40024646be6a1652","unresolved":false,"context_lines":[{"line_number":95,"context_line":"    def extend_share(self, share, new_size, share_server):"},{"line_number":96,"context_line":"        share_proto \u003d share[\u0027share_proto\u0027]"},{"line_number":97,"context_line":"        share_name \u003d share[\u0027name\u0027]"},{"line_number":98,"context_line":"        size \u003d new_size * units.Mi * 2"},{"line_number":99,"context_line":"        share_type \u003d self.helper._get_share_type(share_proto)"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"        share \u003d self.helper._get_share_by_name(share_name, share_type)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3afb71cf_ed33a812","line":98,"updated":"2015-06-09 15:22:42.000000000","message":"Why multiply the new size by 2?","commit_id":"766a94175f4dab7abb633121e76b0a0701118614"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"2c5f7cc1d196d20dce15ec7ecc017d4dc8464d89","unresolved":false,"context_lines":[{"line_number":95,"context_line":"    def extend_share(self, share, new_size, share_server):"},{"line_number":96,"context_line":"        share_proto \u003d share[\u0027share_proto\u0027]"},{"line_number":97,"context_line":"        share_name \u003d share[\u0027name\u0027]"},{"line_number":98,"context_line":"        size \u003d new_size * units.Mi * 2"},{"line_number":99,"context_line":"        share_type \u003d self.helper._get_share_type(share_proto)"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"        share \u003d self.helper._get_share_by_name(share_name, share_type)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3afb71cf_671425e8","line":98,"in_reply_to":"3afb71cf_09e6b414","updated":"2015-06-11 01:11:07.000000000","message":"Yes, I will done.","commit_id":"766a94175f4dab7abb633121e76b0a0701118614"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"41d3002170b0781b0bc38630d8a836e06d1e2a65","unresolved":false,"context_lines":[{"line_number":95,"context_line":"    def extend_share(self, share, new_size, share_server):"},{"line_number":96,"context_line":"        share_proto \u003d share[\u0027share_proto\u0027]"},{"line_number":97,"context_line":"        share_name \u003d share[\u0027name\u0027]"},{"line_number":98,"context_line":"        size \u003d new_size * units.Mi * 2"},{"line_number":99,"context_line":"        share_type \u003d self.helper._get_share_type(share_proto)"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"        share \u003d self.helper._get_share_by_name(share_name, share_type)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3afb71cf_41e03c96","line":98,"in_reply_to":"3afb71cf_70054b44","updated":"2015-06-09 19:05:17.000000000","message":"This driver multiplies by 2 for all sizes (see self._init_filesys_para in this file), and it divides by 2 to report sizes upwards (see self._get_capacity in this file).\n\nI have no idea why, but at least they\u0027re consistent.","commit_id":"766a94175f4dab7abb633121e76b0a0701118614"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"8bfdd2c27421be9717614082ff50c58b1117c762","unresolved":false,"context_lines":[{"line_number":95,"context_line":"    def extend_share(self, share, new_size, share_server):"},{"line_number":96,"context_line":"        share_proto \u003d share[\u0027share_proto\u0027]"},{"line_number":97,"context_line":"        share_name \u003d share[\u0027name\u0027]"},{"line_number":98,"context_line":"        size \u003d new_size * units.Mi * 2"},{"line_number":99,"context_line":"        share_type \u003d self.helper._get_share_type(share_proto)"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"        share \u003d self.helper._get_share_by_name(share_name, share_type)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3afb71cf_09e6b414","line":98,"in_reply_to":"3afb71cf_df4867b5","updated":"2015-06-10 19:26:18.000000000","message":"Can you add a comment for this?","commit_id":"766a94175f4dab7abb633121e76b0a0701118614"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"5910b45dc1be5c8c9eaee1faffc94321e0621639","unresolved":false,"context_lines":[{"line_number":95,"context_line":"    def extend_share(self, share, new_size, share_server):"},{"line_number":96,"context_line":"        share_proto \u003d share[\u0027share_proto\u0027]"},{"line_number":97,"context_line":"        share_name \u003d share[\u0027name\u0027]"},{"line_number":98,"context_line":"        size \u003d new_size * units.Mi * 2"},{"line_number":99,"context_line":"        share_type \u003d self.helper._get_share_type(share_proto)"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"        share \u003d self.helper._get_share_by_name(share_name, share_type)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3afb71cf_df4867b5","line":98,"in_reply_to":"3afb71cf_ed33a812","updated":"2015-06-10 10:00:09.000000000","message":"Because the unit is the sectors.","commit_id":"766a94175f4dab7abb633121e76b0a0701118614"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"0d3babc0912706b7764e7f9709f56cc4e2752e1e","unresolved":false,"context_lines":[{"line_number":95,"context_line":"    def extend_share(self, share, new_size, share_server):"},{"line_number":96,"context_line":"        share_proto \u003d share[\u0027share_proto\u0027]"},{"line_number":97,"context_line":"        share_name \u003d share[\u0027name\u0027]"},{"line_number":98,"context_line":"        size \u003d new_size * units.Mi * 2"},{"line_number":99,"context_line":"        share_type \u003d self.helper._get_share_type(share_proto)"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"        share \u003d self.helper._get_share_by_name(share_name, share_type)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3afb71cf_70054b44","line":98,"in_reply_to":"3afb71cf_ed33a812","updated":"2015-06-09 15:34:01.000000000","message":"I guess there should be ** instead of *","commit_id":"766a94175f4dab7abb633121e76b0a0701118614"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"41d3002170b0781b0bc38630d8a836e06d1e2a65","unresolved":false,"context_lines":[{"line_number":99,"context_line":"        share_type \u003d self.helper._get_share_type(share_proto)"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"        share \u003d self.helper._get_share_by_name(share_name, share_type)"},{"line_number":102,"context_line":"        if not share:"},{"line_number":103,"context_line":"            err_msg \u003d (_(\"Can not get share ID by share %s.\")"},{"line_number":104,"context_line":"                       % share_name)"},{"line_number":105,"context_line":"            LOG.error(err_msg)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3afb71cf_0ca27bfd","line":102,"updated":"2015-06-09 19:05:17.000000000","message":"This block isn\u0027t covered by a unit test.  Please add one.","commit_id":"766a94175f4dab7abb633121e76b0a0701118614"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"5910b45dc1be5c8c9eaee1faffc94321e0621639","unresolved":false,"context_lines":[{"line_number":99,"context_line":"        share_type \u003d self.helper._get_share_type(share_proto)"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"        share \u003d self.helper._get_share_by_name(share_name, share_type)"},{"line_number":102,"context_line":"        if not share:"},{"line_number":103,"context_line":"            err_msg \u003d (_(\"Can not get share ID by share %s.\")"},{"line_number":104,"context_line":"                       % share_name)"},{"line_number":105,"context_line":"            LOG.error(err_msg)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3afb71cf_a2059211","line":102,"in_reply_to":"3afb71cf_0ca27bfd","updated":"2015-06-10 10:00:09.000000000","message":"I will done.","commit_id":"766a94175f4dab7abb633121e76b0a0701118614"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"def9bc128119194934bb6903bd10f724aaffc147","unresolved":false,"context_lines":[{"line_number":101,"context_line":"        share_type \u003d self.helper._get_share_type(share_proto)"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"        share \u003d self.helper._get_share_by_name(share_name, share_type)"},{"line_number":104,"context_line":"        if not share:"},{"line_number":105,"context_line":"            err_msg \u003d (_(\"Can not get share ID by share %s.\")"},{"line_number":106,"context_line":"                       % share_name)"},{"line_number":107,"context_line":"            LOG.error(err_msg)"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa32b979_32007c34","line":104,"updated":"2015-06-15 08:23:25.000000000","message":"This line will never return True, because if \"share\" is empty then you will get KeyError exception on line 96 first.\nSo, I assume this block of code is not covered with unit tests, because it just can not reach code after condition (lines 105-108).","commit_id":"ee650dd103c5ee8c825261e4d0d0232cf9c90783"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"1f813a101755519ae3212b8975011c4807c94a8d","unresolved":false,"context_lines":[{"line_number":101,"context_line":"        share_type \u003d self.helper._get_share_type(share_proto)"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"        share \u003d self.helper._get_share_by_name(share_name, share_type)"},{"line_number":104,"context_line":"        if not share:"},{"line_number":105,"context_line":"            err_msg \u003d (_(\"Can not get share ID by share %s.\")"},{"line_number":106,"context_line":"                       % share_name)"},{"line_number":107,"context_line":"            LOG.error(err_msg)"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa32b979_f22c54ad","line":104,"in_reply_to":"fa32b979_32007c34","updated":"2015-06-15 08:24:55.000000000","message":"Oh, just saw, that you redefine it on line before. Then above comment is false.","commit_id":"ee650dd103c5ee8c825261e4d0d0232cf9c90783"}],"manila/tests/share/drivers/huawei/test_huawei_nas.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"8bf911205bf7e983833635f458fdc16eb6c54b58","unresolved":false,"context_lines":[{"line_number":68,"context_line":"                    \"data\":{\"HEALTHSTATUS\":\"0\","},{"line_number":69,"context_line":"                    \"RUNNINGSTATUS\":\"27\"}}\"\"\""},{"line_number":70,"context_line":"    else:"},{"line_number":71,"context_line":"        result \u003d \u0027{\"error\":{\"code\":31755596}}\u0027"},{"line_number":72,"context_line":"    return result"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3afb71cf_35e0e828","line":71,"updated":"2015-06-09 14:19:23.000000000","message":"Rename of \"data/result\" is out of scope for this change. Please, separate it to another commit if it is needed indeed.","commit_id":"766a94175f4dab7abb633121e76b0a0701118614"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"41d3002170b0781b0bc38630d8a836e06d1e2a65","unresolved":false,"context_lines":[{"line_number":68,"context_line":"                    \"data\":{\"HEALTHSTATUS\":\"0\","},{"line_number":69,"context_line":"                    \"RUNNINGSTATUS\":\"27\"}}\"\"\""},{"line_number":70,"context_line":"    else:"},{"line_number":71,"context_line":"        result \u003d \u0027{\"error\":{\"code\":31755596}}\u0027"},{"line_number":72,"context_line":"    return result"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3afb71cf_417cbcb4","line":71,"in_reply_to":"3afb71cf_35e0e828","updated":"2015-06-09 19:05:17.000000000","message":"+1","commit_id":"766a94175f4dab7abb633121e76b0a0701118614"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"10350388ffb68744cfaa4b7b1fdb16724347c8ef","unresolved":false,"context_lines":[{"line_number":517,"context_line":"        self.driver.plugin.helper.login()"},{"line_number":518,"context_line":"        share_info \u003d self.driver.extend_share(self.share_nfs, 4,"},{"line_number":519,"context_line":"                                              self.share_server)"},{"line_number":520,"context_line":"        self.assertEqual(\u00278388608\u0027, share_info[\u0027share_info\u0027][\u0027CAPACITY\u0027])"},{"line_number":521,"context_line":"        self.assertEqual(\u00274\u0027, share_info[\u0027share_info\u0027][\u0027ID\u0027])"},{"line_number":522,"context_line":""},{"line_number":523,"context_line":"    def test_extend_share_fail(self):"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa32b979_8ccec4b2","line":520,"updated":"2015-06-16 14:18:29.000000000","message":"As mentioned in the driver file, please find another way to test this besides returning driver-specific data to the share manager.","commit_id":"ee650dd103c5ee8c825261e4d0d0232cf9c90783"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"132e09fef0cd98c46afe9b58e5e6c25609e8bfb7","unresolved":false,"context_lines":[{"line_number":517,"context_line":"        self.driver.plugin.helper.login()"},{"line_number":518,"context_line":"        share_info \u003d self.driver.extend_share(self.share_nfs, 4,"},{"line_number":519,"context_line":"                                              self.share_server)"},{"line_number":520,"context_line":"        self.assertEqual(\u00278388608\u0027, share_info[\u0027share_info\u0027][\u0027CAPACITY\u0027])"},{"line_number":521,"context_line":"        self.assertEqual(\u00274\u0027, share_info[\u0027share_info\u0027][\u0027ID\u0027])"},{"line_number":522,"context_line":""},{"line_number":523,"context_line":"    def test_extend_share_fail(self):"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa32b979_8d65421f","line":520,"in_reply_to":"fa32b979_8ccec4b2","updated":"2015-06-17 04:49:50.000000000","message":"Done","commit_id":"ee650dd103c5ee8c825261e4d0d0232cf9c90783"}]}
