)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"aa1c34c6e71a2da6090815d4395487b42413ec47","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Raise exception when synthetic field invalid"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Creates a \u0027NeutronObjectValidator\u0027 decorator that ensures"},{"line_number":10,"context_line":"synthetic fields are valid in any oslo versioned object."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Reference: I3c565f83098a03d210616f51d359ca45388aaf60"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"9f436f4f_9f7b5a8a","line":9,"updated":"2017-08-16 16:26:52.000000000","message":"I don\u0027t see a decorator in this patch.","commit_id":"7e23d380bf9a90ca9448cc87aa14d81ecb3de920"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"83efb3eb089c91f6fb76d0957761b84aad6c70c7","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Raise exception when synthetic field invalid"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Creates a \u0027NeutronObjectValidator\u0027 decorator that ensures"},{"line_number":10,"context_line":"synthetic fields are valid in any oslo versioned object."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Reference: I3c565f83098a03d210616f51d359ca45388aaf60"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"9f436f4f_dd70b874","line":9,"in_reply_to":"9f436f4f_9f7b5a8a","updated":"2017-08-17 10:16:54.000000000","message":"My bad. I keep the old commit message.\n\nDone.","commit_id":"7e23d380bf9a90ca9448cc87aa14d81ecb3de920"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"58ae1884a12498b9a28ad07d7d9f1f57740497c5","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Reference: I3c565f83098a03d210616f51d359ca45388aaf60"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Co-Authored-By: Rodolfo Alonso Hernandez \u003crodolfo.alonso.hernandez@intel.com\u003e"},{"line_number":16,"context_line":"Closes-Bug: #1614478"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Change-Id: I33c41fbd4dd40ba292ebe67ac497372d4354f260"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"7f287b81_d9beddb2","line":15,"updated":"2017-08-29 08:27:47.000000000","message":"Do You need to be co-author of Your patch? :)","commit_id":"e99f0723084bde9cbf62fb3e75c829f5cfb920f1"}],"neutron/objects/base.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"aa1c34c6e71a2da6090815d4395487b42413ec47","unresolved":false,"context_lines":[{"line_number":102,"context_line":"    extra_filter_names \u003d set()"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    def __new__(cls, *args, **kwargs):"},{"line_number":105,"context_line":"        self \u003d super(NeutronObject, cls).__new__(cls, *args, **kwargs)"},{"line_number":106,"context_line":"        invalid_fields \u003d []"},{"line_number":107,"context_line":"        for field in self.synthetic_fields:"},{"line_number":108,"context_line":"            if field not in self.fields:"}],"source_content_type":"text/x-python","patch_set":3,"id":"9f436f4f_bf785e8f","line":105,"updated":"2017-08-16 16:26:52.000000000","message":"why can\u0027t this be done in the __init__ method?","commit_id":"7e23d380bf9a90ca9448cc87aa14d81ecb3de920"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"83efb3eb089c91f6fb76d0957761b84aad6c70c7","unresolved":false,"context_lines":[{"line_number":102,"context_line":"    extra_filter_names \u003d set()"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    def __new__(cls, *args, **kwargs):"},{"line_number":105,"context_line":"        self \u003d super(NeutronObject, cls).__new__(cls, *args, **kwargs)"},{"line_number":106,"context_line":"        invalid_fields \u003d []"},{"line_number":107,"context_line":"        for field in self.synthetic_fields:"},{"line_number":108,"context_line":"            if field not in self.fields:"}],"source_content_type":"text/x-python","patch_set":3,"id":"9f436f4f_dd91d853","line":105,"in_reply_to":"9f436f4f_bf785e8f","updated":"2017-08-17 10:16:54.000000000","message":"Only to avoid the (little) time spent during the creation of the object.\n\nBut because this time is minimum, this check will raise the same exception and this condition shouldn\u0027t never happen, there is no big reason to override the __new__ method.\n\nDone.","commit_id":"7e23d380bf9a90ca9448cc87aa14d81ecb3de920"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"c984845f27333e5ccc6cf42ab41a8823b7940f39","unresolved":false,"context_lines":[{"line_number":104,"context_line":"    def __init__(self, context\u003dNone, **kwargs):"},{"line_number":105,"context_line":"        super(NeutronObject, self).__init__(context, **kwargs)"},{"line_number":106,"context_line":"        invalid_fields \u003d []"},{"line_number":107,"context_line":"        for f in (f for f in self.synthetic_fields if f not in self.fields):"},{"line_number":108,"context_line":"            invalid_fields.append(f)"},{"line_number":109,"context_line":"        if invalid_fields:"},{"line_number":110,"context_line":"            raise o_exc.NeutronObjectValidatorException(field\u003dinvalid_fields)"}],"source_content_type":"text/x-python","patch_set":4,"id":"9f436f4f_ae02520a","line":107,"updated":"2017-08-17 19:26:39.000000000","message":"no action required: it\u0027s probably too many \"f\" for me :)","commit_id":"907e04b91c4f6e78ab46de32db7a5dfbeba9e358"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"441f132a3c1ba6eb6a72cdf87623df2a1cbd91e8","unresolved":false,"context_lines":[{"line_number":104,"context_line":"    def __init__(self, context\u003dNone, **kwargs):"},{"line_number":105,"context_line":"        super(NeutronObject, self).__init__(context, **kwargs)"},{"line_number":106,"context_line":"        invalid_fields \u003d []"},{"line_number":107,"context_line":"        for f in (f for f in self.synthetic_fields if f not in self.fields):"},{"line_number":108,"context_line":"            invalid_fields.append(f)"},{"line_number":109,"context_line":"        if invalid_fields:"},{"line_number":110,"context_line":"            raise o_exc.NeutronObjectValidatorException(field\u003dinvalid_fields)"}],"source_content_type":"text/x-python","patch_set":4,"id":"7f287b81_9da97625","line":107,"in_reply_to":"9f436f4f_ae02520a","updated":"2017-08-28 15:18:04.000000000","message":"To fit it in one line","commit_id":"907e04b91c4f6e78ab46de32db7a5dfbeba9e358"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"c984845f27333e5ccc6cf42ab41a8823b7940f39","unresolved":false,"context_lines":[{"line_number":107,"context_line":"        for f in (f for f in self.synthetic_fields if f not in self.fields):"},{"line_number":108,"context_line":"            invalid_fields.append(f)"},{"line_number":109,"context_line":"        if invalid_fields:"},{"line_number":110,"context_line":"            raise o_exc.NeutronObjectValidatorException(field\u003dinvalid_fields)"},{"line_number":111,"context_line":"        self.obj_set_defaults()"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"    def _synthetic_fields_items(self):"}],"source_content_type":"text/x-python","patch_set":4,"id":"9f436f4f_310c833a","line":110,"range":{"start_line":110,"start_character":56,"end_line":110,"end_character":61},"updated":"2017-08-17 19:26:39.000000000","message":"IMHO better name here would be \"fields\"","commit_id":"907e04b91c4f6e78ab46de32db7a5dfbeba9e358"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"441f132a3c1ba6eb6a72cdf87623df2a1cbd91e8","unresolved":false,"context_lines":[{"line_number":107,"context_line":"        for f in (f for f in self.synthetic_fields if f not in self.fields):"},{"line_number":108,"context_line":"            invalid_fields.append(f)"},{"line_number":109,"context_line":"        if invalid_fields:"},{"line_number":110,"context_line":"            raise o_exc.NeutronObjectValidatorException(field\u003dinvalid_fields)"},{"line_number":111,"context_line":"        self.obj_set_defaults()"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"    def _synthetic_fields_items(self):"}],"source_content_type":"text/x-python","patch_set":4,"id":"7f287b81_ddb37e97","line":110,"range":{"start_line":110,"start_character":56,"end_line":110,"end_character":61},"in_reply_to":"9f436f4f_310c833a","updated":"2017-08-28 15:18:04.000000000","message":"I\u0027ll change this","commit_id":"907e04b91c4f6e78ab46de32db7a5dfbeba9e358"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"15df670811eeb10223d487e234fedeb8ee41a298","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    def __init__(self, context\u003dNone, **kwargs):"},{"line_number":105,"context_line":"        super(NeutronObject, self).__init__(context, **kwargs)"},{"line_number":106,"context_line":"        invalid_fields \u003d []"},{"line_number":107,"context_line":"        for f in (f for f in self.synthetic_fields if f not in self.fields):"},{"line_number":108,"context_line":"            invalid_fields.append(f)"},{"line_number":109,"context_line":"        if invalid_fields:"},{"line_number":110,"context_line":"            raise o_exc.NeutronObjectValidatorException(fields\u003dinvalid_fields)"},{"line_number":111,"context_line":"        self.obj_set_defaults()"}],"source_content_type":"text/x-python","patch_set":8,"id":"7f287b81_5adf5168","line":108,"range":{"start_line":106,"start_character":8,"end_line":108,"end_character":36},"updated":"2017-08-30 15:42:01.000000000","message":"Can\u0027t this just be collapsed to::\n\n   invalid_fields \u003d [f in self.synthetic_fields if f not in self.fields]","commit_id":"d696e164821807619773b979e2d13e6437c8bd32"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"7878938e0dcd8375d41e3a580255f83b92dfef13","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    def __init__(self, context\u003dNone, **kwargs):"},{"line_number":105,"context_line":"        super(NeutronObject, self).__init__(context, **kwargs)"},{"line_number":106,"context_line":"        invalid_fields \u003d []"},{"line_number":107,"context_line":"        for f in (f for f in self.synthetic_fields if f not in self.fields):"},{"line_number":108,"context_line":"            invalid_fields.append(f)"},{"line_number":109,"context_line":"        if invalid_fields:"},{"line_number":110,"context_line":"            raise o_exc.NeutronObjectValidatorException(fields\u003dinvalid_fields)"},{"line_number":111,"context_line":"        self.obj_set_defaults()"}],"source_content_type":"text/x-python","patch_set":8,"id":"7f287b81_28e609ea","line":108,"range":{"start_line":106,"start_character":8,"end_line":108,"end_character":36},"in_reply_to":"7f287b81_5adf5168","updated":"2017-09-05 11:31:02.000000000","message":"Yes, you are right. Sometimes I forget how to Python","commit_id":"d696e164821807619773b979e2d13e6437c8bd32"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"0e496244e7c1fb2bc13220718770ef9dc1d5369a","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    def __init__(self, context\u003dNone, **kwargs):"},{"line_number":105,"context_line":"        super(NeutronObject, self).__init__(context, **kwargs)"},{"line_number":106,"context_line":"        invalid_fields \u003d [f for f in self.synthetic_fields"},{"line_number":107,"context_line":"                          if f not in self.fields]"},{"line_number":108,"context_line":"        if invalid_fields:"},{"line_number":109,"context_line":"            raise o_exc.NeutronObjectValidatorException(fields\u003dinvalid_fields)"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f4b6375_028f8d23","line":106,"updated":"2017-11-01 22:25:39.000000000","message":"since synthetic_fields is a class level attribute, I think we should execute validation only on class definition, not for every object created.","commit_id":"94485841606ca64775b0265363c2265dd11eaa4b"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"37ed06801dd8edeed162beb6c79d5917e75ce45d","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    def __init__(self, context\u003dNone, **kwargs):"},{"line_number":105,"context_line":"        super(NeutronObject, self).__init__(context, **kwargs)"},{"line_number":106,"context_line":"        invalid_fields \u003d [f for f in self.synthetic_fields"},{"line_number":107,"context_line":"                          if f not in self.fields]"},{"line_number":108,"context_line":"        if invalid_fields:"},{"line_number":109,"context_line":"            raise o_exc.NeutronObjectValidatorException(fields\u003dinvalid_fields)"}],"source_content_type":"text/x-python","patch_set":12,"id":"1f485f77_ce87720f","line":106,"in_reply_to":"1f485f77_4e95f5e3","updated":"2017-11-14 20:47:17.000000000","message":"I think you can do it in a metaclass.","commit_id":"94485841606ca64775b0265363c2265dd11eaa4b"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"7583c8a936f2734e271083950a9308de9f59ad06","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    def __init__(self, context\u003dNone, **kwargs):"},{"line_number":105,"context_line":"        super(NeutronObject, self).__init__(context, **kwargs)"},{"line_number":106,"context_line":"        invalid_fields \u003d [f for f in self.synthetic_fields"},{"line_number":107,"context_line":"                          if f not in self.fields]"},{"line_number":108,"context_line":"        if invalid_fields:"},{"line_number":109,"context_line":"            raise o_exc.NeutronObjectValidatorException(fields\u003dinvalid_fields)"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f4b6375_7b95c086","line":106,"in_reply_to":"3f4b6375_028f8d23","updated":"2017-11-02 09:02:33.000000000","message":"How do you suggest to do this? During the OVO registration?","commit_id":"94485841606ca64775b0265363c2265dd11eaa4b"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"c1965bb44b43b7d8a2e4f49e5e4423f4b4c74451","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    def __init__(self, context\u003dNone, **kwargs):"},{"line_number":105,"context_line":"        super(NeutronObject, self).__init__(context, **kwargs)"},{"line_number":106,"context_line":"        invalid_fields \u003d [f for f in self.synthetic_fields"},{"line_number":107,"context_line":"                          if f not in self.fields]"},{"line_number":108,"context_line":"        if invalid_fields:"},{"line_number":109,"context_line":"            raise o_exc.NeutronObjectValidatorException(fields\u003dinvalid_fields)"}],"source_content_type":"text/x-python","patch_set":12,"id":"1f485f77_4e95f5e3","line":106,"in_reply_to":"3f4b6375_7b95c086","updated":"2017-11-13 09:12:21.000000000","message":"Hello Ihar. Do you have any suggestion?","commit_id":"94485841606ca64775b0265363c2265dd11eaa4b"}],"neutron/objects/exceptions.py":[{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"c984845f27333e5ccc6cf42ab41a8823b7940f39","unresolved":false,"context_lines":[{"line_number":63,"context_line":""},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"class NeutronObjectValidatorException(exceptions.NeutronException):"},{"line_number":66,"context_line":"    message \u003d _(\"Synthetic field(s) %(field)s undefined, misspelled, or \""},{"line_number":67,"context_line":"                \"otherwise invalid\")"}],"source_content_type":"text/x-python","patch_set":4,"id":"9f436f4f_3125a3ac","line":66,"range":{"start_line":66,"start_character":38,"end_line":66,"end_character":43},"updated":"2017-08-17 19:26:39.000000000","message":"as I wrote in other comment, IMHO better would be \"fields\" here","commit_id":"907e04b91c4f6e78ab46de32db7a5dfbeba9e358"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"441f132a3c1ba6eb6a72cdf87623df2a1cbd91e8","unresolved":false,"context_lines":[{"line_number":63,"context_line":""},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"class NeutronObjectValidatorException(exceptions.NeutronException):"},{"line_number":66,"context_line":"    message \u003d _(\"Synthetic field(s) %(field)s undefined, misspelled, or \""},{"line_number":67,"context_line":"                \"otherwise invalid\")"}],"source_content_type":"text/x-python","patch_set":4,"id":"7f287b81_5d654e1d","line":66,"range":{"start_line":66,"start_character":38,"end_line":66,"end_character":43},"in_reply_to":"9f436f4f_3125a3ac","updated":"2017-08-28 15:18:04.000000000","message":"Done","commit_id":"907e04b91c4f6e78ab46de32db7a5dfbeba9e358"}],"neutron/tests/unit/objects/test_base.py":[{"author":{"_account_id":17491,"name":"Lujin Luo","email":"luo.lujin@jp.fujitsu.com","username":"Lujin"},"change_message_id":"cdd629b055142e00d22eebc828bb0eb2e37720e6","unresolved":false,"context_lines":[{"line_number":1999,"context_line":""},{"line_number":2000,"context_line":"    _test_class \u003d FakeNeutronObjectSyntheticFieldWrong"},{"line_number":2001,"context_line":""},{"line_number":2002,"context_line":"    def test_load_foreign_keys_not_belong_class(self):"},{"line_number":2003,"context_line":"        self.assertRaises(o_exc.NeutronObjectValidatorException,"},{"line_number":2004,"context_line":"                          self._test_class, mock.Mock(),"},{"line_number":2005,"context_line":"                          id\u003duuidutils.generate_uuid(),"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_e23c4730","line":2002,"range":{"start_line":2002,"start_character":8,"end_line":2002,"end_character":47},"updated":"2017-08-29 01:28:19.000000000","message":"Can we rename this method? This name does not explain precisely what it is meant for.","commit_id":"5acac94048c8a42f77b1482f7a5b8c67361cf976"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"b730086248bf448e5a0d619e4cfc7498acab896d","unresolved":false,"context_lines":[{"line_number":1999,"context_line":""},{"line_number":2000,"context_line":"    _test_class \u003d FakeNeutronObjectSyntheticFieldWrong"},{"line_number":2001,"context_line":""},{"line_number":2002,"context_line":"    def test_load_foreign_keys_not_belong_class(self):"},{"line_number":2003,"context_line":"        self.assertRaises(o_exc.NeutronObjectValidatorException,"},{"line_number":2004,"context_line":"                          self._test_class, mock.Mock(),"},{"line_number":2005,"context_line":"                          id\u003duuidutils.generate_uuid(),"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_f94e396d","line":2002,"range":{"start_line":2002,"start_character":8,"end_line":2002,"end_character":47},"in_reply_to":"7f287b81_e23c4730","updated":"2017-08-29 08:07:05.000000000","message":"Done","commit_id":"5acac94048c8a42f77b1482f7a5b8c67361cf976"}]}
