)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":14611,"name":"dasm","display_name":"dasm","email":"dsmigiel@redhat.com","username":"dasm"},"change_message_id":"75af5801f37a004021158a1b69b19625972f1428","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Refactor get_object in object/db/api"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Given that OVO work is under progress and is kind of blocked"},{"line_number":10,"context_line":"by missing support for sqlalchemy queries like first() or one()etc"},{"line_number":11,"context_line":"via helper method. This patch will refactor get_object in order to"},{"line_number":12,"context_line":"support one(), one_or_none() queries by passing method name as argument"},{"line_number":13,"context_line":"to get object."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"dada55a8_9bcb31a5","line":10,"updated":"2016-07-19 19:25:08.000000000","message":"nit: missing whitespace","commit_id":"b911bd578a0392e7c8bf4dc14f4117d47bfabf4a"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"d9f2aabb9cf27313093c089d7d8f7152faa25975","unresolved":false,"context_lines":[{"line_number":14,"context_line":"[3], [4]. For example existing api is unable to handle use cases"},{"line_number":15,"context_line":"like [1], [2]."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"[1].https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/extensions/dns_integration.py#L65"},{"line_number":18,"context_line":"[2].https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/extensions/dns_integration.py#L102-L103"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"This patch is needed OVO patches under progress which I linked below."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"dada55a8_fe002968","line":17,"updated":"2016-07-20 16:04:05.000000000","message":"I don\u0027t think this is a valid use case. Object user can always fetch objects, then validate that it\u0027s just a single one, if it\u0027s indeed needed.\n\nHey, network_id is a primary key there. Why can\u0027t you just use get_object() there?","commit_id":"b04774afab4abbd77032278a468be7505c0848d5"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"2939277cbf75185dad29f11bbc9365dc6e7124c9","unresolved":false,"context_lines":[{"line_number":14,"context_line":"[3], [4]. For example existing api is unable to handle use cases"},{"line_number":15,"context_line":"like [1], [2]."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"[1].https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/extensions/dns_integration.py#L65"},{"line_number":18,"context_line":"[2].https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/extensions/dns_integration.py#L102-L103"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"This patch is needed OVO patches under progress which I linked below."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"dada55a8_ca311b5c","line":17,"in_reply_to":"dada55a8_0f7065db","updated":"2016-07-20 16:58:50.000000000","message":"I don\u0027t think it makes a reasonable API if you start passing random SQLAlchemy methods as arguments. I prefer we keep things clean and isolated.","commit_id":"b04774afab4abbd77032278a468be7505c0848d5"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f60afbbddab7d2baa2e381623665fc71f503cd02","unresolved":false,"context_lines":[{"line_number":14,"context_line":"[3], [4]. For example existing api is unable to handle use cases"},{"line_number":15,"context_line":"like [1], [2]."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"[1].https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/extensions/dns_integration.py#L65"},{"line_number":18,"context_line":"[2].https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/extensions/dns_integration.py#L102-L103"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"This patch is needed OVO patches under progress which I linked below."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"dada55a8_230b98d7","line":17,"in_reply_to":"dada55a8_1b808bf4","updated":"2016-07-21 12:36:09.000000000","message":"I honestly don\u0027t think there is a huge set of use cases where get_one_object would be useful. We already have get_object for cases where we guarantee it\u0027s unique by unique constraints. If you try to fetch a single object with non-unique criteria, I think it\u0027s valid to let you handle the result as you see fit.\n\nI suggest we move on without changing object API, and see if we stumble on a lot of use cases that would justify expanding API.","commit_id":"b04774afab4abbd77032278a468be7505c0848d5"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"09368e76619540619bc66f823c2b3098938370c2","unresolved":false,"context_lines":[{"line_number":14,"context_line":"[3], [4]. For example existing api is unable to handle use cases"},{"line_number":15,"context_line":"like [1], [2]."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"[1].https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/extensions/dns_integration.py#L65"},{"line_number":18,"context_line":"[2].https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/extensions/dns_integration.py#L102-L103"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"This patch is needed OVO patches under progress which I linked below."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"dada55a8_f1f00e69","line":17,"in_reply_to":"dada55a8_230b98d7","updated":"2016-07-21 21:42:52.000000000","message":"Ok, I had revised patch https://review.openstack.org/#/c/334695/ to have solution the way artur suggested. we can modify or remove new api I added if we felt current api is missing something. if that solution is accepted i\u0027ll abandon this patch","commit_id":"b04774afab4abbd77032278a468be7505c0848d5"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"26eefd18973802123477e2a69d9139e762858e41","unresolved":false,"context_lines":[{"line_number":14,"context_line":"[3], [4]. For example existing api is unable to handle use cases"},{"line_number":15,"context_line":"like [1], [2]."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"[1].https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/extensions/dns_integration.py#L65"},{"line_number":18,"context_line":"[2].https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/extensions/dns_integration.py#L102-L103"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"This patch is needed OVO patches under progress which I linked below."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"dada55a8_88bc4607","line":17,"in_reply_to":"dada55a8_52d0411f","updated":"2016-07-20 19:33:46.000000000","message":"it either gives the result or give none but does not raise exception when expected I see a benefit with that.\nhttps://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/extensions/dns_integration.py#L102-L103 session queries are wrapped in regular if elses. I am not sure at the moment if they are dealing with exceptions outside this file. but I think thats the reason why one(), one_or_none being used here ? i don\u0027t think of any exception handled like one or one_or_none here as well https://github.com/openstack/neutron/blob/master/neutron/objects/base.py#L357-L363  i see it does look for primary keys which is good. but idea is to get the benefit of libraries rather than writing helper method in neutron to handle those .","commit_id":"b04774afab4abbd77032278a468be7505c0848d5"},{"author":{"_account_id":15518,"name":"Artur Korzeniewski","email":"artur.korzen@wp.pl","username":"akorzeni"},"change_message_id":"54b9cb746ede648e5da307f4f8567237cc71a3a0","unresolved":false,"context_lines":[{"line_number":14,"context_line":"[3], [4]. For example existing api is unable to handle use cases"},{"line_number":15,"context_line":"like [1], [2]."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"[1].https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/extensions/dns_integration.py#L65"},{"line_number":18,"context_line":"[2].https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/extensions/dns_integration.py#L102-L103"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"This patch is needed OVO patches under progress which I linked below."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"dada55a8_1b808bf4","line":17,"in_reply_to":"dada55a8_88bc4607","updated":"2016-07-21 08:43:07.000000000","message":"one_or_none() is handled by get_object already, it returns none if object was not found. one() - raising exception when more then one object was found is not covered in objects DB API. The solution can be implemented at object user side, it would requires calling get_objects and then count results. Maybe we can add in DB API get_one_object() that would raise exception when found more then one result? get_one_object should also be exposed in base NeutronDbObject class. So we would have get_object, get_one_object and get_objects methods. This seems the best option, without introducing _method argument to get_object. How about that idea?","commit_id":"b04774afab4abbd77032278a468be7505c0848d5"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"a034ad5b1f704c0911093eb679c581a82a141adb","unresolved":false,"context_lines":[{"line_number":14,"context_line":"[3], [4]. For example existing api is unable to handle use cases"},{"line_number":15,"context_line":"like [1], [2]."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"[1].https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/extensions/dns_integration.py#L65"},{"line_number":18,"context_line":"[2].https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/extensions/dns_integration.py#L102-L103"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"This patch is needed OVO patches under progress which I linked below."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"dada55a8_de7e0069","line":17,"in_reply_to":"dada55a8_ca311b5c","updated":"2016-07-20 17:25:39.000000000","message":"but its already validated what methods it supports and what it does not. it is better have it done here rather than having another helper methods to do that work in neutron according to me. when you say reasonable api it is not going to affect the existing use because default behavior is exactly same + some extended functionality if in future any developer feel default is not enough.","commit_id":"b04774afab4abbd77032278a468be7505c0848d5"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"458878b922e6e4ec2984e05b15e1b142053b753f","unresolved":false,"context_lines":[{"line_number":14,"context_line":"[3], [4]. For example existing api is unable to handle use cases"},{"line_number":15,"context_line":"like [1], [2]."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"[1].https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/extensions/dns_integration.py#L65"},{"line_number":18,"context_line":"[2].https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/extensions/dns_integration.py#L102-L103"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"This patch is needed OVO patches under progress which I linked below."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"dada55a8_52d0411f","line":17,"in_reply_to":"dada55a8_de7e0069","updated":"2016-07-20 18:41:18.000000000","message":"Sorry, I don\u0027t feel injecting SQLAlchemy method names into objects API makes a good API. I also doubt there is a need to accommodate for that specific way of using the object. API as is now already provides building blocks for the use cases you envision.","commit_id":"b04774afab4abbd77032278a468be7505c0848d5"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"d5603912828feddedc6d2fac75b4b04856b2e003","unresolved":false,"context_lines":[{"line_number":14,"context_line":"[3], [4]. For example existing api is unable to handle use cases"},{"line_number":15,"context_line":"like [1], [2]."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"[1].https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/extensions/dns_integration.py#L65"},{"line_number":18,"context_line":"[2].https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/extensions/dns_integration.py#L102-L103"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"This patch is needed OVO patches under progress which I linked below."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"dada55a8_0f7065db","line":17,"in_reply_to":"dada55a8_fe002968","updated":"2016-07-20 16:45:57.000000000","message":"I explained that to rosella same thing in https://review.openstack.org/#/c/334695/8/neutron/plugins/ml2/extensions/dns_integration.py but I realized this is needed and good to have it done by api. validation with objects can be tricky this will provide the flexibility. and we can also add methods in future if needed.","commit_id":"b04774afab4abbd77032278a468be7505c0848d5"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"d9f2aabb9cf27313093c089d7d8f7152faa25975","unresolved":false,"context_lines":[{"line_number":15,"context_line":"like [1], [2]."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"[1].https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/extensions/dns_integration.py#L65"},{"line_number":18,"context_line":"[2].https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/extensions/dns_integration.py#L102-L103"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"This patch is needed OVO patches under progress which I linked below."},{"line_number":21,"context_line":"[3]. https://review.openstack.org/#/c/334695/"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"dada55a8_1e589d89","line":18,"updated":"2016-07-20 16:04:05.000000000","message":"get_object() already returns None if no resource is found. Isn\u0027t it enough?","commit_id":"b04774afab4abbd77032278a468be7505c0848d5"}],"neutron/objects/base.py":[{"author":{"_account_id":22220,"name":"Anindita Das","email":"anindita.das@utexas.edu","username":"anudas"},"change_message_id":"f62259e129cee6c1ff8194eeff3d6a8c9101f066","unresolved":false,"context_lines":[{"line_number":69,"context_line":""},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"class NeutronQueryMethodNotSupported(exceptions.NeutronException):"},{"line_number":72,"context_line":"    message \u003d _(\"Query attribute %(_method)s is not an query attribute \")"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"def get_updatable_fields(cls, fields):"}],"source_content_type":"text/x-python","patch_set":3,"id":"dada55a8_daf088cb","line":72,"updated":"2016-07-21 19:17:24.000000000","message":"Looks Ok to me \n\nnit: Instead of _(\"Query attribute %(_method)s is not an query attribute \") it will be helpful to have the message as _(\"Query attribute %(_method)s is not a valid query attribute \")","commit_id":"b04774afab4abbd77032278a468be7505c0848d5"},{"author":{"_account_id":8726,"name":"Victor Morales","email":"chipahuac@hotmail.com","username":"electrocucaracha"},"change_message_id":"ca8141731881ed620bf77c8f34a3b6a09fe98161","unresolved":false,"context_lines":[{"line_number":69,"context_line":""},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"class NeutronQueryMethodNotSupported(exceptions.NeutronException):"},{"line_number":72,"context_line":"    message \u003d _(\"Query attribute %(_method)s is not an query attribute \")"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"def get_updatable_fields(cls, fields):"}],"source_content_type":"text/x-python","patch_set":3,"id":"dada55a8_f6724d7b","line":72,"in_reply_to":"dada55a8_daf088cb","updated":"2016-07-25 16:40:40.000000000","message":"that change could be also affect the name of the method for NeutronInvalidQueryAttribute","commit_id":"b04774afab4abbd77032278a468be7505c0848d5"},{"author":{"_account_id":8726,"name":"Victor Morales","email":"chipahuac@hotmail.com","username":"electrocucaracha"},"change_message_id":"ca8141731881ed620bf77c8f34a3b6a09fe98161","unresolved":false,"context_lines":[{"line_number":343,"context_line":"            self[attrname] \u003d None"},{"line_number":344,"context_line":""},{"line_number":345,"context_line":"    @classmethod"},{"line_number":346,"context_line":"    def get_object(cls, context, _method\u003d\u0027first\u0027, **kwargs):"},{"line_number":347,"context_line":"        \"\"\""},{"line_number":348,"context_line":"        Fetch object from DB and convert it to a versioned object."},{"line_number":349,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"dada55a8_366345de","line":346,"range":{"start_line":346,"start_character":33,"end_line":346,"end_character":40},"updated":"2016-07-25 16:40:40.000000000","message":"nit: s/_method/method","commit_id":"b04774afab4abbd77032278a468be7505c0848d5"}],"neutron/objects/db/api.py":[{"author":{"_account_id":6951,"name":"Brandon Logan","email":"brandon.logan@rackspace.com","username":"brandon-logan"},"change_message_id":"734a2988140feeec02dbfb2e557043a3f112ae2e","unresolved":false,"context_lines":[{"line_number":17,"context_line":""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"# Common database operation implementations"},{"line_number":20,"context_line":"def get_object(context, model, _method\u003d\u0027first\u0027, **kwargs):"},{"line_number":21,"context_line":"    # TODO(jlibosva): decompose _model_query from plugin instance"},{"line_number":22,"context_line":"    plugin \u003d manager.NeutronManager.get_plugin()"},{"line_number":23,"context_line":"    with context.session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":1,"id":"dada55a8_db276910","line":20,"updated":"2016-07-19 19:34:41.000000000","message":"this method needs a docstring, at least outlining what _method is and what the possible enumerations are.  In fact, I might also suggest defining enumerations as constants in this module (or wherever an appropriate module would be for it, thats debatable).","commit_id":"b911bd578a0392e7c8bf4dc14f4117d47bfabf4a"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"68f0b8a1661db6658f5991d01a2e29909a5af539","unresolved":false,"context_lines":[{"line_number":17,"context_line":""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"# Common database operation implementations"},{"line_number":20,"context_line":"def get_object(context, model, _method\u003d\u0027first\u0027, **kwargs):"},{"line_number":21,"context_line":"    # TODO(jlibosva): decompose _model_query from plugin instance"},{"line_number":22,"context_line":"    plugin \u003d manager.NeutronManager.get_plugin()"},{"line_number":23,"context_line":"    with context.session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":1,"id":"dada55a8_a4852dae","line":20,"in_reply_to":"dada55a8_db276910","updated":"2016-07-19 23:06:20.000000000","message":"added docstring","commit_id":"b911bd578a0392e7c8bf4dc14f4117d47bfabf4a"},{"author":{"_account_id":8726,"name":"Victor Morales","email":"chipahuac@hotmail.com","username":"electrocucaracha"},"change_message_id":"ca8141731881ed620bf77c8f34a3b6a09fe98161","unresolved":false,"context_lines":[{"line_number":17,"context_line":""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"# Common database operation implementations"},{"line_number":20,"context_line":"def get_object(context, model, _method\u003d\u0027first\u0027, **kwargs):"},{"line_number":21,"context_line":"    \"\"\""},{"line_number":22,"context_line":"    Fetch a object from DB based on requested method"},{"line_number":23,"context_line":"    :param context:"}],"source_content_type":"text/x-python","patch_set":3,"id":"dada55a8_b6abb588","line":20,"range":{"start_line":20,"start_character":31,"end_line":20,"end_character":38},"updated":"2016-07-25 16:40:40.000000000","message":"nit: s/_method/method","commit_id":"b04774afab4abbd77032278a468be7505c0848d5"}],"neutron/tests/unit/objects/qos/test_policy.py":[{"author":{"_account_id":6951,"name":"Brandon Logan","email":"brandon.logan@rackspace.com","username":"brandon-logan"},"change_message_id":"734a2988140feeec02dbfb2e557043a3f112ae2e","unresolved":false,"context_lines":[{"line_number":102,"context_line":"                context_mock.assert_called_once_with()"},{"line_number":103,"context_line":"                get_object_mock.assert_called_once_with("},{"line_number":104,"context_line":"                    admin_context, self._test_class.db_model,"},{"line_number":105,"context_line":"                    \u0027first\u0027, id\u003d\u0027fake_id\u0027)"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"class QosPolicyDbObjectTestCase(test_base.BaseDbObjectTestCase,"}],"source_content_type":"text/x-python","patch_set":1,"id":"dada55a8_9b5b3187","line":105,"range":{"start_line":105,"start_character":20,"end_line":105,"end_character":27},"updated":"2016-07-19 19:34:41.000000000","message":"use the keyword argument here to safeguard against future new arguments getting added and possibly being in the same position as this expects.","commit_id":"b911bd578a0392e7c8bf4dc14f4117d47bfabf4a"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"68f0b8a1661db6658f5991d01a2e29909a5af539","unresolved":false,"context_lines":[{"line_number":102,"context_line":"                context_mock.assert_called_once_with()"},{"line_number":103,"context_line":"                get_object_mock.assert_called_once_with("},{"line_number":104,"context_line":"                    admin_context, self._test_class.db_model,"},{"line_number":105,"context_line":"                    \u0027first\u0027, id\u003d\u0027fake_id\u0027)"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"class QosPolicyDbObjectTestCase(test_base.BaseDbObjectTestCase,"}],"source_content_type":"text/x-python","patch_set":1,"id":"dada55a8_049519dd","line":105,"range":{"start_line":105,"start_character":20,"end_line":105,"end_character":27},"in_reply_to":"dada55a8_9b5b3187","updated":"2016-07-19 23:06:20.000000000","message":"Done","commit_id":"b911bd578a0392e7c8bf4dc14f4117d47bfabf4a"}],"neutron/tests/unit/objects/test_base.py":[{"author":{"_account_id":6951,"name":"Brandon Logan","email":"brandon.logan@rackspace.com","username":"brandon-logan"},"change_message_id":"734a2988140feeec02dbfb2e557043a3f112ae2e","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"dada55a8_fba6ad51","updated":"2016-07-19 19:34:41.000000000","message":"would be nice to also have tests to test one, one_or_none, and some string that the method doesn\u0027t expect.","commit_id":"b911bd578a0392e7c8bf4dc14f4117d47bfabf4a"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"68f0b8a1661db6658f5991d01a2e29909a5af539","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"dada55a8_64ba1570","in_reply_to":"dada55a8_fba6ad51","updated":"2016-07-19 23:06:20.000000000","message":"added if it raises the exception when someone pass in unexpected method .","commit_id":"b911bd578a0392e7c8bf4dc14f4117d47bfabf4a"},{"author":{"_account_id":6951,"name":"Brandon Logan","email":"brandon.logan@rackspace.com","username":"brandon-logan"},"change_message_id":"734a2988140feeec02dbfb2e557043a3f112ae2e","unresolved":false,"context_lines":[{"line_number":378,"context_line":"                self.assertTrue(self._is_test_class(obj))"},{"line_number":379,"context_line":"                self.assertEqual(self.obj_fields[0], get_obj_db_fields(obj))"},{"line_number":380,"context_line":"                get_object_mock.assert_called_once_with("},{"line_number":381,"context_line":"                    self.context, self._test_class.db_model, \u0027first\u0027,"},{"line_number":382,"context_line":"                    **self._test_class.modify_fields_to_db(obj_keys))"},{"line_number":383,"context_line":""},{"line_number":384,"context_line":"    def test_get_object_missing_object(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"dada55a8_1b50e15c","line":381,"range":{"start_line":381,"start_character":61,"end_line":381,"end_character":68},"updated":"2016-07-19 19:34:41.000000000","message":"same as other file.","commit_id":"b911bd578a0392e7c8bf4dc14f4117d47bfabf4a"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"68f0b8a1661db6658f5991d01a2e29909a5af539","unresolved":false,"context_lines":[{"line_number":378,"context_line":"                self.assertTrue(self._is_test_class(obj))"},{"line_number":379,"context_line":"                self.assertEqual(self.obj_fields[0], get_obj_db_fields(obj))"},{"line_number":380,"context_line":"                get_object_mock.assert_called_once_with("},{"line_number":381,"context_line":"                    self.context, self._test_class.db_model, \u0027first\u0027,"},{"line_number":382,"context_line":"                    **self._test_class.modify_fields_to_db(obj_keys))"},{"line_number":383,"context_line":""},{"line_number":384,"context_line":"    def test_get_object_missing_object(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"dada55a8_e48f25ca","line":381,"range":{"start_line":381,"start_character":61,"end_line":381,"end_character":68},"in_reply_to":"dada55a8_1b50e15c","updated":"2016-07-19 23:06:20.000000000","message":"Done","commit_id":"b911bd578a0392e7c8bf4dc14f4117d47bfabf4a"},{"author":{"_account_id":8726,"name":"Victor Morales","email":"chipahuac@hotmail.com","username":"electrocucaracha"},"change_message_id":"ca8141731881ed620bf77c8f34a3b6a09fe98161","unresolved":false,"context_lines":[{"line_number":378,"context_line":"                self.assertTrue(self._is_test_class(obj))"},{"line_number":379,"context_line":"                self.assertEqual(self.obj_fields[0], get_obj_db_fields(obj))"},{"line_number":380,"context_line":"                get_object_mock.assert_called_once_with("},{"line_number":381,"context_line":"                    self.context, self._test_class.db_model, _method\u003d\u0027first\u0027,"},{"line_number":382,"context_line":"                    **self._test_class.modify_fields_to_db(obj_keys))"},{"line_number":383,"context_line":""},{"line_number":384,"context_line":"    def test_get_object_missing_object(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"dada55a8_16f8c148","line":381,"updated":"2016-07-25 16:40:40.000000000","message":"I think that you also have to cover the other methods(\u0027one\u0027 and \u0027one_or_none\u0027)","commit_id":"b04774afab4abbd77032278a468be7505c0848d5"}]}
