)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"e4e5e7aa11ec26e762436d8764eb7b25f041a9f9","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     pengfei wang \u003cwpf710@gmail.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-08-29 14:56:25 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Not permitted to delete pools which are used by flavor"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: I8db78a0f55602a865f98eecb0035b139f1ab18b1"},{"line_number":10,"context_line":"Closes-Bug: #1362174"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1abeadc6_86ea0ad6","line":7,"updated":"2014-08-29 09:18:36.000000000","message":"Also, please, extend the commit message a bit more explaining why this is necessary and what we expect the operator to do","commit_id":"66385642707560d97b48e2a6d5e3004307d4482e"}],"zaqar/queues/storage/errors.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"8f0458a0d9c9b384ed722c747fefb4dcace5daeb","unresolved":false,"context_lines":[{"line_number":149,"context_line":"        super(NoPoolFound, self).__init__()"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"class PoolIsFlavoredBy(NotPermitted):"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    msg_format \u003d u\u0027Pool {pid} is flavored by {fid}\u0027"},{"line_number":155,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_e67ade75","line":152,"updated":"2014-08-29 09:17:31.000000000","message":"Could you rename this to: `PoolInUse` ?","commit_id":"66385642707560d97b48e2a6d5e3004307d4482e"},{"author":{"_account_id":10634,"name":"Peng Fei Wang","email":"wpf710@gmail.com","username":"wpf"},"change_message_id":"0bcb9db923da6c846f30d1537aa8e099bde16dc5","unresolved":false,"context_lines":[{"line_number":149,"context_line":"        super(NoPoolFound, self).__init__()"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"class PoolIsFlavoredBy(NotPermitted):"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    msg_format \u003d u\u0027Pool {pid} is flavored by {fid}\u0027"},{"line_number":155,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"fa98f980_23e572a8","line":152,"in_reply_to":"1abeadc6_e67ade75","updated":"2014-09-01 02:34:10.000000000","message":"Done, use \"PoolInUseByFlavor\"","commit_id":"66385642707560d97b48e2a6d5e3004307d4482e"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"8f0458a0d9c9b384ed722c747fefb4dcace5daeb","unresolved":false,"context_lines":[{"line_number":151,"context_line":""},{"line_number":152,"context_line":"class PoolIsFlavoredBy(NotPermitted):"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    msg_format \u003d u\u0027Pool {pid} is flavored by {fid}\u0027"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def __init__(self, pid, fid):"},{"line_number":157,"context_line":"        super(PoolIsFlavoredBy, self).__init__(pid\u003dpid, fid\u003dfid)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_8665aab0","line":154,"updated":"2014-08-29 09:17:31.000000000","message":"`Pool {pid} is in use by flavor {fid}`","commit_id":"66385642707560d97b48e2a6d5e3004307d4482e"},{"author":{"_account_id":10634,"name":"Peng Fei Wang","email":"wpf710@gmail.com","username":"wpf"},"change_message_id":"0bcb9db923da6c846f30d1537aa8e099bde16dc5","unresolved":false,"context_lines":[{"line_number":151,"context_line":""},{"line_number":152,"context_line":"class PoolIsFlavoredBy(NotPermitted):"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    msg_format \u003d u\u0027Pool {pid} is flavored by {fid}\u0027"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def __init__(self, pid, fid):"},{"line_number":157,"context_line":"        super(PoolIsFlavoredBy, self).__init__(pid\u003dpid, fid\u003dfid)"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa98f980_63ee9a8d","line":154,"in_reply_to":"1abeadc6_8665aab0","updated":"2014-09-01 02:34:10.000000000","message":"Done","commit_id":"66385642707560d97b48e2a6d5e3004307d4482e"}],"zaqar/queues/storage/mongodb/pools.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"8f6073e4d4d6dfaf1e6270a988dd59c3564bb17c","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                               background\u003dTrue,"},{"line_number":53,"context_line":"                               name\u003d\u0027pools_name\u0027,"},{"line_number":54,"context_line":"                               unique\u003dTrue)"},{"line_number":55,"context_line":"        self._col_flavors \u003d self.driver.database.flavors"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    @utils.raises_conn_error"},{"line_number":58,"context_line":"    def list(self, marker\u003dNone, limit\u003d10, detailed\u003dFalse):"}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_7c6ad681","line":55,"updated":"2014-08-29 12:44:48.000000000","message":"As dirty as it sounds, I think it\u0027d be better to get the flavors collection through the flavors_controller by accessing the `_col` attribute.","commit_id":"66385642707560d97b48e2a6d5e3004307d4482e"},{"author":{"_account_id":10634,"name":"Peng Fei Wang","email":"wpf710@gmail.com","username":"wpf"},"change_message_id":"0bcb9db923da6c846f30d1537aa8e099bde16dc5","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                               background\u003dTrue,"},{"line_number":53,"context_line":"                               name\u003d\u0027pools_name\u0027,"},{"line_number":54,"context_line":"                               unique\u003dTrue)"},{"line_number":55,"context_line":"        self._col_flavors \u003d self.driver.database.flavors"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    @utils.raises_conn_error"},{"line_number":58,"context_line":"    def list(self, marker\u003dNone, limit\u003d10, detailed\u003dFalse):"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa98f980_c62bd42e","line":55,"in_reply_to":"1abeadc6_7c6ad681","updated":"2014-09-01 02:34:10.000000000","message":"Done","commit_id":"66385642707560d97b48e2a6d5e3004307d4482e"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"6131df2d496a50d98c2054dc8d352a932b83eec8","unresolved":false,"context_lines":[{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    @utils.raises_conn_error"},{"line_number":103,"context_line":"    def delete(self, name):"},{"line_number":104,"context_line":"        res \u003d self._flavor_ctl._col.find_one({\u0027s\u0027: name})"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        if res:"},{"line_number":107,"context_line":"            raise errors.PoolInUseByFlavor(name, res[\u0027n\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa98f980_ce63dfaf","line":104,"updated":"2014-09-01 10:27:48.000000000","message":"It doesn\u0027t make sense for me if it doesn\u0027t honoured the project id.","commit_id":"34e4a1ffbffdd0ada51238f3fd4f969df150e581"},{"author":{"_account_id":10634,"name":"Peng Fei Wang","email":"wpf710@gmail.com","username":"wpf"},"change_message_id":"5ac0b8f38235c318c8d475783249171de8e1ae4f","unresolved":false,"context_lines":[{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    @utils.raises_conn_error"},{"line_number":103,"context_line":"    def delete(self, name):"},{"line_number":104,"context_line":"        res \u003d self._flavor_ctl._col.find_one({\u0027s\u0027: name})"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        if res:"},{"line_number":107,"context_line":"            raise errors.PoolInUseByFlavor(name, res[\u0027n\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa98f980_c5a63110","line":104,"in_reply_to":"fa98f980_ce63dfaf","updated":"2014-09-02 01:40:27.000000000","message":"Pools are cross-tenant for flavors, and for any project, as long as pool is used it\u0027s not allowed to delete","commit_id":"34e4a1ffbffdd0ada51238f3fd4f969df150e581"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"d13ee1edf20d9cfff87bb0f88251f49589200a3a","unresolved":false,"context_lines":[{"line_number":105,"context_line":"        # __init__ method since FlavorsController initilizing the"},{"line_number":106,"context_line":"        # PoolsController in __init__ method either."},{"line_number":107,"context_line":"        flavor_ctl \u003d self.driver.flavors_controller"},{"line_number":108,"context_line":"        res \u003d flavor_ctl._col.find_one({\u0027s\u0027: name})"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"        if res:"},{"line_number":111,"context_line":"            raise errors.PoolInUseByFlavor(name, res[\u0027n\u0027])"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa98f980_f1e4a2e1","line":108,"updated":"2014-09-11 06:14:59.000000000","message":"The pool could be in use by more than 1 flavor. I think it\u0027d be useful to get the list of flavors using the `pool` to provide a better error message.","commit_id":"34cc9c0d14faea5629abc240c99acfaafbc64312"},{"author":{"_account_id":10634,"name":"Peng Fei Wang","email":"wpf710@gmail.com","username":"wpf"},"change_message_id":"4951b5ced10db0385626838fddabe4a493bd0134","unresolved":false,"context_lines":[{"line_number":105,"context_line":"        # __init__ method since FlavorsController initilizing the"},{"line_number":106,"context_line":"        # PoolsController in __init__ method either."},{"line_number":107,"context_line":"        flavor_ctl \u003d self.driver.flavors_controller"},{"line_number":108,"context_line":"        res \u003d flavor_ctl._col.find_one({\u0027s\u0027: name})"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"        if res:"},{"line_number":111,"context_line":"            raise errors.PoolInUseByFlavor(name, res[\u0027n\u0027])"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa98f980_b322fea0","line":108,"in_reply_to":"fa98f980_f1e4a2e1","updated":"2014-09-12 01:11:20.000000000","message":"Done","commit_id":"34cc9c0d14faea5629abc240c99acfaafbc64312"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"67722049f7349664af3f0c28979c5b3a48b6c3c1","unresolved":false,"context_lines":[{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    @utils.raises_conn_error"},{"line_number":102,"context_line":"    def delete(self, name):"},{"line_number":103,"context_line":"        # NOTE(wpf): Move the variable instantination here is avoiding the"},{"line_number":104,"context_line":"        # maxinum recursion depth exceeded error while initilizing it in"},{"line_number":105,"context_line":"        # __init__ method since FlavorsController initilizing the"},{"line_number":106,"context_line":"        # PoolsController in __init__ method either."}],"source_content_type":"text/x-python","patch_set":6,"id":"fa98f980_c537b5e1","line":103,"updated":"2014-09-12 02:31:01.000000000","message":"Given that the flavors controller is used only in this function, for now, it should be ok.\nCould you rephrase the comment?\nFor example,\nNOTE(wpf): Initializing the Flavors controller here instead of doing so in __init__ is required to avoid falling in a maximum recursion error.","commit_id":"cbea57d43d0d7c6bd9de6cd0f749f8b440952cac"},{"author":{"_account_id":10634,"name":"Peng Fei Wang","email":"wpf710@gmail.com","username":"wpf"},"change_message_id":"5403029be0b92519e725bbc4afd9936688d32e2c","unresolved":false,"context_lines":[{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    @utils.raises_conn_error"},{"line_number":102,"context_line":"    def delete(self, name):"},{"line_number":103,"context_line":"        # NOTE(wpf): Move the variable instantination here is avoiding the"},{"line_number":104,"context_line":"        # maxinum recursion depth exceeded error while initilizing it in"},{"line_number":105,"context_line":"        # __init__ method since FlavorsController initilizing the"},{"line_number":106,"context_line":"        # PoolsController in __init__ method either."}],"source_content_type":"text/x-python","patch_set":6,"id":"fa98f980_bed802f0","line":103,"in_reply_to":"fa98f980_c537b5e1","updated":"2014-09-12 06:26:15.000000000","message":"Done","commit_id":"cbea57d43d0d7c6bd9de6cd0f749f8b440952cac"}],"zaqar/queues/transport/wsgi/v1_1/pools.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"8f0458a0d9c9b384ed722c747fefb4dcace5daeb","unresolved":false,"context_lines":[{"line_number":163,"context_line":"        except errors.PoolIsFlavoredBy as ex:"},{"line_number":164,"context_line":"            LOG.exception(ex)"},{"line_number":165,"context_line":"            title \u003d _(u\u0027Unable to delete\u0027)"},{"line_number":166,"context_line":"            description \u003d _(u\u0027This pool is used by flavors; it cannot \u0027"},{"line_number":167,"context_line":"                            u\u0027be deleted.\u0027)"},{"line_number":168,"context_line":"            raise falcon.HTTPForbidden(title, description)"},{"line_number":169,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_862daa91","line":166,"updated":"2014-08-29 09:17:31.000000000","message":"It\u0027d be useful to add the flavor name to this exception.","commit_id":"66385642707560d97b48e2a6d5e3004307d4482e"},{"author":{"_account_id":10634,"name":"Peng Fei Wang","email":"wpf710@gmail.com","username":"wpf"},"change_message_id":"0bcb9db923da6c846f30d1537aa8e099bde16dc5","unresolved":false,"context_lines":[{"line_number":163,"context_line":"        except errors.PoolIsFlavoredBy as ex:"},{"line_number":164,"context_line":"            LOG.exception(ex)"},{"line_number":165,"context_line":"            title \u003d _(u\u0027Unable to delete\u0027)"},{"line_number":166,"context_line":"            description \u003d _(u\u0027This pool is used by flavors; it cannot \u0027"},{"line_number":167,"context_line":"                            u\u0027be deleted.\u0027)"},{"line_number":168,"context_line":"            raise falcon.HTTPForbidden(title, description)"},{"line_number":169,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"fa98f980_4690c4ec","line":166,"in_reply_to":"1abeadc6_862daa91","updated":"2014-09-01 02:34:10.000000000","message":"Done","commit_id":"66385642707560d97b48e2a6d5e3004307d4482e"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"6131df2d496a50d98c2054dc8d352a932b83eec8","unresolved":false,"context_lines":[{"line_number":154,"context_line":"    def on_delete(self, request, response, project_id, pool):"},{"line_number":155,"context_line":"        \"\"\"Deregisters a pool."},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"        :returns: HTTP | 204"},{"line_number":158,"context_line":"        \"\"\""},{"line_number":159,"context_line":"        LOG.debug(u\u0027DELETE pool - name: %s\u0027, pool)"},{"line_number":160,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa98f980_4c1a9a6f","line":157,"updated":"2014-09-01 10:27:48.000000000","message":"It would be nice the 403 error is added.","commit_id":"34e4a1ffbffdd0ada51238f3fd4f969df150e581"},{"author":{"_account_id":10634,"name":"Peng Fei Wang","email":"wpf710@gmail.com","username":"wpf"},"change_message_id":"5ac0b8f38235c318c8d475783249171de8e1ae4f","unresolved":false,"context_lines":[{"line_number":154,"context_line":"    def on_delete(self, request, response, project_id, pool):"},{"line_number":155,"context_line":"        \"\"\"Deregisters a pool."},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"        :returns: HTTP | 204"},{"line_number":158,"context_line":"        \"\"\""},{"line_number":159,"context_line":"        LOG.debug(u\u0027DELETE pool - name: %s\u0027, pool)"},{"line_number":160,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa98f980_0521194d","line":157,"in_reply_to":"fa98f980_4c1a9a6f","updated":"2014-09-02 01:40:27.000000000","message":"Done","commit_id":"34e4a1ffbffdd0ada51238f3fd4f969df150e581"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"6131df2d496a50d98c2054dc8d352a932b83eec8","unresolved":false,"context_lines":[{"line_number":163,"context_line":"        except errors.PoolInUseByFlavor as ex:"},{"line_number":164,"context_line":"            LOG.exception(ex)"},{"line_number":165,"context_line":"            title \u003d _(u\u0027Unable to delete\u0027)"},{"line_number":166,"context_line":"            description \u003d _(u\u0027This pool is used by flavors {flavor}; \u0027"},{"line_number":167,"context_line":"                            u\u0027It cannot be deleted.\u0027)"},{"line_number":168,"context_line":"            description \u003d description.format(flavor\u003dex.flavor)"},{"line_number":169,"context_line":"            raise falcon.HTTPForbidden(title, description)"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa98f980_2c0396b9","line":166,"updated":"2014-09-01 10:27:48.000000000","message":"Why not just leverage the message of PoolInUseByFlavor instead of creating a new static string?","commit_id":"34e4a1ffbffdd0ada51238f3fd4f969df150e581"},{"author":{"_account_id":10634,"name":"Peng Fei Wang","email":"wpf710@gmail.com","username":"wpf"},"change_message_id":"5ac0b8f38235c318c8d475783249171de8e1ae4f","unresolved":false,"context_lines":[{"line_number":163,"context_line":"        except errors.PoolInUseByFlavor as ex:"},{"line_number":164,"context_line":"            LOG.exception(ex)"},{"line_number":165,"context_line":"            title \u003d _(u\u0027Unable to delete\u0027)"},{"line_number":166,"context_line":"            description \u003d _(u\u0027This pool is used by flavors {flavor}; \u0027"},{"line_number":167,"context_line":"                            u\u0027It cannot be deleted.\u0027)"},{"line_number":168,"context_line":"            description \u003d description.format(flavor\u003dex.flavor)"},{"line_number":169,"context_line":"            raise falcon.HTTPForbidden(title, description)"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa98f980_c5de313f","line":166,"in_reply_to":"fa98f980_2c0396b9","updated":"2014-09-02 01:40:27.000000000","message":"we need i18n for those messages that shown to user.","commit_id":"34e4a1ffbffdd0ada51238f3fd4f969df150e581"}]}
