)]}'
{"marconi/proxy/storage/base.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"6af8f2b43dd5c982a2a06b95fd03f8c9b830bc43","unresolved":false,"context_lines":[{"line_number":96,"context_line":"        \"\"\"Drops all partitions from storage.\"\"\""},{"line_number":97,"context_line":"        raise NotImplementedError"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    def update_weight(self, name, weight):"},{"line_number":100,"context_line":"        \"\"\"Updates the weight of this partition."},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"        :param name: Name of the partition"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAS3%2F%2FM2A%3D","line":99,"updated":"2013-10-02 13:46:27.000000000","message":"Why do these have to be 2 separate methods ? What about doing something like:\n\n    def update(self, name, **kwargs):\n          .....","commit_id":"da61ffb230c623e9a454f10c383a0e1f9a48df8b"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"2416da4bc13d8f6ae5691e08e6d37844ac238c1a","unresolved":false,"context_lines":[{"line_number":96,"context_line":"        \"\"\"Drops all partitions from storage.\"\"\""},{"line_number":97,"context_line":"        raise NotImplementedError"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    def update_weight(self, name, weight):"},{"line_number":100,"context_line":"        \"\"\"Updates the weight of this partition."},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"        :param name: Name of the partition"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAS3%2F%2FMjU%3D","line":99,"in_reply_to":"AAAAS3%2F%2FM2A%3D","updated":"2013-10-02 14:58:50.000000000","message":"I\u0027ve unified them in the coming patch. Thanks, great idea!","commit_id":"da61ffb230c623e9a454f10c383a0e1f9a48df8b"}],"marconi/proxy/transport/wsgi/partitions.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"6af8f2b43dd5c982a2a06b95fd03f8c9b830bc43","unresolved":false,"context_lines":[{"line_number":33,"context_line":"from marconi.proxy.transport import schema, utils"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"def load(stream):"},{"line_number":37,"context_line":"    try:"},{"line_number":38,"context_line":"        return json.loads(stream.read())"},{"line_number":39,"context_line":"    except ValueError:"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAS3%2F%2FM1c%3D","line":36,"updated":"2013-10-02 13:46:27.000000000","message":"Any chance we can reuse this code? https://github.com/openstack/marconi/blob/master/marconi/queues/transport/utils.py#L38","commit_id":"da61ffb230c623e9a454f10c383a0e1f9a48df8b"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"2416da4bc13d8f6ae5691e08e6d37844ac238c1a","unresolved":false,"context_lines":[{"line_number":33,"context_line":"from marconi.proxy.transport import schema, utils"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"def load(stream):"},{"line_number":37,"context_line":"    try:"},{"line_number":38,"context_line":"        return json.loads(stream.read())"},{"line_number":39,"context_line":"    except ValueError:"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAS3%2F%2FMjQ%3D","line":36,"in_reply_to":"AAAAS3%2F%2FM1c%3D","updated":"2013-10-02 14:58:50.000000000","message":"Done","commit_id":"da61ffb230c623e9a454f10c383a0e1f9a48df8b"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"6af8f2b43dd5c982a2a06b95fd03f8c9b830bc43","unresolved":false,"context_lines":[{"line_number":43,"context_line":"        )"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"def lookup(controller, name):"},{"line_number":47,"context_line":"    \"\"\"Fetch a partition by name."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    :param controller: Handler for partitions storage"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAS3%2F%2FM1I%3D","line":46,"updated":"2013-10-02 13:46:27.000000000","message":"Perhaps, this is not necessary anymore","commit_id":"da61ffb230c623e9a454f10c383a0e1f9a48df8b"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"2416da4bc13d8f6ae5691e08e6d37844ac238c1a","unresolved":false,"context_lines":[{"line_number":43,"context_line":"        )"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"def lookup(controller, name):"},{"line_number":47,"context_line":"    \"\"\"Fetch a partition by name."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    :param controller: Handler for partitions storage"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAS3%2F%2FMjM%3D","line":46,"in_reply_to":"AAAAS3%2F%2FM1I%3D","updated":"2013-10-02 14:58:50.000000000","message":"Removed!","commit_id":"da61ffb230c623e9a454f10c383a0e1f9a48df8b"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"0af8062de6bef17c64f6057d7f9032c73e50ba4e","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        \"\"\"Allows one to update a partition\u0027s weight and/or hosts."},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"        This method expects the user to submit a JSON object"},{"line_number":147,"context_line":"        containing both or either of \u0027hosts\u0027 and \u0027weight\u0027. If neither"},{"line_number":148,"context_line":"        is found, the request is flagged as bad. There is also strict"},{"line_number":149,"context_line":"        format checking through the use of jsonschema. Appropriate"},{"line_number":150,"context_line":"        errors are returned in each case for badly formatted input."}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAS3%2F%2FLRY%3D","line":147,"updated":"2013-10-02 21:41:56.000000000","message":"Would it be possible to validate this statement via jsonschema? Seems like if a user includes extra junk in there we might want to slap there hand, I dunno.","commit_id":"99aaa0272c1c0761606367d3afa201f4256241af"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"0af8062de6bef17c64f6057d7f9032c73e50ba4e","unresolved":false,"context_lines":[{"line_number":163,"context_line":"        utils.validate(self._hosts_validator, data)"},{"line_number":164,"context_line":"        try:"},{"line_number":165,"context_line":"            if \u0027weight\u0027 in data:"},{"line_number":166,"context_line":"                self._ctrl.update(partition, weight\u003ddata[\u0027weight\u0027])"},{"line_number":167,"context_line":"            if \u0027hosts\u0027 in data:"},{"line_number":168,"context_line":"                self._ctrl.update(partition, hosts\u003ddata[\u0027hosts\u0027])"},{"line_number":169,"context_line":"        except exceptions.PartitionNotFound:"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAS3%2F%2FLS8%3D","line":166,"updated":"2013-10-02 21:41:56.000000000","message":"Something to consider for a future patch: allow multiple items to be patched with a single call to .update","commit_id":"99aaa0272c1c0761606367d3afa201f4256241af"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"3cef932f4d081494fb07fd6f3d87d98d9ed66712","unresolved":false,"context_lines":[{"line_number":163,"context_line":"        utils.validate(self._hosts_validator, data)"},{"line_number":164,"context_line":"        try:"},{"line_number":165,"context_line":"            if \u0027weight\u0027 in data:"},{"line_number":166,"context_line":"                self._ctrl.update(partition, weight\u003ddata[\u0027weight\u0027])"},{"line_number":167,"context_line":"            if \u0027hosts\u0027 in data:"},{"line_number":168,"context_line":"                self._ctrl.update(partition, hosts\u003ddata[\u0027hosts\u0027])"},{"line_number":169,"context_line":"        except exceptions.PartitionNotFound:"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAS3%2F%2FLQc%3D","line":166,"in_reply_to":"AAAAS3%2F%2FLS8%3D","updated":"2013-10-02 21:45:32.000000000","message":"Good point, I\u0027d prefer having that in this patch. It should be fairly simple to implement.","commit_id":"99aaa0272c1c0761606367d3afa201f4256241af"}],"tests/unit/proxy/test_partitions.py":[{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"2416da4bc13d8f6ae5691e08e6d37844ac238c1a","unresolved":false,"context_lines":[{"line_number":126,"context_line":"        self.assertEquals(self.srmock.status, falcon.HTTP_404)"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"class ExisitingPartitionTest(base.TestBase):"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"    @classmethod"},{"line_number":132,"context_line":"    def setUpClass(cls):"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAS3%2F%2FMi0%3D","line":129,"updated":"2013-10-02 14:58:50.000000000","message":"Exisiting* -\u003e Existing*","commit_id":"da61ffb230c623e9a454f10c383a0e1f9a48df8b"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"2416da4bc13d8f6ae5691e08e6d37844ac238c1a","unresolved":false,"context_lines":[{"line_number":130,"context_line":""},{"line_number":131,"context_line":"    @classmethod"},{"line_number":132,"context_line":"    def setUpClass(cls):"},{"line_number":133,"context_line":"        super(PartitionTest, cls).setUpClass()"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"    def setUp(self):"},{"line_number":136,"context_line":"        super(PartitionTest, self).setUp()"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAS3%2F%2FMjE%3D","line":133,"updated":"2013-10-02 14:58:50.000000000","message":"This is a bug - fixed in the next patch. (PartitionTest -\u003e ExistingPartitionTest)","commit_id":"da61ffb230c623e9a454f10c383a0e1f9a48df8b"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"2416da4bc13d8f6ae5691e08e6d37844ac238c1a","unresolved":false,"context_lines":[{"line_number":133,"context_line":"        super(PartitionTest, cls).setUpClass()"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"    def setUp(self):"},{"line_number":136,"context_line":"        super(PartitionTest, self).setUp()"},{"line_number":137,"context_line":"        self.weight \u003d 100"},{"line_number":138,"context_line":"        self.hosts \u003d [\u0027a\u0027]"},{"line_number":139,"context_line":"        self.name \u003d str(uuid.uuid1())"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAS3%2F%2FMiw%3D","line":136,"updated":"2013-10-02 14:58:50.000000000","message":"This is a bug - fixed in the next patch. (PartitionTest -\u003e ExistingPartitionTest)","commit_id":"da61ffb230c623e9a454f10c383a0e1f9a48df8b"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"2416da4bc13d8f6ae5691e08e6d37844ac238c1a","unresolved":false,"context_lines":[{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    def tearDown(self):"},{"line_number":145,"context_line":"        self.simulate_delete(self.partition_uri)"},{"line_number":146,"context_line":"        super(PartitionTest, self).tearDown()"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    @classmethod"},{"line_number":149,"context_line":"    def tearDownClass(cls):"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAS3%2F%2FMis%3D","line":146,"updated":"2013-10-02 14:58:50.000000000","message":"This is a bug - fixed in the next patch. (PartitionTest -\u003e ExistingPartitionTest)","commit_id":"da61ffb230c623e9a454f10c383a0e1f9a48df8b"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"2416da4bc13d8f6ae5691e08e6d37844ac238c1a","unresolved":false,"context_lines":[{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    @classmethod"},{"line_number":149,"context_line":"    def tearDownClass(cls):"},{"line_number":150,"context_line":"        super(PartitionTest, cls).tearDownClass()"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    def test_patch_weight(self):"},{"line_number":153,"context_line":"        doc \u003d {\u0027weight\u0027: self.weight + 1}"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAS3%2F%2FMio%3D","line":150,"updated":"2013-10-02 14:58:50.000000000","message":"This is a bug - fixed in the next patch. (PartitionTest -\u003e ExistingPartitionTest)","commit_id":"da61ffb230c623e9a454f10c383a0e1f9a48df8b"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"2416da4bc13d8f6ae5691e08e6d37844ac238c1a","unresolved":false,"context_lines":[{"line_number":174,"context_line":"    def test_partition_route_respects_allowed(self):"},{"line_number":175,"context_line":"        for method in (\u0027head\u0027, \u0027delete\u0027, \u0027post\u0027):"},{"line_number":176,"context_line":"            getattr(self, \u0027simulate_\u0027 + method)(self.partition_uri)"},{"line_number":177,"context_line":"            self.assertEqual(self.srmock.status, falcon.HTTP_405)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAS3%2F%2FMik%3D","line":177,"updated":"2013-10-02 14:58:50.000000000","message":"More tests coming. Also, \u0027delete\u0027 is allowed on a partition.","commit_id":"da61ffb230c623e9a454f10c383a0e1f9a48df8b"}]}
