)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7018,"name":"Abhishek Raut","email":"rauta@vmware.com","username":"abhiraut"},"change_message_id":"d9188cd5f74903db6ef7ce217d42d5374879d96e","unresolved":false,"context_lines":[{"line_number":32,"context_line":"  way;"},{"line_number":33,"context_line":"- fields_no_update class attribute is now actually enforced in base"},{"line_number":34,"context_line":"  object class."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"Change-Id: Iadabd14c3490c842608e53ceccf38c79dcdf8d85"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"3a50d1a3_d30e5d3c","line":35,"updated":"2015-07-28 20:47:07.000000000","message":"should it not be implementing the blueprint quantum-qos-api?","commit_id":"5f7d0f2cf7f8ceda6e431fdaef4d103c348c844a"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"e916b0d38f60a0749b54776e7c7078bf7ce23d9f","unresolved":false,"context_lines":[{"line_number":32,"context_line":"  way;"},{"line_number":33,"context_line":"- fields_no_update class attribute is now actually enforced in base"},{"line_number":34,"context_line":"  object class."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"Change-Id: Iadabd14c3490c842608e53ceccf38c79dcdf8d85"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"3a50d1a3_ca41adaa","line":35,"in_reply_to":"3a50d1a3_d30e5d3c","updated":"2015-07-29 08:04:57.000000000","message":"Done","commit_id":"5f7d0f2cf7f8ceda6e431fdaef4d103c348c844a"}],"doc/source/devref/quality_of_service.rst":[{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"5e51c64cb3dd39384bf200a017b32bfa40aa376d","unresolved":false,"context_lines":[{"line_number":132,"context_line":""},{"line_number":133,"context_line":"For Qos\u003ctype\u003eRule objects, an extendable approach was taken to allow easy"},{"line_number":134,"context_line":"addition of objects for new rule types. To accomodate this, fields common to"},{"line_number":135,"context_line":"all types are put into a base class called QosRule that is then inherited into"},{"line_number":136,"context_line":"type-specific rule implementations that, ideally, only define additional fields"},{"line_number":137,"context_line":"and some other minor things."},{"line_number":138,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"3a50d1a3_3974f834","line":135,"updated":"2015-07-30 05:35:22.000000000","message":"Is QosRule still there? I could find it\u0027s being deleted in #L68.","commit_id":"d7e65e0d4f7a1c0e6cc7960ad56d73d9a32b5727"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"319b58f0ed3ec5b5dc5b89be03f7c930f5944d20","unresolved":false,"context_lines":[{"line_number":132,"context_line":""},{"line_number":133,"context_line":"For Qos\u003ctype\u003eRule objects, an extendable approach was taken to allow easy"},{"line_number":134,"context_line":"addition of objects for new rule types. To accomodate this, fields common to"},{"line_number":135,"context_line":"all types are put into a base class called QosRule that is then inherited into"},{"line_number":136,"context_line":"type-specific rule implementations that, ideally, only define additional fields"},{"line_number":137,"context_line":"and some other minor things."},{"line_number":138,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"3a50d1a3_8eecddf4","line":135,"in_reply_to":"3a50d1a3_3974f834","updated":"2015-07-30 08:23:24.000000000","message":"We killed the db model, but QosRule base versioned object class is there. This section talks about the latter.","commit_id":"d7e65e0d4f7a1c0e6cc7960ad56d73d9a32b5727"}],"neutron/db/api.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"14eba7fdb4f0ca7c462866bbdd721f16ab2cf332","unresolved":false,"context_lines":[{"line_number":35,"context_line":"                                            retry_on_deadlock\u003dTrue)"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"class ObjectNotFound(n_exc.NotFound):"},{"line_number":39,"context_line":"    message \u003d _(\"Object %(id)s not found.\")"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"3a50d1a3_f086d6b7","line":38,"updated":"2015-07-29 09:04:44.000000000","message":"why is this not with other exceptions?","commit_id":"f3d2264af7ad0ccdef0cbe84e679a95ab91a5796"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"3c7f75fe7903382ca7a93560140c4b5e7b304999","unresolved":false,"context_lines":[{"line_number":35,"context_line":"                                            retry_on_deadlock\u003dTrue)"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"class ObjectNotFound(n_exc.NotFound):"},{"line_number":39,"context_line":"    message \u003d _(\"Object %(id)s not found.\")"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"3a50d1a3_92d3c503","line":38,"in_reply_to":"3a50d1a3_0ba31701","updated":"2015-07-29 15:06:29.000000000","message":"I will move it into n_exc...","commit_id":"f3d2264af7ad0ccdef0cbe84e679a95ab91a5796"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"409d31377843f6f9c468d326f778be271d58b297","unresolved":false,"context_lines":[{"line_number":35,"context_line":"                                            retry_on_deadlock\u003dTrue)"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"class ObjectNotFound(n_exc.NotFound):"},{"line_number":39,"context_line":"    message \u003d _(\"Object %(id)s not found.\")"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"3a50d1a3_0ba31701","line":38,"in_reply_to":"3a50d1a3_f086d6b7","updated":"2015-07-29 09:11:05.000000000","message":"db layer doesn\u0027t have any module containing exceptions, does it?","commit_id":"f3d2264af7ad0ccdef0cbe84e679a95ab91a5796"}],"neutron/db/migration/alembic_migrations/versions/liberty/expand/48153cb5f051_qos_db_changes.py":[{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"6d1f9508e6b65f001b4097dd9ca1e94a635014af","unresolved":false,"context_lines":[{"line_number":60,"context_line":"                  nullable\u003dFalse, unique\u003dTrue))"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    op.create_table("},{"line_number":63,"context_line":"        \u0027qos_rules\u0027,"},{"line_number":64,"context_line":"        sa.Column(\u0027id\u0027, sa.String(length\u003d36), primary_key\u003dTrue),"},{"line_number":65,"context_line":"        sa.Column(\u0027qos_policy_id\u0027, sa.String(length\u003d36),"},{"line_number":66,"context_line":"                  sa.ForeignKey(\u0027qos_policies.id\u0027, ondelete\u003d\u0027CASCADE\u0027),"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_30083bd9","side":"PARENT","line":63,"updated":"2015-07-27 04:39:06.000000000","message":"Doesn\u0027t there need to be a new migration contract script to delete this table?","commit_id":"fd0bf111838b90dcf76d670987770835904810fb"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"4b04d8f252b3f849d543ba265cc96eba332e42ad","unresolved":false,"context_lines":[{"line_number":60,"context_line":"                  nullable\u003dFalse, unique\u003dTrue))"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    op.create_table("},{"line_number":63,"context_line":"        \u0027qos_rules\u0027,"},{"line_number":64,"context_line":"        sa.Column(\u0027id\u0027, sa.String(length\u003d36), primary_key\u003dTrue),"},{"line_number":65,"context_line":"        sa.Column(\u0027qos_policy_id\u0027, sa.String(length\u003d36),"},{"line_number":66,"context_line":"                  sa.ForeignKey(\u0027qos_policies.id\u0027, ondelete\u003d\u0027CASCADE\u0027),"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_7c021c40","side":"PARENT","line":63,"in_reply_to":"3a50d1a3_30083bd9","updated":"2015-07-27 07:51:39.000000000","message":"I don\u0027t believe we have any trunk chasers in a feature branch.","commit_id":"fd0bf111838b90dcf76d670987770835904810fb"},{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"86e682d75f9b2018825b3b7f3d769790e754ca17","unresolved":false,"context_lines":[{"line_number":60,"context_line":"                  nullable\u003dFalse, unique\u003dTrue))"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    op.create_table("},{"line_number":63,"context_line":"        \u0027qos_rules\u0027,"},{"line_number":64,"context_line":"        sa.Column(\u0027id\u0027, sa.String(length\u003d36), primary_key\u003dTrue),"},{"line_number":65,"context_line":"        sa.Column(\u0027qos_policy_id\u0027, sa.String(length\u003d36),"},{"line_number":66,"context_line":"                  sa.ForeignKey(\u0027qos_policies.id\u0027, ondelete\u003d\u0027CASCADE\u0027),"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_7eb65ffa","side":"PARENT","line":63,"in_reply_to":"3a50d1a3_7c021c40","updated":"2015-07-28 03:49:04.000000000","message":"I mis-read and thought this was being done on the master branch","commit_id":"fd0bf111838b90dcf76d670987770835904810fb"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"ee8161f98547b36462cc7bdca6215e92dbdc3b1a","unresolved":false,"context_lines":[{"line_number":60,"context_line":"                  nullable\u003dFalse, unique\u003dTrue))"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    op.create_table("},{"line_number":63,"context_line":"        \u0027qos_rules\u0027,"},{"line_number":64,"context_line":"        sa.Column(\u0027id\u0027, sa.String(length\u003d36), primary_key\u003dTrue),"},{"line_number":65,"context_line":"        sa.Column(\u0027qos_policy_id\u0027, sa.String(length\u003d36),"},{"line_number":66,"context_line":"                  sa.ForeignKey(\u0027qos_policies.id\u0027, ondelete\u003d\u0027CASCADE\u0027),"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_e24bdb57","side":"PARENT","line":63,"in_reply_to":"3a50d1a3_7c021c40","updated":"2015-07-28 14:33:23.000000000","message":"John, it\u0027s feature branch, we don\u0027t maintain migrations here except the initial one that adds tables.","commit_id":"fd0bf111838b90dcf76d670987770835904810fb"}],"neutron/db/qos/models.py":[{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"96365d2843d561624e1e527639d6409222d9ea0b","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                               cascade\u003d\u0027delete\u0027, lazy\u003d\u0027joined\u0027))"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"class QosRuleColumns(models_v2.HasId):"},{"line_number":73,"context_line":"    qos_policy_id \u003d sa.Column(sa.String(36), nullable\u003dFalse)"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"    __table_args__ \u003d ("}],"source_content_type":"text/x-python","patch_set":4,"id":"3a50d1a3_31754497","line":72,"updated":"2015-07-28 17:42:39.000000000","message":"Nit: Mixin word missin\u0027?","commit_id":"90898f9d2d01dc9f045634b2de4a03e5fc7b0b5c"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"ee794d107139b38796dfb0a88a78ae86362330eb","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                               cascade\u003d\u0027delete\u0027, lazy\u003d\u0027joined\u0027))"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"class QosRuleColumns(models_v2.HasId):"},{"line_number":73,"context_line":"    qos_policy_id \u003d sa.Column(sa.String(36), nullable\u003dFalse)"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"    __table_args__ \u003d ("}],"source_content_type":"text/x-python","patch_set":4,"id":"3a50d1a3_c95c784d","line":72,"in_reply_to":"3a50d1a3_31754497","updated":"2015-07-28 18:18:24.000000000","message":"I reflect what is the name for RBAC (the place were I stole the idea).","commit_id":"90898f9d2d01dc9f045634b2de4a03e5fc7b0b5c"}],"neutron/tests/unit/objects/qos/test_policy.py":[{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"79ca9f196a7490b7bbf425af15c7ba6d21e904ec","unresolved":false,"context_lines":[{"line_number":42,"context_line":"            self._test_class.db_model: self.db_objs,"},{"line_number":43,"context_line":"            rule.QosBandwidthLimitRule.db_model: self.db_qos_bandwidth_rules}"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    def fake_get_objects(self, context, model, qos_policy_id\u003dNone):"},{"line_number":46,"context_line":"        return self.model_map[model]"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    def fake_get_object(self, context, model, id):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_7f38c43d","line":45,"updated":"2015-07-27 11:31:17.000000000","message":"I think it should be:\n\n db_objs \u003d self.model_map[model]\n if qos_policy_id:\n     return [obj for obj in db_objs if obj[\u0027qos_policy_id\u0027] \u003d\u003d qos_policy_id]\n return db_objs","commit_id":"2304c7ac61df7f8c69f6bdcdff7788a2f44fa854"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"ee8161f98547b36462cc7bdca6215e92dbdc3b1a","unresolved":false,"context_lines":[{"line_number":42,"context_line":"            self._test_class.db_model: self.db_objs,"},{"line_number":43,"context_line":"            rule.QosBandwidthLimitRule.db_model: self.db_qos_bandwidth_rules}"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    def fake_get_objects(self, context, model, qos_policy_id\u003dNone):"},{"line_number":46,"context_line":"        return self.model_map[model]"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    def fake_get_object(self, context, model, id):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_ad0a661e","line":45,"in_reply_to":"3a50d1a3_7f38c43d","updated":"2015-07-28 14:33:23.000000000","message":"So it does not care because we don\u0027t validate synthetic fields in _validate_objects.","commit_id":"2304c7ac61df7f8c69f6bdcdff7788a2f44fa854"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"96365d2843d561624e1e527639d6409222d9ea0b","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def setUp(self):"},{"line_number":29,"context_line":"        super(QosPolicyObjectTestCase, self).setUp()"},{"line_number":30,"context_line":"        # qos_policy_ids will be incorrect, but we don\u0027t care in this patch"},{"line_number":31,"context_line":"        self.db_qos_bandwidth_rules \u003d ["},{"line_number":32,"context_line":"            self.get_random_fields(rule.QosBandwidthLimitRule)"},{"line_number":33,"context_line":"            for _ in range(3)]"}],"source_content_type":"text/x-python","patch_set":4,"id":"3a50d1a3_561ec670","line":30,"updated":"2015-07-28 17:42:39.000000000","message":":)","commit_id":"90898f9d2d01dc9f045634b2de4a03e5fc7b0b5c"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"9b2675c298c167bad103feec3ff3478661af850a","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def setUp(self):"},{"line_number":29,"context_line":"        super(QosPolicyObjectTestCase, self).setUp()"},{"line_number":30,"context_line":"        # qos_policy_ids will be incorrect, but we don\u0027t care in this patch"},{"line_number":31,"context_line":"        self.db_qos_bandwidth_rules \u003d ["},{"line_number":32,"context_line":"            self.get_random_fields(rule.QosBandwidthLimitRule)"},{"line_number":33,"context_line":"            for _ in range(3)]"}],"source_content_type":"text/x-python","patch_set":4,"id":"3a50d1a3_77c17c2e","line":30,"in_reply_to":"3a50d1a3_561ec670","updated":"2015-07-28 17:47:30.000000000","message":"Ouch. It should have said... in this test.","commit_id":"90898f9d2d01dc9f045634b2de4a03e5fc7b0b5c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"96365d2843d561624e1e527639d6409222d9ea0b","unresolved":false,"context_lines":[{"line_number":36,"context_line":"            self._test_class.db_model: self.db_objs,"},{"line_number":37,"context_line":"            rule.QosBandwidthLimitRule.db_model: self.db_qos_bandwidth_rules}"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    def fake_get_objects(self, context, model, **kwargs):"},{"line_number":40,"context_line":"        return self.model_map[model]"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    def fake_get_object(self, context, model, id):"}],"source_content_type":"text/x-python","patch_set":4,"id":"3a50d1a3_3100e400","line":39,"updated":"2015-07-28 17:42:39.000000000","message":"I\u0027m thinking whether it\u0027s better to not provide any additional parameters. Just to make sure we know what\u0027s passed here and thus we can return proper things.","commit_id":"90898f9d2d01dc9f045634b2de4a03e5fc7b0b5c"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"9b2675c298c167bad103feec3ff3478661af850a","unresolved":false,"context_lines":[{"line_number":36,"context_line":"            self._test_class.db_model: self.db_objs,"},{"line_number":37,"context_line":"            rule.QosBandwidthLimitRule.db_model: self.db_qos_bandwidth_rules}"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    def fake_get_objects(self, context, model, **kwargs):"},{"line_number":40,"context_line":"        return self.model_map[model]"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    def fake_get_object(self, context, model, id):"}],"source_content_type":"text/x-python","patch_set":4,"id":"3a50d1a3_37de9411","line":39,"in_reply_to":"3a50d1a3_3100e400","updated":"2015-07-28 17:47:30.000000000","message":"Not sure I follow. **kwargs are needed to catch get_objects call with additional args (as is used when fetching rules).","commit_id":"90898f9d2d01dc9f045634b2de4a03e5fc7b0b5c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"c9e187ffcf70bf71004d99ada17460f5797c59a0","unresolved":false,"context_lines":[{"line_number":36,"context_line":"            self._test_class.db_model: self.db_objs,"},{"line_number":37,"context_line":"            rule.QosBandwidthLimitRule.db_model: self.db_qos_bandwidth_rules}"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    def fake_get_objects(self, context, model, **kwargs):"},{"line_number":40,"context_line":"        return self.model_map[model]"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    def fake_get_object(self, context, model, id):"}],"source_content_type":"text/x-python","patch_set":4,"id":"3a50d1a3_7f7e19e5","line":39,"in_reply_to":"3a50d1a3_37de9411","updated":"2015-07-29 07:31:30.000000000","message":"I mean this fake method should reflect the behavior of get_objects() with respect to filtering. With specific parameters we\u0027ll have better overview of the usage of this fake method. e.g. if actual code calls get_objects(context, model, id\u003d\u0027123\u0027) we will return the whole collection in our tests. My opinion is that we should add implicit parameters that are used in our production code and implement body of fake_get_objects accordingly.\n\nDoes it make sense now?","commit_id":"90898f9d2d01dc9f045634b2de4a03e5fc7b0b5c"}]}
