)]}'
{"tests/functional/wsgi/v1/test_queues.py":[{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"bac7638c3f45d5f79c6970cbbe8e31ff922dc855","unresolved":false,"context_lines":[{"line_number":396,"context_line":"        stats_url \u003d self.queue_url + \u0027/stats\u0027"},{"line_number":397,"context_line":"        result \u003d self.client.get(stats_url)"},{"line_number":398,"context_line":"        self.assertEqual(result.status_code, 200)"},{"line_number":399,"context_line":""},{"line_number":400,"context_line":"        self.assertQueueStats(result.json(), claimed)"},{"line_number":401,"context_line":""},{"line_number":402,"context_line":"    test_get_queue_stats_claimed.tags \u003d [\u0027positive\u0027]"}],"source_content_type":"text/x-python","patch_set":33,"id":"baa041b7_3220639b","side":"PARENT","line":399,"updated":"2015-04-02 07:58:46.000000000","message":"Rollback this?","commit_id":"3d5462291114dab6838531247705f85dffa5797d"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"8d82c6c07cb8a5287aee3c33295ef46bca3a168e","unresolved":false,"context_lines":[{"line_number":396,"context_line":"        stats_url \u003d self.queue_url + \u0027/stats\u0027"},{"line_number":397,"context_line":"        result \u003d self.client.get(stats_url)"},{"line_number":398,"context_line":"        self.assertEqual(result.status_code, 200)"},{"line_number":399,"context_line":""},{"line_number":400,"context_line":"        self.assertQueueStats(result.json(), claimed)"},{"line_number":401,"context_line":""},{"line_number":402,"context_line":"    test_get_queue_stats_claimed.tags \u003d [\u0027positive\u0027]"}],"source_content_type":"text/x-python","patch_set":33,"id":"baa041b7_45179c51","side":"PARENT","line":399,"in_reply_to":"baa041b7_3220639b","updated":"2015-04-02 09:29:38.000000000","message":"Done","commit_id":"3d5462291114dab6838531247705f85dffa5797d"}],"tests/functional/wsgi/v1_1/test_health.py":[{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"bac7638c3f45d5f79c6970cbbe8e31ff922dc855","unresolved":false,"context_lines":[{"line_number":83,"context_line":"        message_volume \u003d health[pool_name][\u0027message_volume\u0027]"},{"line_number":84,"context_line":"        self.assertEqual(message_volume[\u0027claimed\u0027], 2)"},{"line_number":85,"context_line":"        self.assertEqual(message_volume[\u0027total\u0027], 2)"},{"line_number":86,"context_line":"        self.assertEqual(message_volume[\u0027free\u0027], 0)"}],"source_content_type":"text/x-python","patch_set":33,"id":"baa041b7_32574304","line":86,"updated":"2015-04-02 07:58:46.000000000","message":"Does the order matter here?","commit_id":"83914bb4dc1a5279120d6aa0b168fb38ddb88e59"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"8d82c6c07cb8a5287aee3c33295ef46bca3a168e","unresolved":false,"context_lines":[{"line_number":83,"context_line":"        message_volume \u003d health[pool_name][\u0027message_volume\u0027]"},{"line_number":84,"context_line":"        self.assertEqual(message_volume[\u0027claimed\u0027], 2)"},{"line_number":85,"context_line":"        self.assertEqual(message_volume[\u0027total\u0027], 2)"},{"line_number":86,"context_line":"        self.assertEqual(message_volume[\u0027free\u0027], 0)"}],"source_content_type":"text/x-python","patch_set":33,"id":"baa041b7_a518a885","line":86,"in_reply_to":"baa041b7_32574304","updated":"2015-04-02 09:29:38.000000000","message":"it doesn\u0027t, this can be rolledback","commit_id":"83914bb4dc1a5279120d6aa0b168fb38ddb88e59"}],"tests/unit/storage/test_impl_mongodb.py":[{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"0cc41e2c25ad0305a9a85275d502d1826bb65331","unresolved":false,"context_lines":[{"line_number":161,"context_line":"        self.config(unreliable\u003dTrue)"},{"line_number":162,"context_line":"        cache \u003d oslo_cache.get_cache()"},{"line_number":163,"context_line":"        control \u003d mongodb.ControlDriver(self.conf, cache)"},{"line_number":164,"context_line":"        driver \u003d mongodb.DataDriver(self.conf, cache, control)"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"        for db in driver.message_databases:"},{"line_number":167,"context_line":"            self.assertThat(db.name, matchers.StartsWith("}],"source_content_type":"text/x-python","patch_set":37,"id":"baa041b7_cd498ad2","line":164,"updated":"2015-04-02 14:35:24.000000000","message":"NIT: s/driver/data","commit_id":"be46cb6252f817fac6cf292efde72dc4b888f0fc"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"b7c94b8e7daa082a29f03e48ec6886518a9015ee","unresolved":false,"context_lines":[{"line_number":161,"context_line":"        self.config(unreliable\u003dTrue)"},{"line_number":162,"context_line":"        cache \u003d oslo_cache.get_cache()"},{"line_number":163,"context_line":"        control \u003d mongodb.ControlDriver(self.conf, cache)"},{"line_number":164,"context_line":"        driver \u003d mongodb.DataDriver(self.conf, cache, control)"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"        for db in driver.message_databases:"},{"line_number":167,"context_line":"            self.assertThat(db.name, matchers.StartsWith("}],"source_content_type":"text/x-python","patch_set":37,"id":"baa041b7_b4dd6a44","line":164,"in_reply_to":"baa041b7_cd498ad2","updated":"2015-04-02 15:55:59.000000000","message":"Done","commit_id":"be46cb6252f817fac6cf292efde72dc4b888f0fc"}],"tests/unit/storage/test_impl_redis.py":[{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"0cc41e2c25ad0305a9a85275d502d1826bb65331","unresolved":false,"context_lines":[{"line_number":359,"context_line":"    driver_class \u003d driver.DataDriver"},{"line_number":360,"context_line":"    config_file \u003d \u0027wsgi_redis.conf\u0027"},{"line_number":361,"context_line":"    controller_class \u003d controllers.ClaimController"},{"line_number":362,"context_line":"    control_driver_class \u003d mongodb.ControlDriver"},{"line_number":363,"context_line":""},{"line_number":364,"context_line":"    def setUp(self):"},{"line_number":365,"context_line":"        super(RedisClaimsTest, self).setUp()"}],"source_content_type":"text/x-python","patch_set":37,"id":"baa041b7_ad1d26bf","line":362,"updated":"2015-04-02 14:35:24.000000000","message":"Why mongodb?","commit_id":"be46cb6252f817fac6cf292efde72dc4b888f0fc"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"b7c94b8e7daa082a29f03e48ec6886518a9015ee","unresolved":false,"context_lines":[{"line_number":359,"context_line":"    driver_class \u003d driver.DataDriver"},{"line_number":360,"context_line":"    config_file \u003d \u0027wsgi_redis.conf\u0027"},{"line_number":361,"context_line":"    controller_class \u003d controllers.ClaimController"},{"line_number":362,"context_line":"    control_driver_class \u003d mongodb.ControlDriver"},{"line_number":363,"context_line":""},{"line_number":364,"context_line":"    def setUp(self):"},{"line_number":365,"context_line":"        super(RedisClaimsTest, self).setUp()"}],"source_content_type":"text/x-python","patch_set":37,"id":"baa041b7_7421224d","line":362,"in_reply_to":"baa041b7_ad1d26bf","updated":"2015-04-02 15:55:59.000000000","message":"because the redis driver doesn\u0027t have support for the control plane.","commit_id":"be46cb6252f817fac6cf292efde72dc4b888f0fc"}],"zaqar/bootstrap.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"b9a685be3a34baef7fe23243a04898221fc8654d","unresolved":false,"context_lines":[{"line_number":102,"context_line":"                                                self.control)"},{"line_number":103,"context_line":"        else:"},{"line_number":104,"context_line":"            storage_driver \u003d storage_utils.load_storage_driver("},{"line_number":105,"context_line":"                self.conf, self.cache, self.control)"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"        LOG.debug(u\u0027Loading storage pipeline\u0027)"},{"line_number":108,"context_line":"        return pipeline.DataDriver(self.conf, storage_driver)"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a961159_abd91e2a","line":105,"updated":"2015-01-20 13:05:53.000000000","message":"I believe you meant `control_driver\u003dself.control`. As it is, you\u0027re passing it in the `control_mode` position.","commit_id":"3702fe0593bc02031d77081de0f0e20e4c35deae"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"b9a685be3a34baef7fe23243a04898221fc8654d","unresolved":false,"context_lines":[{"line_number":102,"context_line":"                                                self.control)"},{"line_number":103,"context_line":"        else:"},{"line_number":104,"context_line":"            storage_driver \u003d storage_utils.load_storage_driver("},{"line_number":105,"context_line":"                self.conf, self.cache, self.control)"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"        LOG.debug(u\u0027Loading storage pipeline\u0027)"},{"line_number":108,"context_line":"        return pipeline.DataDriver(self.conf, storage_driver)"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a961159_cbde6a10","line":105,"updated":"2015-01-20 13:05:53.000000000","message":"I believe you meant `control_driver\u003dself.control`. As it is, you\u0027re passing it in the `control_mode` position.","commit_id":"3702fe0593bc02031d77081de0f0e20e4c35deae"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"0cc41e2c25ad0305a9a85275d502d1826bb65331","unresolved":false,"context_lines":[{"line_number":103,"context_line":"    @decorators.lazy_property(write\u003dFalse)"},{"line_number":104,"context_line":"    def storage(self):"},{"line_number":105,"context_line":"        LOG.debug(u\u0027Loading storage driver\u0027)"},{"line_number":106,"context_line":"        self._control \u003d self.control"},{"line_number":107,"context_line":"        if self.conf.pooling:"},{"line_number":108,"context_line":"            LOG.debug(u\u0027Storage pooling enabled\u0027)"},{"line_number":109,"context_line":"            storage_driver \u003d pooling.DataDriver(self.conf, self.cache,"}],"source_content_type":"text/x-python","patch_set":37,"id":"baa041b7_cd4e2ac1","line":106,"updated":"2015-04-02 14:35:24.000000000","message":"This is not needed, just specify self.control when loading the drivers.","commit_id":"be46cb6252f817fac6cf292efde72dc4b888f0fc"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"b7c94b8e7daa082a29f03e48ec6886518a9015ee","unresolved":false,"context_lines":[{"line_number":103,"context_line":"    @decorators.lazy_property(write\u003dFalse)"},{"line_number":104,"context_line":"    def storage(self):"},{"line_number":105,"context_line":"        LOG.debug(u\u0027Loading storage driver\u0027)"},{"line_number":106,"context_line":"        self._control \u003d self.control"},{"line_number":107,"context_line":"        if self.conf.pooling:"},{"line_number":108,"context_line":"            LOG.debug(u\u0027Storage pooling enabled\u0027)"},{"line_number":109,"context_line":"            storage_driver \u003d pooling.DataDriver(self.conf, self.cache,"}],"source_content_type":"text/x-python","patch_set":37,"id":"baa041b7_34f27ad3","line":106,"in_reply_to":"baa041b7_cd4e2ac1","updated":"2015-04-02 15:55:59.000000000","message":"leftover, sorry","commit_id":"be46cb6252f817fac6cf292efde72dc4b888f0fc"}],"zaqar/storage/base.py":[{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"5865456df5f2ce1277a74eab6606928005b6ecda","unresolved":false,"context_lines":[{"line_number":191,"context_line":"                                             queue, claim_id, project)"},{"line_number":192,"context_line":"                    _handle_status(\u0027delete_claim\u0027, func)"},{"line_number":193,"context_line":""},{"line_number":194,"context_line":"            # delete queue"},{"line_number":195,"context_line":"            func \u003d functools.partial(self.queue_controller.delete,"},{"line_number":196,"context_line":"                                     queue, project\u003dproject)"},{"line_number":197,"context_line":"            _handle_status(\u0027delete_queue\u0027, func)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_a2f05192","line":194,"updated":"2014-12-30 11:57:00.000000000","message":"queue_controller is in the control plane","commit_id":"b57f7ccd03080b4325758f8537d4764065d26b7f"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"5865456df5f2ce1277a74eab6606928005b6ecda","unresolved":false,"context_lines":[{"line_number":219,"context_line":"        raise NotImplementedError"},{"line_number":220,"context_line":""},{"line_number":221,"context_line":"    @abc.abstractproperty"},{"line_number":222,"context_line":"    def create_queue(self):"},{"line_number":223,"context_line":"        \"\"\"Returns True if a queue was created and False"},{"line_number":224,"context_line":"            if it was updated.\"\"\""},{"line_number":225,"context_line":"        raise NotImplementedError"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_e2025971","line":222,"updated":"2014-12-30 11:57:00.000000000","message":"I\u0027m not sure about this method here. Why is it needed? Can you directly access it through the controller?","commit_id":"b57f7ccd03080b4325758f8537d4764065d26b7f"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"2ab3026e26177775cfccee44bcdfb1d8ac906cfb","unresolved":false,"context_lines":[{"line_number":211,"context_line":""},{"line_number":212,"context_line":"    @abc.abstractproperty"},{"line_number":213,"context_line":"    def queue_controller(self):"},{"line_number":214,"context_line":"        \"\"\"Returns True if a queue was created and False if it was updated.\"\"\""},{"line_number":215,"context_line":"        raise NotImplementedError"},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"    @abc.abstractproperty"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_fb887b6d","line":214,"updated":"2015-01-19 12:37:20.000000000","message":"This change is not needed","commit_id":"939f34bafbd95bf787392f7584a1ec22a4a62752"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"a1c6169f4aab908ffe38f82ae55bc6aac34fb14d","unresolved":false,"context_lines":[{"line_number":227,"context_line":"    @abc.abstractproperty"},{"line_number":228,"context_line":"    def subscription_controller(self):"},{"line_number":229,"context_line":"        \"\"\"Returns the driver\u0027s subscription controller.\"\"\""},{"line_number":230,"context_line":"        raise NotImplementedError   "},{"line_number":231,"context_line":""},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"@six.add_metaclass(abc.ABCMeta)"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_79ed57f0","line":230,"updated":"2015-01-20 08:34:36.000000000","message":"trailing spaces","commit_id":"57911083de440dedc306429f94406f42fdd22235"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"1ff23f69c6267a1b9271a706c100fba1fc4eb6b1","unresolved":false,"context_lines":[{"line_number":228,"context_line":"    def subscription_controller(self):"},{"line_number":229,"context_line":"        \"\"\"Returns the driver\u0027s subscription controller.\"\"\""},{"line_number":230,"context_line":"        raise NotImplementedError"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":234,"context_line":"class ControlDriverBase(DriverBase):"}],"source_content_type":"text/x-python","patch_set":9,"id":"3a961159_da69d6f9","side":"PARENT","line":231,"updated":"2015-01-20 11:51:08.000000000","message":"re-add this line","commit_id":"898ced1ec1a9b0001df2b94c25e8da79993f9994"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"1ff23f69c6267a1b9271a706c100fba1fc4eb6b1","unresolved":false,"context_lines":[{"line_number":65,"context_line":"        self.cache \u003d cache"},{"line_number":66,"context_line":"        self._register_opts()"},{"line_number":67,"context_line":"        # creating ControlDriver instance for accessing QueueController data from DataDriver"},{"line_number":68,"context_line":"        self.control_driver \u003d control_driver"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    def _register_opts(self):"},{"line_number":71,"context_line":"        for group, options in self._DRIVER_OPTIONS:"}],"source_content_type":"text/x-python","patch_set":9,"id":"3a961159_3a057a15","line":68,"updated":"2015-01-20 11:51:08.000000000","message":"You want to move this to the DataDriver. We just need the control_driver for the data plane.","commit_id":"546197919cad4b5ad63dca0c1c41f2fddc7b5369"}],"zaqar/storage/mongodb/driver.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"2ab3026e26177775cfccee44bcdfb1d8ac906cfb","unresolved":false,"context_lines":[{"line_number":104,"context_line":""},{"line_number":105,"context_line":"            conn.write_concern[\u0027j\u0027] \u003d False"},{"line_number":106,"context_line":"        # creating ControlDrive instalce for accessing QueueController data"},{"line_number":107,"context_line":"        self._control_drive \u003d ControlDriver(self.conf, self.cache)"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"        # FIXME(flaper87): Make this dynamic"},{"line_number":110,"context_line":"        self._capabilities \u003d self.BASE_CAPABILITIES"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_5b6a6fb6","line":107,"updated":"2015-01-19 12:37:20.000000000","message":"We probably need to create this instance *outside* the DataDriver. Probably, creating it in the bootstrap step and passing it to the `DataDriver` is the right thing to do.\n\nIn the meantime, you can move this initialization to the base class.","commit_id":"939f34bafbd95bf787392f7584a1ec22a4a62752"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"2ab3026e26177775cfccee44bcdfb1d8ac906cfb","unresolved":false,"context_lines":[{"line_number":230,"context_line":"    def queue_controller(self):"},{"line_number":231,"context_line":"        return controllers.QueueController(self)"},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"    #@decorators.lazy_property(write\u003dFalse)"},{"line_number":234,"context_line":"    #def message_controller(self):"},{"line_number":235,"context_line":"    #    return controllers.MessageController(self)"},{"line_number":236,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_dbb49f38","line":233,"updated":"2015-01-19 12:37:20.000000000","message":"remove :P","commit_id":"939f34bafbd95bf787392f7584a1ec22a4a62752"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"a1c6169f4aab908ffe38f82ae55bc6aac34fb14d","unresolved":false,"context_lines":[{"line_number":105,"context_line":"            conn.write_concern[\u0027j\u0027] \u003d False"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"        # creating ControlDrive instalce for accessing QueueController data"},{"line_number":108,"context_line":"        self.control_driver \u003d control_driver"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"        # FIXME(flaper87): Make this dynamic"},{"line_number":111,"context_line":"        self._capabilities \u003d self.BASE_CAPABILITIES"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_b99dff6e","line":108,"updated":"2015-01-20 08:34:36.000000000","message":"This can be done in the base class where `conf` and `cache` are set.","commit_id":"57911083de440dedc306429f94406f42fdd22235"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"a1c6169f4aab908ffe38f82ae55bc6aac34fb14d","unresolved":false,"context_lines":[{"line_number":181,"context_line":""},{"line_number":182,"context_line":"    @decorators.lazy_property(write\u003dFalse)"},{"line_number":183,"context_line":"    def queue_controller(self):"},{"line_number":184,"context_line":"        return self._control_drive.queue_controller"},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"    @decorators.lazy_property(write\u003dFalse)"},{"line_number":187,"context_line":"    def message_controller(self):"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_39910f54","line":184,"updated":"2015-01-20 08:34:36.000000000","message":"This can go in the method on the base class so we don\u0027t have to override it in every implementation","commit_id":"57911083de440dedc306429f94406f42fdd22235"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"0cc41e2c25ad0305a9a85275d502d1826bb65331","unresolved":false,"context_lines":[{"line_number":203,"context_line":""},{"line_number":204,"context_line":"class ControlDriver(storage.ControlDriverBase):"},{"line_number":205,"context_line":""},{"line_number":206,"context_line":"    def __init__(self, conf, cache, control_drive\u003dNone):"},{"line_number":207,"context_line":"        super(ControlDriver, self).__init__(conf, cache)"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"        self.conf.register_opts(options.MANAGEMENT_MONGODB_OPTIONS,"}],"source_content_type":"text/x-python","patch_set":37,"id":"baa041b7_086e402f","line":206,"updated":"2015-04-02 14:35:24.000000000","message":"s/control_drive/control_driver","commit_id":"be46cb6252f817fac6cf292efde72dc4b888f0fc"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"b7c94b8e7daa082a29f03e48ec6886518a9015ee","unresolved":false,"context_lines":[{"line_number":203,"context_line":""},{"line_number":204,"context_line":"class ControlDriver(storage.ControlDriverBase):"},{"line_number":205,"context_line":""},{"line_number":206,"context_line":"    def __init__(self, conf, cache, control_drive\u003dNone):"},{"line_number":207,"context_line":"        super(ControlDriver, self).__init__(conf, cache)"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"        self.conf.register_opts(options.MANAGEMENT_MONGODB_OPTIONS,"}],"source_content_type":"text/x-python","patch_set":37,"id":"baa041b7_d48d8e32","line":206,"in_reply_to":"baa041b7_086e402f","updated":"2015-04-02 15:55:59.000000000","message":"iiiuugh, this is actually not needed.","commit_id":"be46cb6252f817fac6cf292efde72dc4b888f0fc"}],"zaqar/storage/mongodb/messages.py":[{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"eb7715b9119dac2ac72326a62086b09c5c6f7f60","unresolved":false,"context_lines":[{"line_number":887,"context_line":"    def _delete(self, queue_name, message_id, project\u003dNone, claim\u003dNone):"},{"line_number":888,"context_line":"        # we don\u0027t have access to message_id??"},{"line_number":889,"context_line":""},{"line_number":890,"context_line":"        self.messsage_controller.delete(queue_name, message_id, project, claim)"},{"line_number":891,"context_line":""},{"line_number":892,"context_line":"    @utils.raises_conn_error"},{"line_number":893,"context_line":"    @utils.retries_on_autoreconnect"}],"source_content_type":"text/x-python","patch_set":27,"id":"9a80dd14_a88d2933","line":890,"updated":"2015-03-19 17:49:41.000000000","message":"message_controller (extra s)","commit_id":"532183d995a35f2ebf55c17c292457a40b5f53bc"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"eb7715b9119dac2ac72326a62086b09c5c6f7f60","unresolved":false,"context_lines":[{"line_number":892,"context_line":"    @utils.raises_conn_error"},{"line_number":893,"context_line":"    @utils.retries_on_autoreconnect"},{"line_number":894,"context_line":"    def _stats(self, name, project\u003dNone):"},{"line_number":895,"context_line":"        if not self.exists(name, project\u003dproject):"},{"line_number":896,"context_line":"            raise errors.QueueDoesNotExist(name, project)"},{"line_number":897,"context_line":""},{"line_number":898,"context_line":"        controller \u003d self.message_controller"}],"source_content_type":"text/x-python","patch_set":27,"id":"9a80dd14_e883a100","line":895,"updated":"2015-03-19 17:49:41.000000000","message":"self.message_controller.exists","commit_id":"532183d995a35f2ebf55c17c292457a40b5f53bc"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"bac7638c3f45d5f79c6970cbbe8e31ff922dc855","unresolved":false,"context_lines":[{"line_number":497,"context_line":"        # autoreconnect, since we\u0027ve a 2-step insert for messages."},{"line_number":498,"context_line":"        # The worst-case scenario is that we\u0027ll increase the counter"},{"line_number":499,"context_line":"        # several times and we\u0027d end up with some non-active messages."},{"line_number":500,"context_line":""},{"line_number":501,"context_line":"        if not self._queue_ctrl.exists(queue_name, project):"},{"line_number":502,"context_line":"            raise errors.QueueDoesNotExist(queue_name, project)"},{"line_number":503,"context_line":""}],"source_content_type":"text/x-python","patch_set":33,"id":"baa041b7_92c16f31","side":"PARENT","line":500,"updated":"2015-04-02 07:58:46.000000000","message":"unrelated change","commit_id":"3d5462291114dab6838531247705f85dffa5797d"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"bac7638c3f45d5f79c6970cbbe8e31ff922dc855","unresolved":false,"context_lines":[{"line_number":97,"context_line":"    (\u0027c.e\u0027, 1),"},{"line_number":98,"context_line":"]"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"# This index is meant to be used as a shard-key and to ensure"},{"line_number":102,"context_line":"# uniqueness for markers."},{"line_number":103,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":33,"id":"baa041b7_72ddcb13","line":100,"updated":"2015-04-02 07:58:46.000000000","message":"unrelated change","commit_id":"83914bb4dc1a5279120d6aa0b168fb38ddb88e59"}],"zaqar/storage/mongodb/subscriptions.py":[{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"0cc41e2c25ad0305a9a85275d502d1826bb65331","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        super(SubscriptionController, self).__init__(*args, **kwargs)"},{"line_number":49,"context_line":"        self._collection \u003d self.driver.subscriptions_database.subscriptions"},{"line_number":50,"context_line":"        queue_col \u003d self.driver.control_driver.queues_database.queues"},{"line_number":51,"context_line":"        self._queue_collection \u003d queue_col"},{"line_number":52,"context_line":"        self._collection.ensure_index(SUBSCRIPTIONS_INDEX, unique\u003dTrue)"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    @utils.raises_conn_error"}],"source_content_type":"text/x-python","patch_set":37,"id":"baa041b7_48e8c87c","line":51,"updated":"2015-04-02 14:35:24.000000000","message":"self._queue_collection \u003d self.driver.control_driver.queues_database.queues","commit_id":"be46cb6252f817fac6cf292efde72dc4b888f0fc"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"b7c94b8e7daa082a29f03e48ec6886518a9015ee","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        super(SubscriptionController, self).__init__(*args, **kwargs)"},{"line_number":49,"context_line":"        self._collection \u003d self.driver.subscriptions_database.subscriptions"},{"line_number":50,"context_line":"        queue_col \u003d self.driver.control_driver.queues_database.queues"},{"line_number":51,"context_line":"        self._queue_collection \u003d queue_col"},{"line_number":52,"context_line":"        self._collection.ensure_index(SUBSCRIPTIONS_INDEX, unique\u003dTrue)"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    @utils.raises_conn_error"}],"source_content_type":"text/x-python","patch_set":37,"id":"baa041b7_b499ea70","line":51,"in_reply_to":"baa041b7_48e8c87c","updated":"2015-04-02 15:55:59.000000000","message":"line too long ;)","commit_id":"be46cb6252f817fac6cf292efde72dc4b888f0fc"}],"zaqar/storage/redis/driver.py":[{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"5865456df5f2ce1277a74eab6606928005b6ecda","unresolved":false,"context_lines":[{"line_number":196,"context_line":""},{"line_number":197,"context_line":"    @decorators.lazy_property(write\u003dFalse)"},{"line_number":198,"context_line":"    def create_queue(self):"},{"line_number":199,"context_line":"        return return ControlDriver(conf, cache).queue_controller()"},{"line_number":200,"context_line":""},{"line_number":201,"context_line":"    @decorators.lazy_property(write\u003dFalse)"},{"line_number":202,"context_line":"    def message_controller(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_4287add7","line":199,"updated":"2014-12-30 11:57:00.000000000","message":"Extra return","commit_id":"b57f7ccd03080b4325758f8537d4764065d26b7f"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"eb7715b9119dac2ac72326a62086b09c5c6f7f60","unresolved":false,"context_lines":[{"line_number":209,"context_line":""},{"line_number":210,"context_line":"class ControlDriver(storage.ControlDriverBase):"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"    def __init__(self, conf, cache, control_drive\u003dNone):"},{"line_number":213,"context_line":"        super(ControlDriver, self).__init__(conf, cache)"},{"line_number":214,"context_line":""},{"line_number":215,"context_line":"        self.conf.register_opts(options.MANAGEMENT_REDIS_OPTIONS,"}],"source_content_type":"text/x-python","patch_set":27,"id":"9a80dd14_68a6d1ac","line":212,"updated":"2015-03-19 17:49:41.000000000","message":"Remove the control_drive param","commit_id":"532183d995a35f2ebf55c17c292457a40b5f53bc"}],"zaqar/storage/redis/queues.py":[{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"bac7638c3f45d5f79c6970cbbe8e31ff922dc855","unresolved":false,"context_lines":[{"line_number":187,"context_line":"    @utils.raises_conn_error"},{"line_number":188,"context_line":"    @utils.retries_on_connection_error"},{"line_number":189,"context_line":"    def _stats(self, name, project\u003dNone):"},{"line_number":190,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":33,"id":"baa041b7_7fd8ef53","line":190,"updated":"2015-04-02 07:58:46.000000000","message":"So nobody will call this, right?","commit_id":"83914bb4dc1a5279120d6aa0b168fb38ddb88e59"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"8d82c6c07cb8a5287aee3c33295ef46bca3a168e","unresolved":false,"context_lines":[{"line_number":187,"context_line":"    @utils.raises_conn_error"},{"line_number":188,"context_line":"    @utils.retries_on_connection_error"},{"line_number":189,"context_line":"    def _stats(self, name, project\u003dNone):"},{"line_number":190,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":33,"id":"baa041b7_706edcca","line":190,"in_reply_to":"baa041b7_7fd8ef53","updated":"2015-04-02 09:29:38.000000000","message":"They will by using the pipeline. We need to have this here because of \"abc\". I\u0027m planning to move it to the message controller soon.","commit_id":"83914bb4dc1a5279120d6aa0b168fb38ddb88e59"}],"zaqar/storage/sqlalchemy/driver.py":[{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"eb7715b9119dac2ac72326a62086b09c5c6f7f60","unresolved":false,"context_lines":[{"line_number":156,"context_line":""},{"line_number":157,"context_line":"class ControlDriver(storage.ControlDriverBase):"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"    def __init__(self, conf, cache, control_drive\u003dNone):"},{"line_number":160,"context_line":"        super(ControlDriver, self).__init__(conf, cache)"},{"line_number":161,"context_line":"        self.conf.register_opts(options.MANAGEMENT_SQLALCHEMY_OPTIONS,"},{"line_number":162,"context_line":"                                group\u003doptions.MANAGEMENT_SQLALCHEMY_GROUP)"}],"source_content_type":"text/x-python","patch_set":27,"id":"9a80dd14_c8fa5d76","line":159,"updated":"2015-03-19 17:49:41.000000000","message":"Remove control_drive param","commit_id":"532183d995a35f2ebf55c17c292457a40b5f53bc"}],"zaqar/storage/sqlalchemy/queues.py":[{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"0cc41e2c25ad0305a9a85275d502d1826bb65331","unresolved":false,"context_lines":[{"line_number":120,"context_line":"            res.close()"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"    def _delete(self, name, project):"},{"line_number":123,"context_line":"        \u0027\u0027\u0027To maintain cosistency, added this method here."},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"        Even though it does not use message_controller."},{"line_number":126,"context_line":"        \u0027\u0027\u0027"}],"source_content_type":"text/x-python","patch_set":37,"id":"baa041b7_2849048c","line":123,"updated":"2015-04-02 14:35:24.000000000","message":"s/\u0027\u0027\u0027/\"\"\"","commit_id":"be46cb6252f817fac6cf292efde72dc4b888f0fc"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"b7c94b8e7daa082a29f03e48ec6886518a9015ee","unresolved":false,"context_lines":[{"line_number":120,"context_line":"            res.close()"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"    def _delete(self, name, project):"},{"line_number":123,"context_line":"        \u0027\u0027\u0027To maintain cosistency, added this method here."},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"        Even though it does not use message_controller."},{"line_number":126,"context_line":"        \u0027\u0027\u0027"}],"source_content_type":"text/x-python","patch_set":37,"id":"baa041b7_b4e7aae3","line":123,"in_reply_to":"baa041b7_2849048c","updated":"2015-04-02 15:55:59.000000000","message":"erm, leftover","commit_id":"be46cb6252f817fac6cf292efde72dc4b888f0fc"}],"zaqar/storage/utils.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"a1c6169f4aab908ffe38f82ae55bc6aac34fb14d","unresolved":false,"context_lines":[{"line_number":81,"context_line":"        driver type to load; if False, the data driver is"},{"line_number":82,"context_line":"        loaded. If True, the control driver is loaded."},{"line_number":83,"context_line":"    \"\"\""},{"line_number":84,"context_line":"    print(\"????????????/////////Oo__oO0oO0++++++++++ control_mode is\", control_mode, \" and storage_type is \", storage_type)"},{"line_number":85,"context_line":"    mode \u003d \u0027control\u0027 if control_mode else \u0027data\u0027"},{"line_number":86,"context_line":"    driver_type \u003d \u0027zaqar.{0}.storage\u0027.format(mode)"},{"line_number":87,"context_line":"    storage_type \u003d storage_type or conf[\u0027drivers\u0027].storage"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_99984377","line":84,"updated":"2015-01-20 08:34:36.000000000","message":"lol :P\n\n/me does the same thing :D","commit_id":"57911083de440dedc306429f94406f42fdd22235"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"c0962e2e9b832fdf1e5ea090d37ed57975acb829","unresolved":false,"context_lines":[{"line_number":90,"context_line":"    \"\"\" following lines are commented for now, we can deal"},{"line_number":91,"context_line":"    with this after otehr tests cases passes"},{"line_number":92,"context_line":"    \"\"\""},{"line_number":93,"context_line":"    # _invoke_args \u003d [conf, cache]"},{"line_number":94,"context_line":"    # if control_driver is not None:"},{"line_number":95,"context_line":"    #    _invoke_args.append(control_driver)"},{"line_number":96,"context_line":"    try:"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a930d6b_c0c5595c","line":93,"updated":"2015-01-22 08:20:36.000000000","message":"you\u0027ll need these lines to make tests, probably all of them, pass.","commit_id":"49ef9a12be58274ccd486a1a72a03d08aa935ed8"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"bac7638c3f45d5f79c6970cbbe8e31ff922dc855","unresolved":false,"context_lines":[{"line_number":110,"context_line":"        the `drivers` option will be used."},{"line_number":111,"context_line":"    :param control_mode: (Default False). Determines which"},{"line_number":112,"context_line":"        driver type to load; if False, the data driver is"},{"line_number":113,"context_line":"        loaded. If True, the control driver is loaded."},{"line_number":114,"context_line":"    \"\"\""},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"    mode \u003d \u0027control\u0027 if control_mode else \u0027data\u0027"}],"source_content_type":"text/x-python","patch_set":33,"id":"baa041b7_df9ffb5d","line":113,"updated":"2015-04-02 07:58:46.000000000","message":"docstring for the new param?","commit_id":"83914bb4dc1a5279120d6aa0b168fb38ddb88e59"}],"zaqar/tests/unit/storage/base.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"c0962e2e9b832fdf1e5ea090d37ed57975acb829","unresolved":false,"context_lines":[{"line_number":63,"context_line":"                                            self.control_driver_class"},{"line_number":64,"context_line":"                                            (self.conf, cache))"},{"line_number":65,"context_line":"        else:"},{"line_number":66,"context_line":"            control \u003d self.control_driver_class(self.conf, cache)"},{"line_number":67,"context_line":"            uri \u003d \"sqlite:///:memory:\""},{"line_number":68,"context_line":"            for i in range(4):"},{"line_number":69,"context_line":"                control.pools_controller.create(six.text_type(i), 100, uri)"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a930d6b_e0b6d5db","line":66,"updated":"2015-01-22 08:20:36.000000000","message":"u should probably move this line out of the if, assign `control` to `self` and use it instead of creating several instances.","commit_id":"49ef9a12be58274ccd486a1a72a03d08aa935ed8"}],"zaqar/tests/unit/transport/wsgi/base.py":[{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"0cc41e2c25ad0305a9a85275d502d1826bb65331","unresolved":false,"context_lines":[{"line_number":144,"context_line":"    \"\"\""},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"    def _empty_message_list(self, body):"},{"line_number":147,"context_line":"        self.assertEqual([], jsonutils.loads(body[0])[\u0027messages\u0027])"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"class V1_1BaseFaulty(TestBaseFaulty):"}],"source_content_type":"text/x-python","patch_set":37,"id":"baa041b7_6e14b543","line":147,"updated":"2015-04-02 14:35:24.000000000","message":"This change seems not necessary.","commit_id":"be46cb6252f817fac6cf292efde72dc4b888f0fc"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"b7c94b8e7daa082a29f03e48ec6886518a9015ee","unresolved":false,"context_lines":[{"line_number":144,"context_line":"    \"\"\""},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"    def _empty_message_list(self, body):"},{"line_number":147,"context_line":"        self.assertEqual([], jsonutils.loads(body[0])[\u0027messages\u0027])"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"class V1_1BaseFaulty(TestBaseFaulty):"}],"source_content_type":"text/x-python","patch_set":37,"id":"baa041b7_34215afc","line":147,"in_reply_to":"baa041b7_6e14b543","updated":"2015-04-02 15:55:59.000000000","message":"it\u0027s actuall `assertEqual(expected, actual)` but I agree this should be done in a separate patch.","commit_id":"be46cb6252f817fac6cf292efde72dc4b888f0fc"}],"zaqar/tests/unit/transport/wsgi/v2_0/test_claims.py":[{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"bac7638c3f45d5f79c6970cbbe8e31ff922dc855","unresolved":false,"context_lines":[{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    def tearDown(self):"},{"line_number":58,"context_line":"        self.simulate_delete(self.queue_path, headers\u003dself.headers)"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"        super(ClaimsBaseTest, self).tearDown()"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    @ddt.data(\u0027[\u0027, \u0027[]\u0027, \u0027.\u0027, \u0027\"fail\"\u0027)"}],"source_content_type":"text/x-python","patch_set":33,"id":"baa041b7_9f8f3323","side":"PARENT","line":59,"updated":"2015-04-02 07:58:46.000000000","message":"unrelated change","commit_id":"3d5462291114dab6838531247705f85dffa5797d"}]}
