)]}'
{"zaqar/storage/errors.py":[{"author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"change_message_id":"694c3eb3549735081c9647b67bab38de937731b7","unresolved":false,"context_lines":[{"line_number":193,"context_line":"                  u\u0027support the minimum set of capabilities\u0027)"},{"line_number":194,"context_line":""},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"class PoolUriInUse(ExceptionBase):"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    msg_format \u003d u\u0027The uri of the pool has been used by other pools\u0027"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a5ae5dd_80595037","line":196,"range":{"start_line":196,"start_character":19,"end_line":196,"end_character":32},"updated":"2016-02-06 21:26:42.000000000","message":"I think it should inherit from \"Conflict\" exception instead.","commit_id":"bf6501d2fe239b4170244f625d3c342b9d70b24a"},{"author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"change_message_id":"694c3eb3549735081c9647b67bab38de937731b7","unresolved":false,"context_lines":[{"line_number":195,"context_line":""},{"line_number":196,"context_line":"class PoolUriInUse(ExceptionBase):"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    msg_format \u003d u\u0027The uri of the pool has been used by other pools\u0027"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a5ae5dd_40f7d88a","line":198,"range":{"start_line":198,"start_character":19,"end_line":198,"end_character":67},"updated":"2016-02-06 21:26:42.000000000","message":"I think we shouldn\u0027t use past tense in this message. And lets capitalize URI abbreviation. Maybe something like this would be better:\n\"URI is in use by another pool\"\n\nIdeally it would be something like this:\n\"URI {uri} is in use by pool {pool}\"\n\n, where {uri} and {pool} are variables passed to exception. See \"PoolInUseByFlavor\" exception for example.","commit_id":"bf6501d2fe239b4170244f625d3c342b9d70b24a"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"c26a03f05f42fd7c9b6bcf59e4c92a0cb2e28974","unresolved":false,"context_lines":[{"line_number":193,"context_line":"                  u\u0027support the minimum set of capabilities\u0027)"},{"line_number":194,"context_line":""},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"class PoolUriInUse(Conflict):"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    msg_format \u003d u\u0027The uri is in use by another pool.\u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"dae33548_f42bd931","line":196,"updated":"2016-02-14 22:16:57.000000000","message":"(nit): I\u0027m wondering if the exception could be renamed as \u0027PoolAlreadyExisted\u0027or something like that. Since end user may think pool uri is a uri like this \u0027/v2/pools/fast_storage\u0027 instead of the database URI. Thoughts?","commit_id":"04a4df653e651efa9c8e5908ddaafe6d423f1d36"},{"author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"change_message_id":"9b216f5e28691b953ee785d236893aee2810d6d7","unresolved":false,"context_lines":[{"line_number":193,"context_line":"                  u\u0027support the minimum set of capabilities\u0027)"},{"line_number":194,"context_line":""},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"class PoolAlreadyExisted(Conflict):"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    msg_format \u003d u\u0027The uri is in use by another pool.\u0027"}],"source_content_type":"text/x-python","patch_set":6,"id":"dae33548_7deddb8a","line":196,"range":{"start_line":196,"start_character":6,"end_line":196,"end_character":24},"updated":"2016-02-15 11:42:43.000000000","message":"Personally I liked \"PoolUriInUse\" more.\n\nIf we use this, I think it\u0027s not correct to use past tense. I suggest renaming it to \"PoolAlreadyExists\".","commit_id":"e9a06eb9e2bf2bdf7843733105901645d6cb00b6"},{"author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"change_message_id":"9b216f5e28691b953ee785d236893aee2810d6d7","unresolved":false,"context_lines":[{"line_number":195,"context_line":""},{"line_number":196,"context_line":"class PoolAlreadyExisted(Conflict):"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    msg_format \u003d u\u0027The uri is in use by another pool.\u0027"}],"source_content_type":"text/x-python","patch_set":6,"id":"dae33548_9db6df88","line":198,"range":{"start_line":198,"start_character":23,"end_line":198,"end_character":26},"updated":"2016-02-15 11:42:43.000000000","message":"Let\u0027s capitalize \"uri\" to \"URI\".","commit_id":"e9a06eb9e2bf2bdf7843733105901645d6cb00b6"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"efb8b0438f70d16f4599f3d8c898e3911be7445e","unresolved":false,"context_lines":[{"line_number":195,"context_line":""},{"line_number":196,"context_line":"class PoolAlreadyExists(Conflict):"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    msg_format \u003d u\u0027The URI is in use by another pool.\u0027"}],"source_content_type":"text/x-python","patch_set":9,"id":"dae33548_31196189","line":198,"updated":"2016-02-17 01:32:16.000000000","message":"(nit): Could you pls reword it like \"The database URI is in use by another pool.\"? Thanks.","commit_id":"2681086075558e51617113ab56199a6c74aa684f"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"044f67b1aeb3ef10eb2c62a44dbef86dc87b4c65","unresolved":false,"context_lines":[{"line_number":195,"context_line":""},{"line_number":196,"context_line":"class PoolAlreadyExists(Conflict):"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    msg_format \u003d u\u0027The URI is in use by another pool.\u0027"}],"source_content_type":"text/x-python","patch_set":9,"id":"dae33548_5744d419","line":198,"in_reply_to":"dae33548_31196189","updated":"2016-02-17 03:01:20.000000000","message":"Done","commit_id":"2681086075558e51617113ab56199a6c74aa684f"}],"zaqar/tests/unit/storage/test_impl_mongodb.py":[{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"efb8b0438f70d16f4599f3d8c898e3911be7445e","unresolved":false,"context_lines":[{"line_number":530,"context_line":""},{"line_number":531,"context_line":"    def test_duplicate_uri(self):"},{"line_number":532,"context_line":"        with testing.expect(errors.PoolAlreadyExists):"},{"line_number":533,"context_line":"            self.pools_controller.create(str(uuid.uuid1()), 100, \u0027localhost\u0027,"},{"line_number":534,"context_line":"                                         group\u003dstr(uuid.uuid1()), options\u003d{})"},{"line_number":535,"context_line":""},{"line_number":536,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"dae33548_b12611cc","line":533,"updated":"2016-02-17 01:32:16.000000000","message":"IMHO, \u0027localhost\u0027 is not a valid DB URI, so why does it trigger the exception? Thanks.","commit_id":"2681086075558e51617113ab56199a6c74aa684f"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"ef08ad2acc454af8413e8d15079c8405239fe8c4","unresolved":false,"context_lines":[{"line_number":530,"context_line":""},{"line_number":531,"context_line":"    def test_duplicate_uri(self):"},{"line_number":532,"context_line":"        with testing.expect(errors.PoolAlreadyExists):"},{"line_number":533,"context_line":"            self.pools_controller.create(str(uuid.uuid1()), 100, \u0027localhost\u0027,"},{"line_number":534,"context_line":"                                         group\u003dstr(uuid.uuid1()), options\u003d{})"},{"line_number":535,"context_line":""},{"line_number":536,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"dae33548_d772a410","line":533,"in_reply_to":"dae33548_173ecc8b","updated":"2016-02-17 03:15:47.000000000","message":"Thanks for the clarification.","commit_id":"2681086075558e51617113ab56199a6c74aa684f"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"044f67b1aeb3ef10eb2c62a44dbef86dc87b4c65","unresolved":false,"context_lines":[{"line_number":530,"context_line":""},{"line_number":531,"context_line":"    def test_duplicate_uri(self):"},{"line_number":532,"context_line":"        with testing.expect(errors.PoolAlreadyExists):"},{"line_number":533,"context_line":"            self.pools_controller.create(str(uuid.uuid1()), 100, \u0027localhost\u0027,"},{"line_number":534,"context_line":"                                         group\u003dstr(uuid.uuid1()), options\u003d{})"},{"line_number":535,"context_line":""},{"line_number":536,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"dae33548_173ecc8b","line":533,"in_reply_to":"dae33548_b12611cc","updated":"2016-02-17 03:01:20.000000000","message":"In https://github.com/openstack/zaqar/blob/master/zaqar/tests/unit/storage/base.py#L1113-L1114 \nit has created a pool with url \"localhost\". So here will raise PoolAlreadyExists.","commit_id":"2681086075558e51617113ab56199a6c74aa684f"}],"zaqar/transport/wsgi/v1_0/pools.py":[{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"c26a03f05f42fd7c9b6bcf59e4c92a0cb2e28974","unresolved":false,"context_lines":[{"line_number":179,"context_line":"                              options\u003ddata.get(\u0027options\u0027, {}))"},{"line_number":180,"context_line":"            response.status \u003d falcon.HTTP_201"},{"line_number":181,"context_line":"            response.location \u003d request.path"},{"line_number":182,"context_line":"        except errors.PoolCapabilitiesMismatch as e:"},{"line_number":183,"context_line":"            LOG.exception(e)"},{"line_number":184,"context_line":"            title \u003d _(u\u0027Unable to create pool\u0027)"},{"line_number":185,"context_line":"            raise falcon.HTTPBadRequest(title, six.text_type(e))"}],"source_content_type":"text/x-python","patch_set":5,"id":"dae33548_3426e168","line":182,"updated":"2016-02-14 22:16:57.000000000","message":"This is not related to current fix. Please remove it.","commit_id":"04a4df653e651efa9c8e5908ddaafe6d423f1d36"},{"author":{"_account_id":8846,"name":"Hao Wang","display_name":"Hao Wang","email":"sxmatch1986@gmail.com","username":"sxmatch"},"change_message_id":"80a871e5042613dde61a8a36e617a588a57b730c","unresolved":false,"context_lines":[{"line_number":180,"context_line":"            response.status \u003d falcon.HTTP_201"},{"line_number":181,"context_line":"            response.location \u003d request.path"},{"line_number":182,"context_line":"        except errors.PoolAlreadyExists as e:"},{"line_number":183,"context_line":"            LOG.exception(e)"},{"line_number":184,"context_line":"            title \u003d _(u\u0027Unable to create pool\u0027)"},{"line_number":185,"context_line":"            raise falcon.HTTPConflict(title, six.text_type(e))"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"    def on_delete(self, request, response, project_id, pool):"}],"source_content_type":"text/x-python","patch_set":8,"id":"dae33548_685a1352","line":184,"range":{"start_line":183,"start_character":0,"end_line":184,"end_character":47},"updated":"2016-02-16 05:50:00.000000000","message":"Feel here do not need this \u0027title\u0027, just put the string in HTTPConfilct is ok.","commit_id":"fd4f71751f2f5e60f93205b0cb77abe416d0f1f3"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"f68aa1f6693ee6523506b904b71543534e4b116b","unresolved":false,"context_lines":[{"line_number":180,"context_line":"            response.status \u003d falcon.HTTP_201"},{"line_number":181,"context_line":"            response.location \u003d request.path"},{"line_number":182,"context_line":"        except errors.PoolAlreadyExists as e:"},{"line_number":183,"context_line":"            LOG.exception(e)"},{"line_number":184,"context_line":"            title \u003d _(u\u0027Unable to create pool\u0027)"},{"line_number":185,"context_line":"            raise falcon.HTTPConflict(title, six.text_type(e))"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"    def on_delete(self, request, response, project_id, pool):"}],"source_content_type":"text/x-python","patch_set":8,"id":"dae33548_b3c4905f","line":184,"range":{"start_line":183,"start_character":0,"end_line":184,"end_character":47},"in_reply_to":"dae33548_685a1352","updated":"2016-02-16 06:10:12.000000000","message":"It\u0027s useless but necessary parameter in falcon.HTTPConflict().\nit\u0027s like:\nfalcon.HTTPConflict(self, title, description, **kwargs)","commit_id":"fd4f71751f2f5e60f93205b0cb77abe416d0f1f3"},{"author":{"_account_id":8846,"name":"Hao Wang","display_name":"Hao Wang","email":"sxmatch1986@gmail.com","username":"sxmatch"},"change_message_id":"78adde65f3c36d9d504bcbcc57433d69ec4f834d","unresolved":false,"context_lines":[{"line_number":180,"context_line":"            response.status \u003d falcon.HTTP_201"},{"line_number":181,"context_line":"            response.location \u003d request.path"},{"line_number":182,"context_line":"        except errors.PoolAlreadyExists as e:"},{"line_number":183,"context_line":"            LOG.exception(e)"},{"line_number":184,"context_line":"            title \u003d _(u\u0027Unable to create pool\u0027)"},{"line_number":185,"context_line":"            raise falcon.HTTPConflict(title, six.text_type(e))"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"    def on_delete(self, request, response, project_id, pool):"}],"source_content_type":"text/x-python","patch_set":8,"id":"dae33548_79f0d967","line":184,"range":{"start_line":183,"start_character":0,"end_line":184,"end_character":47},"in_reply_to":"dae33548_b3c4905f","updated":"2016-02-17 11:31:36.000000000","message":"okay, it\u0027s not a big deal, make sense to me.","commit_id":"fd4f71751f2f5e60f93205b0cb77abe416d0f1f3"}],"zaqar/transport/wsgi/v1_1/pools.py":[{"author":{"_account_id":8846,"name":"Hao Wang","display_name":"Hao Wang","email":"sxmatch1986@gmail.com","username":"sxmatch"},"change_message_id":"80a871e5042613dde61a8a36e617a588a57b730c","unresolved":false,"context_lines":[{"line_number":188,"context_line":"            raise falcon.HTTPBadRequest(title, six.text_type(e))"},{"line_number":189,"context_line":"        except errors.PoolAlreadyExists as e:"},{"line_number":190,"context_line":"            LOG.exception(e)"},{"line_number":191,"context_line":"            title \u003d _(u\u0027Unable to create pool\u0027)"},{"line_number":192,"context_line":"            raise falcon.HTTPConflict(title, six.text_type(e))"},{"line_number":193,"context_line":""},{"line_number":194,"context_line":"    def on_delete(self, request, response, project_id, pool):"}],"source_content_type":"text/x-python","patch_set":8,"id":"dae33548_483c6fe2","line":191,"range":{"start_line":191,"start_character":12,"end_line":191,"end_character":47},"updated":"2016-02-16 05:50:00.000000000","message":"here too.","commit_id":"fd4f71751f2f5e60f93205b0cb77abe416d0f1f3"}],"zaqar/transport/wsgi/v2_0/pools.py":[{"author":{"_account_id":8846,"name":"Hao Wang","display_name":"Hao Wang","email":"sxmatch1986@gmail.com","username":"sxmatch"},"change_message_id":"80a871e5042613dde61a8a36e617a588a57b730c","unresolved":false,"context_lines":[{"line_number":192,"context_line":"            raise falcon.HTTPBadRequest(title, six.text_type(e))"},{"line_number":193,"context_line":"        except errors.PoolAlreadyExists as e:"},{"line_number":194,"context_line":"            LOG.exception(e)"},{"line_number":195,"context_line":"            title \u003d _(u\u0027Unable to create pool\u0027)"},{"line_number":196,"context_line":"            raise falcon.HTTPConflict(title, six.text_type(e))"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    @acl.enforce(\"pools:delete\")"}],"source_content_type":"text/x-python","patch_set":8,"id":"dae33548_283f6bd7","line":195,"range":{"start_line":195,"start_character":12,"end_line":195,"end_character":47},"updated":"2016-02-16 05:50:00.000000000","message":"ditto","commit_id":"fd4f71751f2f5e60f93205b0cb77abe416d0f1f3"}]}
