)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"a3be72b6f72ce8403ef2a727077cbe66a3d95e43","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Added ACL client API support."},{"line_number":10,"context_line":"Added ACL client API specific unit tests."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Refactored client code as per meeyup comments."},{"line_number":13,"context_line":"Modified client get call to return data which can be looked by"},{"line_number":14,"context_line":"operation_type value."},{"line_number":15,"context_line":"Moved add and remove users calls to cli as for client side, client"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":13,"id":"9a1a9d01_1ddd6114","line":12,"updated":"2015-09-28 18:39:50.000000000","message":"nit - spelling of meetup","commit_id":"5ed054c5cb63a8c377684129668fedb741d1212a"}],"barbicanclient/acls.py":[{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"6655133f614c4a84375980defaa75e69ab65b17e","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        return data"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"class ACL(ACLFormatter):"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"    _entity \u003d \u0027acl\u0027"},{"line_number":52,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_6a2b7083","line":49,"updated":"2015-08-04 01:32:38.000000000","message":"Can ACLFormatter just be pulled into ACL to flatten the class hierarchy a bit?","commit_id":"a5e0a45edb8cfa636e6575d335299f453a1b36c1"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"b95943ecf0b8e66199ad3f0895e1254aef905469","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        return data"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"class ACL(ACLFormatter):"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"    _entity \u003d \u0027acl\u0027"},{"line_number":52,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_7a7a4726","line":49,"in_reply_to":"1a4dcd0f_6a2b7083","updated":"2015-08-04 14:45:20.000000000","message":"Well, that\u0027s something that we\u0027ve been doing for the other classes. IIRC I first intended the Formatter classes to be a mixin in order to get the specific info for entities in the way cliff needs.","commit_id":"a5e0a45edb8cfa636e6575d335299f453a1b36c1"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"3b38706801304331f71069820ee20866bfaeb330","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        return data"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"class ACL(ACLFormatter):"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"    _entity \u003d \u0027acl\u0027"},{"line_number":52,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_0bbddbd6","line":49,"in_reply_to":"1a4dcd0f_7a7a4726","updated":"2015-08-10 19:01:59.000000000","message":"As Juan mentioned above, did not try to deviate from the pattern followed in other client classes. I will certainly bring it to one class if there are more concerns raised around this.","commit_id":"a5e0a45edb8cfa636e6575d335299f453a1b36c1"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"b95943ecf0b8e66199ad3f0895e1254aef905469","unresolved":false,"context_lines":[{"line_number":107,"context_line":"    def updated(self):"},{"line_number":108,"context_line":"        return self._updated"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"    def set(self):"},{"line_number":111,"context_line":"        \"\"\"Set ACLs for a secret or a container defined in Barbican"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"        In existing ACL case, this overwrites the existing ACL setting with"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_7a24870c","line":110,"updated":"2015-08-04 14:45:20.000000000","message":"This verb seems slightly confusing for me. I would expect set be part of the \"getter/setter\" pattern, and expect it to receive an argument. Seems to me like a more appropriate naming would be to use the same approach as the other classes are using, a verb such as store or submit. Any thoughts?","commit_id":"a5e0a45edb8cfa636e6575d335299f453a1b36c1"},{"author":{"_account_id":15274,"name":"Christopher Solis","email":"cnsolis@us.ibm.com","username":"cplusone"},"change_message_id":"6d877d86b00cb78596e1c4d6d0bd8f09af34b69d","unresolved":false,"context_lines":[{"line_number":107,"context_line":"    def updated(self):"},{"line_number":108,"context_line":"        return self._updated"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"    def set(self):"},{"line_number":111,"context_line":"        \"\"\"Set ACLs for a secret or a container defined in Barbican"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"        In existing ACL case, this overwrites the existing ACL setting with"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_38374b4e","line":110,"in_reply_to":"1a4dcd0f_7a24870c","updated":"2015-08-06 21:20:07.000000000","message":"I like the idea of using submit because in the orders class in barbicanclient submit is used to make sure that the order is put into barbican and persisted which is what looks like is happening here.","commit_id":"a5e0a45edb8cfa636e6575d335299f453a1b36c1"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"b95943ecf0b8e66199ad3f0895e1254aef905469","unresolved":false,"context_lines":[{"line_number":135,"context_line":""},{"line_number":136,"context_line":"        return response.json().get(\u0027acl_ref\u0027)"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"    def add(self):"},{"line_number":139,"context_line":"        \"\"\"Add users to a secret or a container ACL defined in Barbican"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        Provided users are added to existing ACL users if there. If input users"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_1a9463e0","line":138,"updated":"2015-08-04 14:45:20.000000000","message":"Seems to me like it would be more intuitive for the add function to receive one or more users to be added to the ACL","commit_id":"a5e0a45edb8cfa636e6575d335299f453a1b36c1"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"3b38706801304331f71069820ee20866bfaeb330","unresolved":false,"context_lines":[{"line_number":135,"context_line":""},{"line_number":136,"context_line":"        return response.json().get(\u0027acl_ref\u0027)"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"    def add(self):"},{"line_number":139,"context_line":"        \"\"\"Add users to a secret or a container ACL defined in Barbican"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        Provided users are added to existing ACL users if there. If input users"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_ab82a7c6","line":138,"in_reply_to":"1a4dcd0f_1a9463e0","updated":"2015-08-10 19:01:59.000000000","message":"As per meetup discussion, now on API (not CLI) side, client first will get ACL first and then will make changes to retrieved ACL data. And change could be related \"to adding users\" or \"to remove users\" from existing ACL. All changes will be persisted via \u0027submit\u0027 API on ACL entity. Which also means that there is NOT going to be any separate \u0027add\u0027 or \u0027remove\u0027 API. \n\nNote: Only on CLI side, we will have separate sub-commands related to \u0027add\u0027 or \u0027remove\u0027 users behavior.","commit_id":"a5e0a45edb8cfa636e6575d335299f453a1b36c1"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"b95943ecf0b8e66199ad3f0895e1254aef905469","unresolved":false,"context_lines":[{"line_number":171,"context_line":""},{"line_number":172,"context_line":"        return response.json().get(\u0027acl_ref\u0027)"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"    def remove(self):"},{"line_number":175,"context_line":"        \"\"\"Remove users from a secret or a container ACL defined in Barbican"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"        Provided users are removed from existing ACL users if there. If any of"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_dabcbb6e","line":174,"updated":"2015-08-04 14:45:20.000000000","message":"same comment as for the add operation","commit_id":"a5e0a45edb8cfa636e6575d335299f453a1b36c1"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"3b38706801304331f71069820ee20866bfaeb330","unresolved":false,"context_lines":[{"line_number":171,"context_line":""},{"line_number":172,"context_line":"        return response.json().get(\u0027acl_ref\u0027)"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"    def remove(self):"},{"line_number":175,"context_line":"        \"\"\"Remove users from a secret or a container ACL defined in Barbican"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"        Provided users are removed from existing ACL users if there. If any of"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_6eca6d51","line":174,"in_reply_to":"1a4dcd0f_dabcbb6e","updated":"2015-08-10 19:01:59.000000000","message":"same reply as on Line # 138","commit_id":"a5e0a45edb8cfa636e6575d335299f453a1b36c1"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"6655133f614c4a84375980defaa75e69ab65b17e","unresolved":false,"context_lines":[{"line_number":214,"context_line":"            raise ValueError(\u0027List of users expected.\u0027)"},{"line_number":215,"context_line":""},{"line_number":216,"context_line":"    @staticmethod"},{"line_number":217,"context_line":"    def validate_input_ref(entity_ref):"},{"line_number":218,"context_line":"        if not entity_ref:"},{"line_number":219,"context_line":"            raise ValueError(\u0027Secret or container href is required.\u0027)"},{"line_number":220,"context_line":"        if \u0027/secrets\u0027 in entity_ref:"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_65096395","line":217,"updated":"2015-08-04 01:32:38.000000000","message":"Not sure if class methods are convention on the client side, but if not I\u0027d prefer a instance method that gets overridden, so the secrets and containers validation parts are done by the respective sub-classes, rather than having if/then tests.","commit_id":"a5e0a45edb8cfa636e6575d335299f453a1b36c1"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"3b38706801304331f71069820ee20866bfaeb330","unresolved":false,"context_lines":[{"line_number":214,"context_line":"            raise ValueError(\u0027List of users expected.\u0027)"},{"line_number":215,"context_line":""},{"line_number":216,"context_line":"    @staticmethod"},{"line_number":217,"context_line":"    def validate_input_ref(entity_ref):"},{"line_number":218,"context_line":"        if not entity_ref:"},{"line_number":219,"context_line":"            raise ValueError(\u0027Secret or container href is required.\u0027)"},{"line_number":220,"context_line":"        if \u0027/secrets\u0027 in entity_ref:"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_ae98756b","line":217,"in_reply_to":"1a4dcd0f_22000801","updated":"2015-08-10 19:01:59.000000000","message":"Currently there is factory method \u0027create\u0027 used to instantiate ACL class. (https://review.openstack.org/#/c/208343/2/doc/source/usage.rst,cm Line 190).\n\nInternally this factory method creates secret or container ACL entity depending on provided URI ref. And that\u0027s where this validation returns the data which entity to create after URI validation. Still there is need to have basic validation to identity which class to instantiate as need to look for a pattern (\u0027/secrets\u0027 or \u0027/containers\u0027) in provided URI. Opted for non-instance method as URI validation is entity pre-instantiation step. Only \u0027/acl\u0027 check and Line #233 check can be done in per instance validation.\n\nAs per meetup discussion, client will retrieve the existing ACL and then will apply needed changes via \u0027submit\u0027 API (new name for \u0027set\u0027 API). I will post the changes and see what\u0027s the feedback on that.","commit_id":"a5e0a45edb8cfa636e6575d335299f453a1b36c1"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"b95943ecf0b8e66199ad3f0895e1254aef905469","unresolved":false,"context_lines":[{"line_number":214,"context_line":"            raise ValueError(\u0027List of users expected.\u0027)"},{"line_number":215,"context_line":""},{"line_number":216,"context_line":"    @staticmethod"},{"line_number":217,"context_line":"    def validate_input_ref(entity_ref):"},{"line_number":218,"context_line":"        if not entity_ref:"},{"line_number":219,"context_line":"            raise ValueError(\u0027Secret or container href is required.\u0027)"},{"line_number":220,"context_line":"        if \u0027/secrets\u0027 in entity_ref:"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_22000801","line":217,"in_reply_to":"1a4dcd0f_65096395","updated":"2015-08-04 14:45:20.000000000","message":"I\u0027m also unsure if this is the best approach too. With client-side code we need to think about usability. What would make our \"users\" (meaning other developers) have the easiest time using this API. And it seems to me like having sub-classes would be the best option. Maybe the user could create ACL objects through a factory method? Either way, I don\u0027t think the current approach is very intuitive.","commit_id":"a5e0a45edb8cfa636e6575d335299f453a1b36c1"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"b9bb65caab7c5848931ba54d3e133b164782938f","unresolved":false,"context_lines":[{"line_number":143,"context_line":"            if acl_entity.operation_acls:"},{"line_number":144,"context_line":"                acl_entity.submit()"},{"line_number":145,"context_line":"            else:"},{"line_number":146,"context_line":"                acl_entity.remove()"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    def _validate_users_type(self):"},{"line_number":149,"context_line":"        if self.users and not (type(self.users) is list or"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa1b9901_35c0207c","line":146,"updated":"2015-08-25 10:27:42.000000000","message":"a comment explaining this section would be useful.","commit_id":"72726ac1dd9e439d604d4f5589de5294e9fba808"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"e6dbccbd222fb697cfab543da475b904bfd69bab","unresolved":false,"context_lines":[{"line_number":143,"context_line":"            if acl_entity.operation_acls:"},{"line_number":144,"context_line":"                acl_entity.submit()"},{"line_number":145,"context_line":"            else:"},{"line_number":146,"context_line":"                acl_entity.remove()"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    def _validate_users_type(self):"},{"line_number":149,"context_line":"        if self.users and not (type(self.users) is list or"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa1b9901_2ae504a3","line":146,"in_reply_to":"fa1b9901_35c0207c","updated":"2015-08-25 16:55:04.000000000","message":"Will add the comment in next patch.","commit_id":"72726ac1dd9e439d604d4f5589de5294e9fba808"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"b9bb65caab7c5848931ba54d3e133b164782938f","unresolved":false,"context_lines":[{"line_number":230,"context_line":"        if match !\u003d -1:"},{"line_number":231,"context_line":"            self._operation_acls[match] \u003d new_acl"},{"line_number":232,"context_line":"        else:"},{"line_number":233,"context_line":"            self._operation_acls.append(new_acl)"},{"line_number":234,"context_line":""},{"line_number":235,"context_line":"    def _get_operation_acl(self, operation_type):"},{"line_number":236,"context_line":"            return next((acl for acl in self._operation_acls"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa1b9901_1bcd0d5d","line":233,"updated":"2015-08-25 10:27:42.000000000","message":"The could could get a lot simpler if you would define the __eq__ and __ne__ operations in the _PerOperationACL . That way, you could directly insert or replace objects to the _operation_acls list, instead of having this logic (lines 225 to 233)","commit_id":"72726ac1dd9e439d604d4f5589de5294e9fba808"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"e6dbccbd222fb697cfab543da475b904bfd69bab","unresolved":false,"context_lines":[{"line_number":230,"context_line":"        if match !\u003d -1:"},{"line_number":231,"context_line":"            self._operation_acls[match] \u003d new_acl"},{"line_number":232,"context_line":"        else:"},{"line_number":233,"context_line":"            self._operation_acls.append(new_acl)"},{"line_number":234,"context_line":""},{"line_number":235,"context_line":"    def _get_operation_acl(self, operation_type):"},{"line_number":236,"context_line":"            return next((acl for acl in self._operation_acls"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa1b9901_ea214c4e","line":233,"in_reply_to":"fa1b9901_1bcd0d5d","updated":"2015-08-25 16:55:04.000000000","message":"I did look into doing this way and thought of keeping it simple as its just one place where this kind of find and replace logic is needed. With comparison methods, will still need to find index to decide about replace or append step as its a list.\n\ntry:\n    index \u003d self._operation_acls.index(new_acl)\n    self._operation_acls[index] \u003d new_acl\nexcept ValueError:\n    self._operation_acls.append(new_acl)","commit_id":"72726ac1dd9e439d604d4f5589de5294e9fba808"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"b9bb65caab7c5848931ba54d3e133b164782938f","unresolved":false,"context_lines":[{"line_number":388,"context_line":"            raise ValueError(\u0027Container URI is not specified.\u0027)"},{"line_number":389,"context_line":""},{"line_number":390,"context_line":"        base.validate_ref(self.entity_ref, ref_type)"},{"line_number":391,"context_line":"        return ref_type"},{"line_number":392,"context_line":""},{"line_number":393,"context_line":""},{"line_number":394,"context_line":"class ACLManager(base.BaseEntityManager):"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa1b9901_fb02993d","line":391,"updated":"2015-08-25 10:27:42.000000000","message":"The code of the SecretACL and the ContainerACL seems really similar. Probably it could be done by having this code in the base class, and having these child classes only define some variables.\n\nFor instance, you could replace the instances of \u0027/secrets\u0027 by an entity_path variable. and the ref_type is pretty much the same as the _acl_type variable that you have already defined.","commit_id":"72726ac1dd9e439d604d4f5589de5294e9fba808"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"e6dbccbd222fb697cfab543da475b904bfd69bab","unresolved":false,"context_lines":[{"line_number":388,"context_line":"            raise ValueError(\u0027Container URI is not specified.\u0027)"},{"line_number":389,"context_line":""},{"line_number":390,"context_line":"        base.validate_ref(self.entity_ref, ref_type)"},{"line_number":391,"context_line":"        return ref_type"},{"line_number":392,"context_line":""},{"line_number":393,"context_line":""},{"line_number":394,"context_line":"class ACLManager(base.BaseEntityManager):"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa1b9901_d1f6835c","line":391,"in_reply_to":"fa1b9901_fb02993d","updated":"2015-08-25 16:55:04.000000000","message":"okay. will make this change in next patch.","commit_id":"72726ac1dd9e439d604d4f5589de5294e9fba808"},{"author":{"_account_id":15274,"name":"Christopher Solis","email":"cnsolis@us.ibm.com","username":"cplusone"},"change_message_id":"8add5f2058825281bbe450884be8277d0cccde52","unresolved":false,"context_lines":[{"line_number":233,"context_line":"        if match !\u003d -1:"},{"line_number":234,"context_line":"            self._operation_acls[match] \u003d new_acl"},{"line_number":235,"context_line":"        else:"},{"line_number":236,"context_line":"            self._operation_acls.append(new_acl)"},{"line_number":237,"context_line":""},{"line_number":238,"context_line":"    def _get_operation_acl(self, operation_type):"},{"line_number":239,"context_line":"            return next((acl for acl in self._operation_acls"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa1b9901_e1aaca70","line":236,"updated":"2015-08-25 20:57:26.000000000","message":"I think you can use for-else here make the code a little more simple.\n\nSomething like: \n\nfor index, acl in enumerate(acls_list):\n    if operation type present:\n        #Replace\n        break\nelse:\n    append\n\nThe else will only execute if the for loop was never broken out of.","commit_id":"c993e2d79f2f1ce72ca7ff8eac987b01ccc854c1"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"7704d1a93e86eef6f464989c026ee526dbc385aa","unresolved":false,"context_lines":[{"line_number":233,"context_line":"        if match !\u003d -1:"},{"line_number":234,"context_line":"            self._operation_acls[match] \u003d new_acl"},{"line_number":235,"context_line":"        else:"},{"line_number":236,"context_line":"            self._operation_acls.append(new_acl)"},{"line_number":237,"context_line":""},{"line_number":238,"context_line":"    def _get_operation_acl(self, operation_type):"},{"line_number":239,"context_line":"            return next((acl for acl in self._operation_acls"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa1b9901_1a32b9a7","line":236,"in_reply_to":"fa1b9901_e1aaca70","updated":"2015-08-26 04:43:39.000000000","message":"Yes, this seems to be better as its shorter code. Will make this change.","commit_id":"c993e2d79f2f1ce72ca7ff8eac987b01ccc854c1"},{"author":{"_account_id":15274,"name":"Christopher Solis","email":"cnsolis@us.ibm.com","username":"cplusone"},"change_message_id":"8add5f2058825281bbe450884be8277d0cccde52","unresolved":false,"context_lines":[{"line_number":322,"context_line":"                                   users\u003dusers, created\u003dcreated,"},{"line_number":323,"context_line":"                                   updated\u003dupdated)"},{"line_number":324,"context_line":""},{"line_number":325,"context_line":"    def validate_input_ref(self):"},{"line_number":326,"context_line":"        res_title \u003d self._acl_type.title()"},{"line_number":327,"context_line":"        if not self.entity_ref:"},{"line_number":328,"context_line":"            raise ValueError(\u0027{0} href is required.\u0027.format(res_title))"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa1b9901_c755561e","line":325,"updated":"2015-08-25 20:57:26.000000000","message":"Isn\u0027t it a little weird _acl_type is defined in the child ACL classes but only accessed in the parent? I don\u0027t really know if this is the norm but shouldn\u0027t there at least be an _acl_type default value in the parent for the child to overwrite?","commit_id":"c993e2d79f2f1ce72ca7ff8eac987b01ccc854c1"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"7704d1a93e86eef6f464989c026ee526dbc385aa","unresolved":false,"context_lines":[{"line_number":322,"context_line":"                                   users\u003dusers, created\u003dcreated,"},{"line_number":323,"context_line":"                                   updated\u003dupdated)"},{"line_number":324,"context_line":""},{"line_number":325,"context_line":"    def validate_input_ref(self):"},{"line_number":326,"context_line":"        res_title \u003d self._acl_type.title()"},{"line_number":327,"context_line":"        if not self.entity_ref:"},{"line_number":328,"context_line":"            raise ValueError(\u0027{0} href is required.\u0027.format(res_title))"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa1b9901_fa0585c1","line":325,"in_reply_to":"fa1b9901_c755561e","updated":"2015-08-26 04:43:39.000000000","message":"As per my limited understanding of python, not every (class) variable needs to be defined statically in parent class. Instance variable can be defined and discovered at runtime. In this case, both of child classes have value defined. \n\nIt will be better to have error here if hypothetically someone adds new child class without defining these variables than having None values.","commit_id":"c993e2d79f2f1ce72ca7ff8eac987b01ccc854c1"},{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"67c41ebc02d566aa8f328a30c12d6efb8ce9be5b","unresolved":false,"context_lines":[{"line_number":129,"context_line":"        :raises barbicanclient.exceptions.HTTPAuthError: 401 Responses"},{"line_number":130,"context_line":"        :raises barbicanclient.exceptions.HTTPClientError: 4xx Responses"},{"line_number":131,"context_line":"        \"\"\""},{"line_number":132,"context_line":"        LOG.debug(\u0027Removing {0} operation specific ACL for href: {0}\u0027"},{"line_number":133,"context_line":"                  .format(self.operation_type, self.acl_ref))"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"        self._parent_acl.load_acls_data()"}],"source_content_type":"text/x-python","patch_set":11,"id":"da20952f_55f6dff9","line":132,"updated":"2015-08-28 20:16:24.000000000","message":"Shouldn\u0027t it be:\n\n\u0027Removing {0} operation specific ACL for href: {1}\u0027, otherwise it will just print operation_type twice?","commit_id":"f26394ac77bb28d01c127936a23b0f11ee174d42"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"aa7ee734bce16527f8c8b6b2b54ddd229c7b04ca","unresolved":false,"context_lines":[{"line_number":129,"context_line":"        :raises barbicanclient.exceptions.HTTPAuthError: 401 Responses"},{"line_number":130,"context_line":"        :raises barbicanclient.exceptions.HTTPClientError: 4xx Responses"},{"line_number":131,"context_line":"        \"\"\""},{"line_number":132,"context_line":"        LOG.debug(\u0027Removing {0} operation specific ACL for href: {0}\u0027"},{"line_number":133,"context_line":"                  .format(self.operation_type, self.acl_ref))"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"        self._parent_acl.load_acls_data()"}],"source_content_type":"text/x-python","patch_set":11,"id":"da20952f_e82716c8","line":132,"in_reply_to":"da20952f_55f6dff9","updated":"2015-08-28 20:59:01.000000000","message":"Yes, it needs to be fixed. Will address in next patch.","commit_id":"f26394ac77bb28d01c127936a23b0f11ee174d42"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"992332422fc4383ca578356bef8a610565abd71e","unresolved":false,"context_lines":[{"line_number":289,"context_line":"        self.validate_input_ref()"},{"line_number":290,"context_line":""},{"line_number":291,"context_line":"        acl_dict \u003d {}"},{"line_number":292,"context_line":""},{"line_number":293,"context_line":"        for per_op_acl in self.operation_acls:"},{"line_number":294,"context_line":"            per_op_acl._validate_users_type()"},{"line_number":295,"context_line":"            op_type \u003d per_op_acl.operation_type"}],"source_content_type":"text/x-python","patch_set":12,"id":"da20952f_8cc72e95","line":292,"updated":"2015-09-01 06:20:25.000000000","message":"Maybe change per_op_acl to per_operation_acl so that it is easier to read/understand.","commit_id":"21f619d4285f2d86ecbb1863a181548bc84a6c75"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"c64f03d7884d9a3d59b923415fb11ee6200fc0ee","unresolved":false,"context_lines":[{"line_number":289,"context_line":"        self.validate_input_ref()"},{"line_number":290,"context_line":""},{"line_number":291,"context_line":"        acl_dict \u003d {}"},{"line_number":292,"context_line":""},{"line_number":293,"context_line":"        for per_op_acl in self.operation_acls:"},{"line_number":294,"context_line":"            per_op_acl._validate_users_type()"},{"line_number":295,"context_line":"            op_type \u003d per_op_acl.operation_type"}],"source_content_type":"text/x-python","patch_set":12,"id":"da20952f_e2125709","line":292,"in_reply_to":"da20952f_8cc72e95","updated":"2015-09-01 16:10:15.000000000","message":"Have to use short otherwise will need to wrap lines e.g. Line #298","commit_id":"21f619d4285f2d86ecbb1863a181548bc84a6c75"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"992332422fc4383ca578356bef8a610565abd71e","unresolved":false,"context_lines":[{"line_number":343,"context_line":"                                   updated\u003dupdated)"},{"line_number":344,"context_line":""},{"line_number":345,"context_line":"    def validate_input_ref(self):"},{"line_number":346,"context_line":"        res_title \u003d self._acl_type.title()"},{"line_number":347,"context_line":"        if not self.entity_ref:"},{"line_number":348,"context_line":"            raise ValueError(\u0027{0} href is required.\u0027.format(res_title))"},{"line_number":349,"context_line":"        if self._parent_entity_path in self.entity_ref:"}],"source_content_type":"text/x-python","patch_set":12,"id":"da20952f_6c4f3a34","line":346,"updated":"2015-09-01 06:20:25.000000000","message":"Why is it named res_title?","commit_id":"21f619d4285f2d86ecbb1863a181548bc84a6c75"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"c64f03d7884d9a3d59b923415fb11ee6200fc0ee","unresolved":false,"context_lines":[{"line_number":343,"context_line":"                                   updated\u003dupdated)"},{"line_number":344,"context_line":""},{"line_number":345,"context_line":"    def validate_input_ref(self):"},{"line_number":346,"context_line":"        res_title \u003d self._acl_type.title()"},{"line_number":347,"context_line":"        if not self.entity_ref:"},{"line_number":348,"context_line":"            raise ValueError(\u0027{0} href is required.\u0027.format(res_title))"},{"line_number":349,"context_line":"        if self._parent_entity_path in self.entity_ref:"}],"source_content_type":"text/x-python","patch_set":12,"id":"da20952f_62ede7ee","line":346,"in_reply_to":"da20952f_6c4f3a34","updated":"2015-09-01 16:10:15.000000000","message":"Its title for resource so expected value is \u0027Container\u0027 or \u0027Secret\u0027.","commit_id":"21f619d4285f2d86ecbb1863a181548bc84a6c75"}],"barbicanclient/tests/test_acls.py":[{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"b9bb65caab7c5848931ba54d3e133b164782938f","unresolved":false,"context_lines":[{"line_number":36,"context_line":"        self.manager \u003d self.client.acls"},{"line_number":37,"context_line":"        self.users1 \u003d [\u00272d0ee7c681cc4549b6d76769c320d91f\u0027,"},{"line_number":38,"context_line":"                       \u0027721e27b8505b499e8ab3b38154705b9e\u0027]"},{"line_number":39,"context_line":"        self.users2 \u003d [\u00272d0ee7c681cc4549b6d76769c320d91f\u0027]"},{"line_number":40,"context_line":"        self.created \u003d str(timeutils.utcnow())"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    def get_acl_response_data(self, operation_type\u003d\u0027read\u0027,"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa1b9901_7b18c984","line":39,"updated":"2015-08-25 10:27:42.000000000","message":"if you\u0027re gonna hard-code UUIDs like this, I recommend using easily readable UUIDs. Since this is meant for testing.\n\nSomething such as 00000000-0000-0000-0000-000000000001 , 00000000-0000-0000-0000-000000000002 and so on. Since that\u0027s easier to read.","commit_id":"72726ac1dd9e439d604d4f5589de5294e9fba808"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"e6dbccbd222fb697cfab543da475b904bfd69bab","unresolved":false,"context_lines":[{"line_number":36,"context_line":"        self.manager \u003d self.client.acls"},{"line_number":37,"context_line":"        self.users1 \u003d [\u00272d0ee7c681cc4549b6d76769c320d91f\u0027,"},{"line_number":38,"context_line":"                       \u0027721e27b8505b499e8ab3b38154705b9e\u0027]"},{"line_number":39,"context_line":"        self.users2 \u003d [\u00272d0ee7c681cc4549b6d76769c320d91f\u0027]"},{"line_number":40,"context_line":"        self.created \u003d str(timeutils.utcnow())"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    def get_acl_response_data(self, operation_type\u003d\u0027read\u0027,"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa1b9901_a52ce599","line":39,"in_reply_to":"fa1b9901_7b18c984","updated":"2015-08-25 16:55:04.000000000","message":"Actually its needs to be valid UUID as there is validation done on these ids. The other approach could have been to generate them instead but generation vs pre-defined value is not relevant here.","commit_id":"72726ac1dd9e439d604d4f5589de5294e9fba808"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"b9bb65caab7c5848931ba54d3e133b164782938f","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        # check if trailing slashes are corrected in get call."},{"line_number":71,"context_line":"        self.manager.get(acl_ref\u003dself.secret_acl_ref + \u0027///\u0027)"},{"line_number":72,"context_line":"        self.assertEqual(self.secret_acl_ref,"},{"line_number":73,"context_line":"                         self.responses.last_request.url)"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"    def test_should_get_container_acl(self):"},{"line_number":76,"context_line":"        self.responses.get(self.container_acl_ref,"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa1b9901_a602c407","line":73,"updated":"2015-08-25 10:27:42.000000000","message":"Seems to me like lines 68 to 73 are a different test.","commit_id":"72726ac1dd9e439d604d4f5589de5294e9fba808"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"e6dbccbd222fb697cfab543da475b904bfd69bab","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        # check if trailing slashes are corrected in get call."},{"line_number":71,"context_line":"        self.manager.get(acl_ref\u003dself.secret_acl_ref + \u0027///\u0027)"},{"line_number":72,"context_line":"        self.assertEqual(self.secret_acl_ref,"},{"line_number":73,"context_line":"                         self.responses.last_request.url)"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"    def test_should_get_container_acl(self):"},{"line_number":76,"context_line":"        self.responses.get(self.container_acl_ref,"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa1b9901_05435143","line":73,"in_reply_to":"fa1b9901_a602c407","updated":"2015-08-25 16:55:04.000000000","message":"Okay. Will separate them out.","commit_id":"72726ac1dd9e439d604d4f5589de5294e9fba808"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"b9bb65caab7c5848931ba54d3e133b164782938f","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        # check if trailing slashes are corrected in get call."},{"line_number":89,"context_line":"        self.manager.get(acl_ref\u003dself.container_acl_ref + \u0027///\u0027)"},{"line_number":90,"context_line":"        self.assertEqual(self.container_acl_ref,"},{"line_number":91,"context_line":"                         self.responses.last_request.url)"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    def test_should_fail_get_no_href(self):"},{"line_number":94,"context_line":"        self.assertRaises(ValueError, self.manager.get, None)"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa1b9901_8626a0b8","line":91,"updated":"2015-08-25 10:27:42.000000000","message":"same comment. It would be easier for the reader to understand if you define a specific test for this.","commit_id":"72726ac1dd9e439d604d4f5589de5294e9fba808"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"e6dbccbd222fb697cfab543da475b904bfd69bab","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        # check if trailing slashes are corrected in get call."},{"line_number":89,"context_line":"        self.manager.get(acl_ref\u003dself.container_acl_ref + \u0027///\u0027)"},{"line_number":90,"context_line":"        self.assertEqual(self.container_acl_ref,"},{"line_number":91,"context_line":"                         self.responses.last_request.url)"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    def test_should_fail_get_no_href(self):"},{"line_number":94,"context_line":"        self.assertRaises(ValueError, self.manager.get, None)"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa1b9901_456b89b9","line":91,"in_reply_to":"fa1b9901_8626a0b8","updated":"2015-08-25 16:55:04.000000000","message":"Okay. Will separate them out.","commit_id":"72726ac1dd9e439d604d4f5589de5294e9fba808"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"b9bb65caab7c5848931ba54d3e133b164782938f","unresolved":false,"context_lines":[{"line_number":192,"context_line":"        self.assertEqual(self.container_acl_ref,"},{"line_number":193,"context_line":"                         self.responses.last_request.url)"},{"line_number":194,"context_line":"        self.assertEqual(self.users2, entity.read.users)"},{"line_number":195,"context_line":"        self.assertIsNone(entity.get(\u0027read\u0027).project_access)"},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"    def test_should_fail_submit_acl_invalid_secret_uri(self):"},{"line_number":198,"context_line":"        data \u003d {\u0027acl_ref\u0027: self.secret_acl_ref}"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa1b9901_a685e459","line":195,"updated":"2015-08-25 10:27:42.000000000","message":"seems to me like there are different tests in this function... that could easily be divided. It\u0027s a bit hard to understand what\u0027s actually being tested here and dividing it into several tests would make that way easier.","commit_id":"72726ac1dd9e439d604d4f5589de5294e9fba808"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"e6dbccbd222fb697cfab543da475b904bfd69bab","unresolved":false,"context_lines":[{"line_number":192,"context_line":"        self.assertEqual(self.container_acl_ref,"},{"line_number":193,"context_line":"                         self.responses.last_request.url)"},{"line_number":194,"context_line":"        self.assertEqual(self.users2, entity.read.users)"},{"line_number":195,"context_line":"        self.assertIsNone(entity.get(\u0027read\u0027).project_access)"},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"    def test_should_fail_submit_acl_invalid_secret_uri(self):"},{"line_number":198,"context_line":"        data \u003d {\u0027acl_ref\u0027: self.secret_acl_ref}"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa1b9901_256775ea","line":195,"in_reply_to":"fa1b9901_a685e459","updated":"2015-08-25 16:55:04.000000000","message":"Okay. Will separate them out.","commit_id":"72726ac1dd9e439d604d4f5589de5294e9fba808"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"992332422fc4383ca578356bef8a610565abd71e","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2015 Hewlett-Packard Development Company, L.P."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":4,"context_line":"# you may not use this file except in compliance with the License."}],"source_content_type":"text/x-python","patch_set":12,"id":"da20952f_6cc2da54","line":1,"updated":"2015-09-01 06:20:25.000000000","message":"Coverage\n\nName                                     Stmts   Miss Branch BrMiss  Cover   Missing\n\n------------------------------------------------------------------------------------\n\nbarbicanclient/acls                        173      0     44      3    99%","commit_id":"21f619d4285f2d86ecbb1863a181548bc84a6c75"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"c64f03d7884d9a3d59b923415fb11ee6200fc0ee","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2015 Hewlett-Packard Development Company, L.P."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":4,"context_line":"# you may not use this file except in compliance with the License."}],"source_content_type":"text/x-python","patch_set":12,"id":"da20952f_655e5114","line":1,"in_reply_to":"da20952f_6cc2da54","updated":"2015-09-01 16:10:15.000000000","message":"All of lines are 100% covered, its only branch miss which is not available in coverage report.","commit_id":"21f619d4285f2d86ecbb1863a181548bc84a6c75"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"a3be72b6f72ce8403ef2a727077cbe66a3d95e43","unresolved":false,"context_lines":[{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"import requests_mock"},{"line_number":17,"context_line":"from oslo_utils import timeutils"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from barbicanclient.tests import test_client"},{"line_number":20,"context_line":"from barbicanclient import acls"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a1a9d01_d6a0cca1","line":17,"updated":"2015-09-28 18:39:50.000000000","message":"reoder these two (alphabetical order)","commit_id":"5ed054c5cb63a8c377684129668fedb741d1212a"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"a3be72b6f72ce8403ef2a727077cbe66a3d95e43","unresolved":false,"context_lines":[{"line_number":17,"context_line":"from oslo_utils import timeutils"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from barbicanclient.tests import test_client"},{"line_number":20,"context_line":"from barbicanclient import acls"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"class ACLTestCase(test_client.BaseEntityResource):"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a1a9d01_96b7b4d7","line":20,"updated":"2015-09-28 18:39:50.000000000","message":"I think this one gets reordered as well - barbicanclient first, then barbicanclient.tests","commit_id":"5ed054c5cb63a8c377684129668fedb741d1212a"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"a3be72b6f72ce8403ef2a727077cbe66a3d95e43","unresolved":false,"context_lines":[{"line_number":28,"context_line":"        self.secret_ref \u003d (self.endpoint +"},{"line_number":29,"context_line":"                           \u0027/secrets/8a3108ec-88fc-4f5c-86eb-f37b8ae8358e\u0027)"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"        self.secret_acl_ref \u003d \u0027{0}/{1}\u0027.format(self.secret_ref, \u0027acl\u0027)"},{"line_number":32,"context_line":"        self.container_ref \u003d (self.endpoint + \u0027/containers/\u0027"},{"line_number":33,"context_line":"                              \u002783c302c7-86fe-4f07-a277-c4962f121f19\u0027)"},{"line_number":34,"context_line":"        self.container_acl_ref \u003d \u0027{0}/{1}\u0027.format(self.container_ref, \u0027acl\u0027)"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a1a9d01_961334b8","line":31,"updated":"2015-09-28 18:39:50.000000000","message":"why isn\u0027t \u0027acl\u0027 part of the format string?  \u0027{0}/acl\u0027.format(self.secret_ref)","commit_id":"5ed054c5cb63a8c377684129668fedb741d1212a"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"a3be72b6f72ce8403ef2a727077cbe66a3d95e43","unresolved":false,"context_lines":[{"line_number":31,"context_line":"        self.secret_acl_ref \u003d \u0027{0}/{1}\u0027.format(self.secret_ref, \u0027acl\u0027)"},{"line_number":32,"context_line":"        self.container_ref \u003d (self.endpoint + \u0027/containers/\u0027"},{"line_number":33,"context_line":"                              \u002783c302c7-86fe-4f07-a277-c4962f121f19\u0027)"},{"line_number":34,"context_line":"        self.container_acl_ref \u003d \u0027{0}/{1}\u0027.format(self.container_ref, \u0027acl\u0027)"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"        self.manager \u003d self.client.acls"},{"line_number":37,"context_line":"        self.users1 \u003d [\u00272d0ee7c681cc4549b6d76769c320d91f\u0027,"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a1a9d01_f61cf0c2","line":34,"updated":"2015-09-28 18:39:50.000000000","message":"same comment as line 31","commit_id":"5ed054c5cb63a8c377684129668fedb741d1212a"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"a3be72b6f72ce8403ef2a727077cbe66a3d95e43","unresolved":false,"context_lines":[{"line_number":34,"context_line":"        self.container_acl_ref \u003d \u0027{0}/{1}\u0027.format(self.container_ref, \u0027acl\u0027)"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"        self.manager \u003d self.client.acls"},{"line_number":37,"context_line":"        self.users1 \u003d [\u00272d0ee7c681cc4549b6d76769c320d91f\u0027,"},{"line_number":38,"context_line":"                       \u0027721e27b8505b499e8ab3b38154705b9e\u0027]"},{"line_number":39,"context_line":"        self.users2 \u003d [\u00272d0ee7c681cc4549b6d76769c320d91f\u0027]"},{"line_number":40,"context_line":"        self.created \u003d str(timeutils.utcnow())"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a1a9d01_f6e1509b","line":37,"updated":"2015-09-28 18:39:50.000000000","message":"might want to make these IDs variables - user1_id and user2_id since we are using the user1_id both in line 37 and 39.  Then no worries about someone finger-checking one of the id values.","commit_id":"5ed054c5cb63a8c377684129668fedb741d1212a"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"a3be72b6f72ce8403ef2a727077cbe66a3d95e43","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"        self.responses.get(requests_mock.ANY,"},{"line_number":88,"context_line":"                           json\u003dself.get_acl_response_data())"},{"line_number":89,"context_line":"        # check if trailing slashes are corrected in get call."},{"line_number":90,"context_line":"        self.manager.get(entity_ref\u003dself.container_ref + \u0027///\u0027)"},{"line_number":91,"context_line":"        self.assertEqual(self.container_acl_ref,"},{"line_number":92,"context_line":"                         self.responses.last_request.url)"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a1a9d01_21230407","line":89,"updated":"2015-09-28 18:39:50.000000000","message":"this is a separate test below - why is it duplicated here?","commit_id":"5ed054c5cb63a8c377684129668fedb741d1212a"}]}
