)]}'
{"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":"08e21486c6447f0a1b35bca68a91c8917e153dd6","unresolved":false,"context_lines":[{"line_number":152,"context_line":"            \u0027hosts\u0027: data[\u0027hosts\u0027],"},{"line_number":153,"context_line":"        })"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"    def on_put(self, request, response, partition):"},{"line_number":156,"context_line":"        doc, \u003d utils.filter_stream(request.stream,"},{"line_number":157,"context_line":"                                   request.content_length,"},{"line_number":158,"context_line":"                                   HOSTS_SPEC)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FTl0%3D","line":155,"updated":"2013-09-30 15:04:23.000000000","message":"should it be patch?","commit_id":"db25fab6ddfffacf7316257498927d6c903cf615"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"91c498bb26caffc411dc644af9092af665f67364","unresolved":false,"context_lines":[{"line_number":152,"context_line":"            \u0027hosts\u0027: data[\u0027hosts\u0027],"},{"line_number":153,"context_line":"        })"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"    def on_put(self, request, response, partition):"},{"line_number":156,"context_line":"        doc, \u003d utils.filter_stream(request.stream,"},{"line_number":157,"context_line":"                                   request.content_length,"},{"line_number":158,"context_line":"                                   HOSTS_SPEC)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FSi8%3D","line":155,"in_reply_to":"AAAAS3%2F%2FTfs%3D","updated":"2013-09-30 19:23:28.000000000","message":"Using this implementation, there is no difference between PUT and PATCH. In both cases, users would have to send the entire document, which is a single hosts array. Examples follow:\n\nhttp put localhost:8888/v1/partitions/taco/hosts hosts:\u003d\u0027[\"marconi1.example.com\", \"marconi2.example.com\"]\u0027\n\nhttp patch localhost:8888/v1/partitions/taco/hosts hosts:\u003d\u0027[\"marconi1.example.com\", \"marconi2.example.com\"]\u0027\n\nAm I missing something?\n\nWhere PATCH would make a difference is if I did away with the Host and Weight resources and replaced them with a single on_patch method for partitions.Resource. Example:\n\nhttp put localhost:8888/v1/partitions/taco hosts:\u003d\u0027[\"marconi1.example.com\", \"marconi2.example.com\"]\u0027 weight:\u003d100 \u003d\u003e HTTP 201\n\nhttp put localhost:8888/v1/partitions/taco hosts:\u003d\u0027[\"marconi1.example.com\", \"marconi2.example.com\"]\u0027 weight:\u003d100 \u003d\u003e HTTP 204\n\nhttp patch localhost:8888/v1/partitions/taco hosts:\u003d\u0027[\"marconi1.example.com\"]\u0027 \u003d\u003e HTTP 200\n\nhttp patch localhost:8888/v1/partitions/taco weight:\u003d101 \u003d\u003e HTTP 200\n\nI haven\u0027t read the definition of PATCH in the RFC (http://tools.ietf.org/html/rfc5789), but that\u0027s how it works, AFAICT.\n\nLet me know what you guys think, and thanks for the review. :)","commit_id":"db25fab6ddfffacf7316257498927d6c903cf615"},{"author":{"_account_id":7498,"name":"Malini Kamalambal","email":"malini.kamalambal@rackspace.com","username":"malini-pk"},"change_message_id":"065348a75ac15e97b4a694175c2c4b293def9c0e","unresolved":false,"context_lines":[{"line_number":152,"context_line":"            \u0027hosts\u0027: data[\u0027hosts\u0027],"},{"line_number":153,"context_line":"        })"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"    def on_put(self, request, response, partition):"},{"line_number":156,"context_line":"        doc, \u003d utils.filter_stream(request.stream,"},{"line_number":157,"context_line":"                                   request.content_length,"},{"line_number":158,"context_line":"                                   HOSTS_SPEC)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FTfs%3D","line":155,"in_reply_to":"AAAAS3%2F%2FTl0%3D","updated":"2013-09-30 15:19:59.000000000","message":"+1 for patch. with put the user will have to send the entire doc again.","commit_id":"db25fab6ddfffacf7316257498927d6c903cf615"}],"tests/unit/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":"08e21486c6447f0a1b35bca68a91c8917e153dd6","unresolved":false,"context_lines":[{"line_number":52,"context_line":"        self.name \u003d six.text_type(uuid.uuid1())"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def tearDown(self):"},{"line_number":55,"context_line":"        self.controller.drop()"},{"line_number":56,"context_line":"        super(PartitionsControllerTest, self).tearDown()"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def _check_structure(self, partition):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FTls%3D","line":55,"updated":"2013-09-30 15:04:23.000000000","message":"Wasn\u0027t it drop_all?","commit_id":"db25fab6ddfffacf7316257498927d6c903cf615"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"91c498bb26caffc411dc644af9092af665f67364","unresolved":false,"context_lines":[{"line_number":52,"context_line":"        self.name \u003d six.text_type(uuid.uuid1())"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def tearDown(self):"},{"line_number":55,"context_line":"        self.controller.drop()"},{"line_number":56,"context_line":"        super(PartitionsControllerTest, self).tearDown()"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def _check_structure(self, partition):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FSic%3D","line":55,"in_reply_to":"AAAAS3%2F%2FTls%3D","updated":"2013-09-30 19:23:28.000000000","message":"Yup. I actually forgot to implement it earlier. I updated this in the mirror_queues_transport patch half an hour ago and I\u0027ll rebase in a moment.","commit_id":"db25fab6ddfffacf7316257498927d6c903cf615"}]}
