)]}'
{"neutron_lib/context.py":[{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"7212962fb967880bea5bd097449f4a77a17ebd1c","unresolved":false,"context_lines":[{"line_number":168,"context_line":"        :param rev_number: the revision_number that the resource should be at."},{"line_number":169,"context_line":"        \"\"\""},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"        self._txn_constraint \u003d {\u0027if_revision_match\u0027: rev_number,"},{"line_number":172,"context_line":"                                \u0027resource\u0027: resource,"},{"line_number":173,"context_line":"                                \u0027resource_id\u0027: resource_id}"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"    def clear_transaction_constraint(self):"},{"line_number":176,"context_line":"        self._txn_constraint \u003d None"}],"source_content_type":"text/x-python","patch_set":1,"id":"1f1a1f67_ce1eb46f","line":173,"range":{"start_line":171,"start_character":31,"end_line":173,"end_character":59},"updated":"2017-07-12 19:16:35.000000000","message":"Should we consider a simple data object for this rather than a dict?","commit_id":"dbda8e6bcca35bc2f6b5267613d22fed8f611ca8"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"6a1625e70d992bfe539e82f575b5630fbdee21d4","unresolved":false,"context_lines":[{"line_number":170,"context_line":""},{"line_number":171,"context_line":"        self._txn_constraint \u003d {\u0027if_revision_match\u0027: rev_number,"},{"line_number":172,"context_line":"                                \u0027resource\u0027: resource,"},{"line_number":173,"context_line":"                                \u0027resource_id\u0027: resource_id}"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"    def clear_transaction_constraint(self):"},{"line_number":176,"context_line":"        self._txn_constraint \u003d None"}],"source_content_type":"text/x-python","patch_set":1,"id":"1f1a1f67_32368b05","line":173,"updated":"2017-07-13 13:55:51.000000000","message":"Sure","commit_id":"dbda8e6bcca35bc2f6b5267613d22fed8f611ca8"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"7473d4c1c379d39f9b3f11ad692158b25e52d9e4","unresolved":false,"context_lines":[{"line_number":141,"context_line":"    pass"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"class TransactionConstraint(object):"},{"line_number":145,"context_line":"    \"\"\"Represents a revision number constraint during a transaction."},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"    These can be stored on the context and used by the revision plugin in"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f1a1f67_c13e6328","line":144,"updated":"2017-07-13 16:30:20.000000000","message":"Do you think we\u0027ll ever need to add functionality to this class, or will it always just be a \"data holder\"?\n\n\nIf the later we could consider using a namedtuple instead https://docs.python.org/2/library/collections.html#collections.namedtuple","commit_id":"ea04e8c0ee0540fc1a4ded803fa605573bcce501"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"2b6432f88df4c1f8026966065458e7afcd7b3bdd","unresolved":false,"context_lines":[{"line_number":141,"context_line":"    pass"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"class TransactionConstraint(object):"},{"line_number":145,"context_line":"    \"\"\"Represents a revision number constraint during a transaction."},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"    These can be stored on the context and used by the revision plugin in"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f1a1f67_eda800dc","line":144,"updated":"2017-07-14 20:38:41.000000000","message":"I\u0027ll just use a namedtuple for now. I just forsee it being a data holder.","commit_id":"ea04e8c0ee0540fc1a4ded803fa605573bcce501"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"2b6432f88df4c1f8026966065458e7afcd7b3bdd","unresolved":false,"context_lines":[{"line_number":149,"context_line":"    the constraint before making any changes to it inside of a transaction."},{"line_number":150,"context_line":"    \"\"\""},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    def __init__(self, if_revision_match, resource, resource_id):"},{"line_number":153,"context_line":"        self.if_revision_match \u003d if_revision_match"},{"line_number":154,"context_line":"        self.resource \u003d resource"},{"line_number":155,"context_line":"        self.resource_id \u003d resource_id"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f1a1f67_cdaf84e1","line":152,"updated":"2017-07-14 20:38:41.000000000","message":"I\u0027m going to just turn this into a namedtuple so there won\u0027t be an init method. Is the docstring on L176 okay?","commit_id":"ea04e8c0ee0540fc1a4ded803fa605573bcce501"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"ae98366c6e80a862886c79369cfa14857ba217cb","unresolved":false,"context_lines":[{"line_number":149,"context_line":"    the constraint before making any changes to it inside of a transaction."},{"line_number":150,"context_line":"    \"\"\""},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    def __init__(self, if_revision_match, resource, resource_id):"},{"line_number":153,"context_line":"        self.if_revision_match \u003d if_revision_match"},{"line_number":154,"context_line":"        self.resource \u003d resource"},{"line_number":155,"context_line":"        self.resource_id \u003d resource_id"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f1a1f67_61454fb3","line":152,"updated":"2017-07-13 15:40:07.000000000","message":"add a docstring that documents what these attributes are supposed to be please.","commit_id":"ea04e8c0ee0540fc1a4ded803fa605573bcce501"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"2b6432f88df4c1f8026966065458e7afcd7b3bdd","unresolved":false,"context_lines":[{"line_number":189,"context_line":"    def clear_transaction_constraint(self):"},{"line_number":190,"context_line":"        self._txn_constraint \u003d None"},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"    def get_transaction_constraint(self):"},{"line_number":193,"context_line":"        return self._txn_constraint"},{"line_number":194,"context_line":""},{"line_number":195,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1f1a1f67_adaa08cf","line":192,"updated":"2017-07-14 20:38:41.000000000","message":"It\u0027s weird to me to use a property setter when it constructs and object from the input and that\u0027s what\u0027s returned from the getter.\n\nSo you end up with this for the setter:\n\nctx.constraint \u003d (resource, resource_id, rev_number)\n\nbut then ctx.constraint will now return a TransactionConstraint object","commit_id":"ea04e8c0ee0540fc1a4ded803fa605573bcce501"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"ae98366c6e80a862886c79369cfa14857ba217cb","unresolved":false,"context_lines":[{"line_number":189,"context_line":"    def clear_transaction_constraint(self):"},{"line_number":190,"context_line":"        self._txn_constraint \u003d None"},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"    def get_transaction_constraint(self):"},{"line_number":193,"context_line":"        return self._txn_constraint"},{"line_number":194,"context_line":""},{"line_number":195,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1f1a1f67_c1278312","line":192,"updated":"2017-07-13 15:40:07.000000000","message":"any reason why you did not choose property getter/setters?","commit_id":"ea04e8c0ee0540fc1a4ded803fa605573bcce501"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"752f53acf108dfe3339bb78105fab4fb9341732d","unresolved":false,"context_lines":[{"line_number":166,"context_line":"    def set_transaction_constraint(self, resource, resource_id, rev_number):"},{"line_number":167,"context_line":"        \"\"\"Set a revision constraint to enfore before resource_id is changed."},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"        :param resource: collection name of resource (e.g. ports or networks)"},{"line_number":170,"context_line":"        :param resource_id: the primary key ID of the individiual resource that"},{"line_number":171,"context_line":"                            should have its revision number matched before"},{"line_number":172,"context_line":"                            allowing the transaction to proceed."}],"source_content_type":"text/x-python","patch_set":3,"id":"1f1a1f67_8d086c2c","line":169,"updated":"2017-07-14 21:13:29.000000000","message":"Well I think whenever we make a change in neutron to use this it should come with a corresponding test to make sure it works.","commit_id":"6a2040fcdb62b44d63757f3fc9ac13a8f7537c82"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"c7f694cf014b2e4f66f250f1b95235f41232cd35","unresolved":false,"context_lines":[{"line_number":166,"context_line":"    def set_transaction_constraint(self, resource, resource_id, rev_number):"},{"line_number":167,"context_line":"        \"\"\"Set a revision constraint to enfore before resource_id is changed."},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"        :param resource: collection name of resource (e.g. ports or networks)"},{"line_number":170,"context_line":"        :param resource_id: the primary key ID of the individiual resource that"},{"line_number":171,"context_line":"                            should have its revision number matched before"},{"line_number":172,"context_line":"                            allowing the transaction to proceed."}],"source_content_type":"text/x-python","patch_set":3,"id":"1f1a1f67_4d325412","line":169,"updated":"2017-07-14 21:10:51.000000000","message":"as this now a plain string, what can we do to minimize the typo chance?","commit_id":"6a2040fcdb62b44d63757f3fc9ac13a8f7537c82"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"664cee9bcc532f3fe1a092f2024e3790144f56af","unresolved":false,"context_lines":[{"line_number":166,"context_line":"    def set_transaction_constraint(self, resource, resource_id, rev_number):"},{"line_number":167,"context_line":"        \"\"\"Set a revision constraint to enfore before resource_id is changed."},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"        :param resource: collection name of resource (e.g. ports or networks)"},{"line_number":170,"context_line":"        :param resource_id: the primary key ID of the individiual resource that"},{"line_number":171,"context_line":"                            should have its revision number matched before"},{"line_number":172,"context_line":"                            allowing the transaction to proceed."}],"source_content_type":"text/x-python","patch_set":3,"id":"1f1a1f67_6d8e30d1","line":169,"range":{"start_line":169,"start_character":76,"end_line":169,"end_character":77},"updated":"2017-07-14 21:09:24.000000000","message":"nit: period at end of sentence","commit_id":"6a2040fcdb62b44d63757f3fc9ac13a8f7537c82"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"d5dc6551a3a113a24c196debf57eb944fb3f2ef6","unresolved":false,"context_lines":[{"line_number":166,"context_line":"    def set_transaction_constraint(self, resource, resource_id, rev_number):"},{"line_number":167,"context_line":"        \"\"\"Set a revision constraint to enfore before resource_id is changed."},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"        :param resource: collection name of resource (e.g. ports or networks)"},{"line_number":170,"context_line":"        :param resource_id: the primary key ID of the individiual resource that"},{"line_number":171,"context_line":"                            should have its revision number matched before"},{"line_number":172,"context_line":"                            allowing the transaction to proceed."}],"source_content_type":"text/x-python","patch_set":3,"id":"1f1a1f67_b1af02e2","line":169,"in_reply_to":"1f1a1f67_8d086c2c","updated":"2017-07-14 21:17:34.000000000","message":"yeah, right.","commit_id":"6a2040fcdb62b44d63757f3fc9ac13a8f7537c82"}]}
