)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"c50b9bd02659286a0533379a07eedd96f431e2bc","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Prevent primary keys in Neutron OVOs from being updated"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Primary keys in Neutron Oslo Versioned.obejcts should be prevented"},{"line_number":10,"context_line":"from being updated."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: Ice0a43fdd8889f9ce34a7d83d2355d905555b788"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3afc51ec_12927857","line":9,"range":{"start_line":9,"start_character":39,"end_line":9,"end_character":46},"updated":"2016-03-14 16:35:18.000000000","message":"Nit: objects","commit_id":"43967acc886f6692485d6f5f1512c9ec636cb379"},{"author":{"_account_id":9551,"name":"Martin Hickey","email":"martin.hickey@ie.ibm.com","username":"mhickey"},"change_message_id":"08f7d885aecb5f5e77c172af99681d2681057440","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Prevent primary keys in Neutron OVOs from being updated"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Primary keys in Neutron Oslo Versioned.obejcts should be prevented"},{"line_number":10,"context_line":"from being updated."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: Ice0a43fdd8889f9ce34a7d83d2355d905555b788"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3afc51ec_e19a7c6d","line":9,"range":{"start_line":9,"start_character":39,"end_line":9,"end_character":46},"in_reply_to":"3afc51ec_12927857","updated":"2016-03-15 10:05:07.000000000","message":"Updated.","commit_id":"43967acc886f6692485d6f5f1512c9ec636cb379"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"6334dabd60abd74aa29d608397a48e5760318f13","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Prevent primary keys in Neutron OVOs from being updated"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Primary keys in Neutron Oslo Versioned.obejcts should be prevented"},{"line_number":10,"context_line":"from being updated."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: Ice0a43fdd8889f9ce34a7d83d2355d905555b788"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3afc51ec_52eec0ec","line":10,"updated":"2016-03-14 16:53:10.000000000","message":"Some rationale about that choice could help reviewers. For example, you may mention that for now that\u0027s the case, and we may later reconsider supporting that.","commit_id":"43967acc886f6692485d6f5f1512c9ec636cb379"},{"author":{"_account_id":9551,"name":"Martin Hickey","email":"martin.hickey@ie.ibm.com","username":"mhickey"},"change_message_id":"08f7d885aecb5f5e77c172af99681d2681057440","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Prevent primary keys in Neutron OVOs from being updated"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Primary keys in Neutron Oslo Versioned.obejcts should be prevented"},{"line_number":10,"context_line":"from being updated."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: Ice0a43fdd8889f9ce34a7d83d2355d905555b788"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3afc51ec_218f442b","line":10,"in_reply_to":"3afc51ec_52eec0ec","updated":"2016-03-15 10:05:07.000000000","message":"ok, added.","commit_id":"43967acc886f6692485d6f5f1512c9ec636cb379"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"424662d0862b52503ba73e74614abbf1290db7dc","unresolved":false,"context_lines":[{"line_number":11,"context_line":"future decide to allow primary keys to be updated. The current"},{"line_number":12,"context_line":"thinking is that you would not update primary keys but delete and"},{"line_number":13,"context_line":"add an entry instead."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: Ice0a43fdd8889f9ce34a7d83d2355d905555b788"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1af94dfe_b50950e0","line":14,"updated":"2016-03-15 13:35:59.000000000","message":"please add the bug number reference that we use for the oslo versionedobject work","commit_id":"9f9c345c6d75a92dfd7260e5283d1ca31851f66e"},{"author":{"_account_id":9551,"name":"Martin Hickey","email":"martin.hickey@ie.ibm.com","username":"mhickey"},"change_message_id":"1435bf2eb364108541c7f9852e6ed338b789aeaa","unresolved":false,"context_lines":[{"line_number":11,"context_line":"future decide to allow primary keys to be updated. The current"},{"line_number":12,"context_line":"thinking is that you would not update primary keys but delete and"},{"line_number":13,"context_line":"add an entry instead."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: Ice0a43fdd8889f9ce34a7d83d2355d905555b788"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1af94dfe_9869e48e","line":14,"in_reply_to":"1af94dfe_b50950e0","updated":"2016-03-15 14:56:48.000000000","message":"sure, done.","commit_id":"9f9c345c6d75a92dfd7260e5283d1ca31851f66e"}],"neutron/objects/base.py":[{"author":{"_account_id":8726,"name":"Victor Morales","email":"chipahuac@hotmail.com","username":"electrocucaracha"},"change_message_id":"9dc416ae3cedbea28afdff1765bd251338c6d550","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"def get_updatable_fields(cls, fields):"},{"line_number":54,"context_line":"    fields \u003d fields.copy()"},{"line_number":55,"context_line":"    for field in cls.fields_no_update:"},{"line_number":56,"context_line":"        if field in fields:"},{"line_number":57,"context_line":"            del fields[field]"},{"line_number":58,"context_line":"    for field in cls.primary_keys:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afc51ec_72a13ca3","line":55,"updated":"2016-03-14 16:49:53.000000000","message":"It shouldn\u0027t be better to iterate over fields and remove the items from the copied fields?","commit_id":"43967acc886f6692485d6f5f1512c9ec636cb379"},{"author":{"_account_id":9551,"name":"Martin Hickey","email":"martin.hickey@ie.ibm.com","username":"mhickey"},"change_message_id":"08f7d885aecb5f5e77c172af99681d2681057440","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"def get_updatable_fields(cls, fields):"},{"line_number":54,"context_line":"    fields \u003d fields.copy()"},{"line_number":55,"context_line":"    for field in cls.fields_no_update:"},{"line_number":56,"context_line":"        if field in fields:"},{"line_number":57,"context_line":"            del fields[field]"},{"line_number":58,"context_line":"    for field in cls.primary_keys:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afc51ec_c67e7618","line":55,"in_reply_to":"3afc51ec_72a13ca3","updated":"2016-03-15 10:05:07.000000000","message":"Good point. Updated.","commit_id":"43967acc886f6692485d6f5f1512c9ec636cb379"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"6334dabd60abd74aa29d608397a48e5760318f13","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    for field in cls.fields_no_update:"},{"line_number":56,"context_line":"        if field in fields:"},{"line_number":57,"context_line":"            del fields[field]"},{"line_number":58,"context_line":"    for field in cls.primary_keys:"},{"line_number":59,"context_line":"        if field in fields:"},{"line_number":60,"context_line":"            del fields[field]"},{"line_number":61,"context_line":"    return fields"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afc51ec_0d79bd2f","line":58,"updated":"2016-03-14 16:53:10.000000000","message":"Would be cool to make fields_no_update a property that would include all keys for you.","commit_id":"43967acc886f6692485d6f5f1512c9ec636cb379"},{"author":{"_account_id":9551,"name":"Martin Hickey","email":"martin.hickey@ie.ibm.com","username":"mhickey"},"change_message_id":"08f7d885aecb5f5e77c172af99681d2681057440","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    for field in cls.fields_no_update:"},{"line_number":56,"context_line":"        if field in fields:"},{"line_number":57,"context_line":"            del fields[field]"},{"line_number":58,"context_line":"    for field in cls.primary_keys:"},{"line_number":59,"context_line":"        if field in fields:"},{"line_number":60,"context_line":"            del fields[field]"},{"line_number":61,"context_line":"    return fields"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afc51ec_06acde8a","line":58,"in_reply_to":"3afc51ec_0d79bd2f","updated":"2016-03-15 10:05:07.000000000","message":"Sure, would. After trying to get this working we realised that we would need to use a metadata class. As discussed at sprint, we are going to leave as is for the moment and add a TODO.","commit_id":"43967acc886f6692485d6f5f1512c9ec636cb379"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"c50b9bd02659286a0533379a07eedd96f431e2bc","unresolved":false,"context_lines":[{"line_number":173,"context_line":""},{"line_number":174,"context_line":"        # We won\u0027t allow primary key updates, so let\u0027s pop it out not to"},{"line_number":175,"context_line":"        # trigger update on those fields touched by the consumer"},{"line_number":176,"context_line":"        fields_to_remove \u003d []"},{"line_number":177,"context_line":"        for field in fields:"},{"line_number":178,"context_line":"            if field in self.primary_keys:"},{"line_number":179,"context_line":"                fields_to_remove.append(field)"},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"        for field in fields_to_remove:"},{"line_number":182,"context_line":"            fields.pop(field, None)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afc51ec_72577cce","line":179,"range":{"start_line":176,"start_character":0,"end_line":179,"end_character":46},"updated":"2016-03-14 16:35:18.000000000","message":"fields_to_remove \u003d [field for field in fields if field in self.primary_keys]\n\nAlso why do we do two traverses? Can\u0027t we remove it already in this loop? Like:\n\nfor primary_key_field in self.primary_keys:\n    fields.pop(primary_key_field, None)","commit_id":"43967acc886f6692485d6f5f1512c9ec636cb379"},{"author":{"_account_id":9551,"name":"Martin Hickey","email":"martin.hickey@ie.ibm.com","username":"mhickey"},"change_message_id":"08f7d885aecb5f5e77c172af99681d2681057440","unresolved":false,"context_lines":[{"line_number":173,"context_line":""},{"line_number":174,"context_line":"        # We won\u0027t allow primary key updates, so let\u0027s pop it out not to"},{"line_number":175,"context_line":"        # trigger update on those fields touched by the consumer"},{"line_number":176,"context_line":"        fields_to_remove \u003d []"},{"line_number":177,"context_line":"        for field in fields:"},{"line_number":178,"context_line":"            if field in self.primary_keys:"},{"line_number":179,"context_line":"                fields_to_remove.append(field)"},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"        for field in fields_to_remove:"},{"line_number":182,"context_line":"            fields.pop(field, None)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afc51ec_06921ef6","line":179,"range":{"start_line":176,"start_character":0,"end_line":179,"end_character":46},"in_reply_to":"3afc51ec_72577cce","updated":"2016-03-15 10:05:07.000000000","message":"Agreed, much tidier approach, thanks. I was been over cautious with pop and no need as you specified for checking if key exists.","commit_id":"43967acc886f6692485d6f5f1512c9ec636cb379"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"424662d0862b52503ba73e74614abbf1290db7dc","unresolved":false,"context_lines":[{"line_number":57,"context_line":"    # This would be a more OO approach to the current implementation of"},{"line_number":58,"context_line":"    # checking both attributes"},{"line_number":59,"context_line":"    new_fields \u003d fields.copy()"},{"line_number":60,"context_line":"    for field in cls.fields_no_update:"},{"line_number":61,"context_line":"        if field in new_fields:"},{"line_number":62,"context_line":"            del new_fields[field]"},{"line_number":63,"context_line":"    for field in cls.primary_keys:"}],"source_content_type":"text/x-python","patch_set":4,"id":"1af94dfe_d0cfcab1","line":60,"updated":"2016-03-15 13:35:59.000000000","message":"maybe a bit better...\n\nnon_updatable_fields \u003d set(cls.fields_no_update + cls.primary_keys)\n\nfor field in non_updatable_fields:\n    if field in new_fields:\n        del new_fields[field]","commit_id":"9f9c345c6d75a92dfd7260e5283d1ca31851f66e"},{"author":{"_account_id":9551,"name":"Martin Hickey","email":"martin.hickey@ie.ibm.com","username":"mhickey"},"change_message_id":"1435bf2eb364108541c7f9852e6ed338b789aeaa","unresolved":false,"context_lines":[{"line_number":57,"context_line":"    # This would be a more OO approach to the current implementation of"},{"line_number":58,"context_line":"    # checking both attributes"},{"line_number":59,"context_line":"    new_fields \u003d fields.copy()"},{"line_number":60,"context_line":"    for field in cls.fields_no_update:"},{"line_number":61,"context_line":"        if field in new_fields:"},{"line_number":62,"context_line":"            del new_fields[field]"},{"line_number":63,"context_line":"    for field in cls.primary_keys:"}],"source_content_type":"text/x-python","patch_set":4,"id":"1af94dfe_7a73304e","line":60,"in_reply_to":"1af94dfe_d0cfcab1","updated":"2016-03-15 14:56:48.000000000","message":"Nice suggestion, thanks. Updated.","commit_id":"9f9c345c6d75a92dfd7260e5283d1ca31851f66e"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"424662d0862b52503ba73e74614abbf1290db7dc","unresolved":false,"context_lines":[{"line_number":225,"context_line":"        # We won\u0027t allow primary key updates, so let\u0027s pop it out not to"},{"line_number":226,"context_line":"        # trigger update on those fields touched by the consumer"},{"line_number":227,"context_line":"        for primary_key_field in self.primary_keys:"},{"line_number":228,"context_line":"            fields.pop(primary_key_field, None)"},{"line_number":229,"context_line":""},{"line_number":230,"context_line":"        forbidden_updates \u003d set(self.fields_no_update) \u0026 set(fields.keys())"},{"line_number":231,"context_line":"        if forbidden_updates:"}],"source_content_type":"text/x-python","patch_set":4,"id":"1af94dfe_44ac9fed","line":228,"updated":"2016-03-15 13:35:59.000000000","message":"a follow up question would be if we need to raise if somebody attempts to update fields that are not updatable","commit_id":"9f9c345c6d75a92dfd7260e5283d1ca31851f66e"},{"author":{"_account_id":9551,"name":"Martin Hickey","email":"martin.hickey@ie.ibm.com","username":"mhickey"},"change_message_id":"1435bf2eb364108541c7f9852e6ed338b789aeaa","unresolved":false,"context_lines":[{"line_number":225,"context_line":"        # We won\u0027t allow primary key updates, so let\u0027s pop it out not to"},{"line_number":226,"context_line":"        # trigger update on those fields touched by the consumer"},{"line_number":227,"context_line":"        for primary_key_field in self.primary_keys:"},{"line_number":228,"context_line":"            fields.pop(primary_key_field, None)"},{"line_number":229,"context_line":""},{"line_number":230,"context_line":"        forbidden_updates \u003d set(self.fields_no_update) \u0026 set(fields.keys())"},{"line_number":231,"context_line":"        if forbidden_updates:"}],"source_content_type":"text/x-python","patch_set":4,"id":"1af94dfe_5a2594c0","line":228,"in_reply_to":"1af94dfe_44ac9fed","updated":"2016-03-15 14:56:48.000000000","message":"ok, logic changed to throw exception n case of primary changes as well.","commit_id":"9f9c345c6d75a92dfd7260e5283d1ca31851f66e"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"ee0f482de712f4acbe6d8b511ac92e79b918090e","unresolved":false,"context_lines":[{"line_number":110,"context_line":""},{"line_number":111,"context_line":"class DeclarativeObject(abc.ABCMeta):"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"    def __init__(cls, name, bases, dct):"},{"line_number":114,"context_line":"        for base in itertools.chain([cls], bases):"},{"line_number":115,"context_line":"            if hasattr(base, \u0027primary_keys\u0027):"},{"line_number":116,"context_line":"                cls.fields_no_update +\u003d base.primary_keys"}],"source_content_type":"text/x-python","patch_set":11,"id":"1af94dfe_9d2c084c","line":113,"range":{"start_line":113,"start_character":0,"end_line":113,"end_character":40},"updated":"2016-03-16 09:14:33.000000000","message":"As we\u0027re inheriting from ABCMeta, shouldn\u0027t we call super() here to take effects?","commit_id":"3d0f8e28e9486d23adfbe521e88eebba6c5b753e"}],"neutron/services/qos/qos_plugin.py":[{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"ee0f482de712f4acbe6d8b511ac92e79b918090e","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        obj \u003d policy_object.QosPolicy(context, id\u003dpolicy_id)"},{"line_number":52,"context_line":"        obj.obj_reset_changes()"},{"line_number":53,"context_line":"        values \u003d policy[\u0027policy\u0027]"},{"line_number":54,"context_line":"        ["},{"line_number":55,"context_line":"            setattr(obj, k, v)"},{"line_number":56,"context_line":"            for k, v in values.items()"},{"line_number":57,"context_line":"            if k !\u003d \u0027id\u0027"},{"line_number":58,"context_line":"        ]"},{"line_number":59,"context_line":"        obj.update()"},{"line_number":60,"context_line":"        self.notification_driver_manager.update_policy(context, obj)"},{"line_number":61,"context_line":"        return obj"}],"source_content_type":"text/x-python","patch_set":11,"id":"1af94dfe_7dbbfcc4","line":58,"range":{"start_line":54,"start_character":0,"end_line":58,"end_character":9},"updated":"2016-03-16 09:14:33.000000000","message":"Some static check programs may consider this as empty statement, I think for loop is better here.","commit_id":"3d0f8e28e9486d23adfbe521e88eebba6c5b753e"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"ee0f482de712f4acbe6d8b511ac92e79b918090e","unresolved":false,"context_lines":[{"line_number":116,"context_line":"                context, id\u003drule_id)"},{"line_number":117,"context_line":"            rule.obj_reset_changes()"},{"line_number":118,"context_line":"            values \u003d bandwidth_limit_rule[\u0027bandwidth_limit_rule\u0027]"},{"line_number":119,"context_line":"            ["},{"line_number":120,"context_line":"                setattr(rule, k, v)"},{"line_number":121,"context_line":"                for k, v in values.items()"},{"line_number":122,"context_line":"                if k !\u003d \u0027id\u0027"},{"line_number":123,"context_line":"            ]"},{"line_number":124,"context_line":"            rule.update()"},{"line_number":125,"context_line":"            policy.reload_rules()"},{"line_number":126,"context_line":"        self.notification_driver_manager.update_policy(context, policy)"}],"source_content_type":"text/x-python","patch_set":11,"id":"1af94dfe_5dc5603a","line":123,"range":{"start_line":119,"start_character":0,"end_line":123,"end_character":13},"updated":"2016-03-16 09:14:33.000000000","message":"ditto","commit_id":"3d0f8e28e9486d23adfbe521e88eebba6c5b753e"}],"neutron/tests/unit/objects/test_base.py":[{"author":{"_account_id":8726,"name":"Victor Morales","email":"chipahuac@hotmail.com","username":"electrocucaracha"},"change_message_id":"9dc416ae3cedbea28afdff1765bd251338c6d550","unresolved":false,"context_lines":[{"line_number":298,"context_line":"    def test_update_changes(self, update_mock):"},{"line_number":299,"context_line":"        fields_to_update \u003d self.get_updatable_fields(self.db_obj)"},{"line_number":300,"context_line":"        if not fields_to_update:"},{"line_number":301,"context_line":"            self.skipTest(\u0027No updatable fields found in test class %r\u0027 %"},{"line_number":302,"context_line":"                          self._test_class)"},{"line_number":303,"context_line":""},{"line_number":304,"context_line":"        with mock.patch.object(base.NeutronDbObject,"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afc51ec_4d52a5de","line":301,"updated":"2016-03-14 16:49:53.000000000","message":"Shouldn\u0027t this raise an error?  I don\u0027t think that makes sense to run a update test without updated fields.","commit_id":"43967acc886f6692485d6f5f1512c9ec636cb379"},{"author":{"_account_id":9551,"name":"Martin Hickey","email":"martin.hickey@ie.ibm.com","username":"mhickey"},"change_message_id":"08f7d885aecb5f5e77c172af99681d2681057440","unresolved":false,"context_lines":[{"line_number":298,"context_line":"    def test_update_changes(self, update_mock):"},{"line_number":299,"context_line":"        fields_to_update \u003d self.get_updatable_fields(self.db_obj)"},{"line_number":300,"context_line":"        if not fields_to_update:"},{"line_number":301,"context_line":"            self.skipTest(\u0027No updatable fields found in test class %r\u0027 %"},{"line_number":302,"context_line":"                          self._test_class)"},{"line_number":303,"context_line":""},{"line_number":304,"context_line":"        with mock.patch.object(base.NeutronDbObject,"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afc51ec_4665461c","line":301,"in_reply_to":"3afc51ec_4d52a5de","updated":"2016-03-15 10:05:07.000000000","message":"Ditto, on comments below.","commit_id":"43967acc886f6692485d6f5f1512c9ec636cb379"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"6334dabd60abd74aa29d608397a48e5760318f13","unresolved":false,"context_lines":[{"line_number":298,"context_line":"    def test_update_changes(self, update_mock):"},{"line_number":299,"context_line":"        fields_to_update \u003d self.get_updatable_fields(self.db_obj)"},{"line_number":300,"context_line":"        if not fields_to_update:"},{"line_number":301,"context_line":"            self.skipTest(\u0027No updatable fields found in test class %r\u0027 %"},{"line_number":302,"context_line":"                          self._test_class)"},{"line_number":303,"context_line":""},{"line_number":304,"context_line":"        with mock.patch.object(base.NeutronDbObject,"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afc51ec_6d4b21ca","line":301,"in_reply_to":"3afc51ec_4d52a5de","updated":"2016-03-14 16:53:10.000000000","message":"Those tests are inherited by all objects. For some objects, they just don\u0027t make sense, so it\u0027s ok to skip here.","commit_id":"43967acc886f6692485d6f5f1512c9ec636cb379"},{"author":{"_account_id":15518,"name":"Artur Korzeniewski","email":"artur.korzen@wp.pl","username":"akorzeni"},"change_message_id":"0a7c583bbe9a1a62531530ff8ca1e54af8a97391","unresolved":false,"context_lines":[{"line_number":298,"context_line":"    def test_update_changes(self, update_mock):"},{"line_number":299,"context_line":"        fields_to_update \u003d self.get_updatable_fields(self.db_obj)"},{"line_number":300,"context_line":"        if not fields_to_update:"},{"line_number":301,"context_line":"            self.skipTest(\u0027No updatable fields found in test class %r\u0027 %"},{"line_number":302,"context_line":"                          self._test_class)"},{"line_number":303,"context_line":""},{"line_number":304,"context_line":"        with mock.patch.object(base.NeutronDbObject,"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afc51ec_c25b1f86","line":301,"in_reply_to":"3afc51ec_6d4b21ca","updated":"2016-03-14 17:27:30.000000000","message":"This is ok.","commit_id":"43967acc886f6692485d6f5f1512c9ec636cb379"},{"author":{"_account_id":15518,"name":"Artur Korzeniewski","email":"artur.korzen@wp.pl","username":"akorzeni"},"change_message_id":"0a7c583bbe9a1a62531530ff8ca1e54af8a97391","unresolved":false,"context_lines":[{"line_number":329,"context_line":"            obj \u003d self._test_class(self.context, **self.db_objs[1])"},{"line_number":330,"context_line":"            fields_to_update \u003d self.get_updatable_fields(self.db_objs[1])"},{"line_number":331,"context_line":"            if not fields_to_update:"},{"line_number":332,"context_line":"                self.skipTest(\u0027No updatable fields found in test class %r\u0027 %"},{"line_number":333,"context_line":"                              self._test_class)"},{"line_number":334,"context_line":"            with mock.patch.object(base.NeutronDbObject,"},{"line_number":335,"context_line":"                                   \u0027_get_changed_persistent_fields\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afc51ec_62168ba8","line":332,"updated":"2016-03-14 17:27:30.000000000","message":"This is ok.","commit_id":"43967acc886f6692485d6f5f1512c9ec636cb379"},{"author":{"_account_id":9551,"name":"Martin Hickey","email":"martin.hickey@ie.ibm.com","username":"mhickey"},"change_message_id":"08f7d885aecb5f5e77c172af99681d2681057440","unresolved":false,"context_lines":[{"line_number":329,"context_line":"            obj \u003d self._test_class(self.context, **self.db_objs[1])"},{"line_number":330,"context_line":"            fields_to_update \u003d self.get_updatable_fields(self.db_objs[1])"},{"line_number":331,"context_line":"            if not fields_to_update:"},{"line_number":332,"context_line":"                self.skipTest(\u0027No updatable fields found in test class %r\u0027 %"},{"line_number":333,"context_line":"                              self._test_class)"},{"line_number":334,"context_line":"            with mock.patch.object(base.NeutronDbObject,"},{"line_number":335,"context_line":"                                   \u0027_get_changed_persistent_fields\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afc51ec_c67956ca","line":332,"in_reply_to":"3afc51ec_62168ba8","updated":"2016-03-15 10:05:07.000000000","message":":)","commit_id":"43967acc886f6692485d6f5f1512c9ec636cb379"},{"author":{"_account_id":15518,"name":"Artur Korzeniewski","email":"artur.korzen@wp.pl","username":"akorzeni"},"change_message_id":"0a7c583bbe9a1a62531530ff8ca1e54af8a97391","unresolved":false,"context_lines":[{"line_number":402,"context_line":""},{"line_number":403,"context_line":"        obj \u003d new"},{"line_number":404,"context_line":""},{"line_number":405,"context_line":"        fields_to_update \u003d self.get_updatable_fields(self.db_obj)"},{"line_number":406,"context_line":"        if not fields_to_update:"},{"line_number":407,"context_line":"            self.skipTest(\u0027No updatable fields found in test class %r\u0027 %"},{"line_number":408,"context_line":"                          self._test_class)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afc51ec_424d4f6b","line":405,"updated":"2016-03-14 17:27:30.000000000","message":"I\u0027m wondering if you have to skip this CRUD test for no updatable objects... this test does not check whether or not the update() to the DB was triggered...","commit_id":"43967acc886f6692485d6f5f1512c9ec636cb379"},{"author":{"_account_id":15518,"name":"Artur Korzeniewski","email":"artur.korzen@wp.pl","username":"akorzeni"},"change_message_id":"34ef2099083150fe9035e8db0421df9a4f213cb6","unresolved":false,"context_lines":[{"line_number":406,"context_line":"        if not fields_to_update:"},{"line_number":407,"context_line":"            self.skipTest(\u0027No updatable fields found in test class %r\u0027 %"},{"line_number":408,"context_line":"                          self._test_class)"},{"line_number":409,"context_line":"        for key, val in fields_to_update.items():"},{"line_number":410,"context_line":"            setattr(obj, key, val)"},{"line_number":411,"context_line":"        obj.update()"},{"line_number":412,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3afc51ec_0227c7ca","line":409,"updated":"2016-03-14 17:30:54.000000000","message":"If there is no fields_to_update, new values won\u0027t be set","commit_id":"43967acc886f6692485d6f5f1512c9ec636cb379"},{"author":{"_account_id":15518,"name":"Artur Korzeniewski","email":"artur.korzen@wp.pl","username":"akorzeni"},"change_message_id":"34ef2099083150fe9035e8db0421df9a4f213cb6","unresolved":false,"context_lines":[{"line_number":408,"context_line":"                          self._test_class)"},{"line_number":409,"context_line":"        for key, val in fields_to_update.items():"},{"line_number":410,"context_line":"            setattr(obj, key, val)"},{"line_number":411,"context_line":"        obj.update()"},{"line_number":412,"context_line":""},{"line_number":413,"context_line":"        new \u003d self._test_class.get_object(self.context,"},{"line_number":414,"context_line":"            **obj._get_composite_keys())"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afc51ec_354ddb6c","line":411,"updated":"2016-03-14 17:30:54.000000000","message":"If there is no fields_to_update, the update() method won\u0027t execute DB API call.\nIt is beneficial to test the CRUD operations besides the update.","commit_id":"43967acc886f6692485d6f5f1512c9ec636cb379"},{"author":{"_account_id":15518,"name":"Artur Korzeniewski","email":"artur.korzen@wp.pl","username":"akorzeni"},"change_message_id":"0a7c583bbe9a1a62531530ff8ca1e54af8a97391","unresolved":false,"context_lines":[{"line_number":427,"context_line":""},{"line_number":428,"context_line":"        fields_to_update \u003d self.get_updatable_fields(self.db_obj)"},{"line_number":429,"context_line":"        if not fields_to_update:"},{"line_number":430,"context_line":"            self.skipTest(\u0027No updatable fields found in test class %r\u0027 %"},{"line_number":431,"context_line":"                          self._test_class)"},{"line_number":432,"context_line":"        for key, val in fields_to_update.items():"},{"line_number":433,"context_line":"            setattr(obj, key, val)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afc51ec_02c6a799","line":430,"updated":"2016-03-14 17:27:30.000000000","message":"This is ok.","commit_id":"43967acc886f6692485d6f5f1512c9ec636cb379"},{"author":{"_account_id":9551,"name":"Martin Hickey","email":"martin.hickey@ie.ibm.com","username":"mhickey"},"change_message_id":"08f7d885aecb5f5e77c172af99681d2681057440","unresolved":false,"context_lines":[{"line_number":427,"context_line":""},{"line_number":428,"context_line":"        fields_to_update \u003d self.get_updatable_fields(self.db_obj)"},{"line_number":429,"context_line":"        if not fields_to_update:"},{"line_number":430,"context_line":"            self.skipTest(\u0027No updatable fields found in test class %r\u0027 %"},{"line_number":431,"context_line":"                          self._test_class)"},{"line_number":432,"context_line":"        for key, val in fields_to_update.items():"},{"line_number":433,"context_line":"            setattr(obj, key, val)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afc51ec_a65d2a49","line":430,"in_reply_to":"3afc51ec_02c6a799","updated":"2016-03-15 10:05:07.000000000","message":":)","commit_id":"43967acc886f6692485d6f5f1512c9ec636cb379"},{"author":{"_account_id":15518,"name":"Artur Korzeniewski","email":"artur.korzen@wp.pl","username":"akorzeni"},"change_message_id":"0a7c583bbe9a1a62531530ff8ca1e54af8a97391","unresolved":false,"context_lines":[{"line_number":450,"context_line":""},{"line_number":451,"context_line":"        fields_to_update \u003d self.get_updatable_fields(self.db_obj)"},{"line_number":452,"context_line":"        if not fields_to_update:"},{"line_number":453,"context_line":"            self.skipTest(\u0027No updatable fields found in test class %r\u0027 %"},{"line_number":454,"context_line":"                          self._test_class)"},{"line_number":455,"context_line":"        for key, val in fields_to_update.items():"},{"line_number":456,"context_line":"            setattr(obj, key, val)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afc51ec_a2453318","line":453,"updated":"2016-03-14 17:27:30.000000000","message":"This is ok.","commit_id":"43967acc886f6692485d6f5f1512c9ec636cb379"},{"author":{"_account_id":9551,"name":"Martin Hickey","email":"martin.hickey@ie.ibm.com","username":"mhickey"},"change_message_id":"08f7d885aecb5f5e77c172af99681d2681057440","unresolved":false,"context_lines":[{"line_number":450,"context_line":""},{"line_number":451,"context_line":"        fields_to_update \u003d self.get_updatable_fields(self.db_obj)"},{"line_number":452,"context_line":"        if not fields_to_update:"},{"line_number":453,"context_line":"            self.skipTest(\u0027No updatable fields found in test class %r\u0027 %"},{"line_number":454,"context_line":"                          self._test_class)"},{"line_number":455,"context_line":"        for key, val in fields_to_update.items():"},{"line_number":456,"context_line":"            setattr(obj, key, val)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afc51ec_0657be26","line":453,"in_reply_to":"3afc51ec_a2453318","updated":"2016-03-15 10:05:07.000000000","message":":)","commit_id":"43967acc886f6692485d6f5f1512c9ec636cb379"},{"author":{"_account_id":15518,"name":"Artur Korzeniewski","email":"artur.korzen@wp.pl","username":"akorzeni"},"change_message_id":"0a7c583bbe9a1a62531530ff8ca1e54af8a97391","unresolved":false,"context_lines":[{"line_number":481,"context_line":"            **obj._get_composite_keys())"},{"line_number":482,"context_line":"        self.assertEqual(2, mock_commit.call_count)"},{"line_number":483,"context_line":""},{"line_number":484,"context_line":"    def test_update_no_field_to_update_no_field_update(self):"},{"line_number":485,"context_line":"        obj \u003d self._test_class(self.context, **self.db_obj)"},{"line_number":486,"context_line":"        obj.obj_reset_changes()"},{"line_number":487,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3afc51ec_224be3b1","line":484,"updated":"2016-03-14 17:27:30.000000000","message":"This is ok.","commit_id":"43967acc886f6692485d6f5f1512c9ec636cb379"},{"author":{"_account_id":9551,"name":"Martin Hickey","email":"martin.hickey@ie.ibm.com","username":"mhickey"},"change_message_id":"08f7d885aecb5f5e77c172af99681d2681057440","unresolved":false,"context_lines":[{"line_number":481,"context_line":"            **obj._get_composite_keys())"},{"line_number":482,"context_line":"        self.assertEqual(2, mock_commit.call_count)"},{"line_number":483,"context_line":""},{"line_number":484,"context_line":"    def test_update_no_field_to_update_no_field_update(self):"},{"line_number":485,"context_line":"        obj \u003d self._test_class(self.context, **self.db_obj)"},{"line_number":486,"context_line":"        obj.obj_reset_changes()"},{"line_number":487,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3afc51ec_2638faee","line":484,"in_reply_to":"3afc51ec_224be3b1","updated":"2016-03-15 10:05:07.000000000","message":":)","commit_id":"43967acc886f6692485d6f5f1512c9ec636cb379"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"424662d0862b52503ba73e74614abbf1290db7dc","unresolved":false,"context_lines":[{"line_number":520,"context_line":""},{"line_number":521,"context_line":"    def test_update_no_field_to_update_no_field_update(self):"},{"line_number":522,"context_line":"        obj \u003d self._test_class(self.context, **self.db_obj)"},{"line_number":523,"context_line":"        obj.obj_reset_changes()"},{"line_number":524,"context_line":""},{"line_number":525,"context_line":"        fields_to_update \u003d self.get_updatable_fields(self.db_obj)"},{"line_number":526,"context_line":"        if fields_to_update:"}],"source_content_type":"text/x-python","patch_set":4,"id":"1af94dfe_6496fb95","line":523,"updated":"2016-03-15 13:35:59.000000000","message":"why do we need this line?","commit_id":"9f9c345c6d75a92dfd7260e5283d1ca31851f66e"},{"author":{"_account_id":9551,"name":"Martin Hickey","email":"martin.hickey@ie.ibm.com","username":"mhickey"},"change_message_id":"1435bf2eb364108541c7f9852e6ed338b789aeaa","unresolved":false,"context_lines":[{"line_number":520,"context_line":""},{"line_number":521,"context_line":"    def test_update_no_field_to_update_no_field_update(self):"},{"line_number":522,"context_line":"        obj \u003d self._test_class(self.context, **self.db_obj)"},{"line_number":523,"context_line":"        obj.obj_reset_changes()"},{"line_number":524,"context_line":""},{"line_number":525,"context_line":"        fields_to_update \u003d self.get_updatable_fields(self.db_obj)"},{"line_number":526,"context_line":"        if fields_to_update:"}],"source_content_type":"text/x-python","patch_set":4,"id":"1af94dfe_fda9fae0","line":523,"in_reply_to":"1af94dfe_6496fb95","updated":"2016-03-15 14:56:48.000000000","message":"Not sure, copy/paste I think! :-) Removed.","commit_id":"9f9c345c6d75a92dfd7260e5283d1ca31851f66e"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"c2c2459eb73e514af202825907d0f4ab3b39050d","unresolved":false,"context_lines":[{"line_number":394,"context_line":""},{"line_number":395,"context_line":"        if not self._test_class.primary_keys:"},{"line_number":396,"context_line":"            self.skipTest("},{"line_number":397,"context_line":"                \u0027All non-updatable fields found in test class %r \u0027"},{"line_number":398,"context_line":"                \u0027are primary keys\u0027 % self._test_class)"},{"line_number":399,"context_line":""},{"line_number":400,"context_line":"        for key, val in self.db_obj.items():"}],"source_content_type":"text/x-python","patch_set":15,"id":"1af94dfe_1cb8f1e4","line":397,"range":{"start_line":397,"start_character":21,"end_line":397,"end_character":34},"updated":"2016-03-16 12:21:52.000000000","message":"it should be \"updatable\" ...we can fix it in a follow-up","commit_id":"9cf09ef680ed837ae26bc818e26cee8b586d72ed"}]}
