)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"37581443bd7c1e021960c8c601dc6a2bdc71407e","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fixes for qos policy and bandwidth-limit-rule filter by name"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"1. qos-policy-show - which currently cannot filter by name:"},{"line_number":10,"context_line":"Multiple policy matches found for name \u0027\u003cname\u003e\u0027, use an ID to be more specific."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"2. qos-bandwidth-limit-rule-list,  which currently cannot filter by name:"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3a50d1a3_9568f689","line":9,"updated":"2015-08-02 13:32:04.000000000","message":"Please make commit message more intelligible. ATM it\u0027s not clear which issue you try to fix. F.e. what is that \u0027Multiple policy matches...\u0027 refer to?","commit_id":"946900ad4a00c7ccfffc5f6126830ed46f798d46"},{"author":{"_account_id":6579,"name":"Nir Magnezi","email":"nmagnezi@redhat.com","username":"nmagnezi"},"change_message_id":"bf2c497608c1463bbcc1b5af80820911721ffda1","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fixes for qos policy and bandwidth-limit-rule filter by name"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"1. qos-policy-show - which currently cannot filter by name:"},{"line_number":10,"context_line":"Multiple policy matches found for name \u0027\u003cname\u003e\u0027, use an ID to be more specific."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"2. qos-bandwidth-limit-rule-list,  which currently cannot filter by name:"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"1a4dcd0f_03e1d62c","line":9,"in_reply_to":"3a50d1a3_9568f689","updated":"2015-08-06 15:05:24.000000000","message":"Done","commit_id":"946900ad4a00c7ccfffc5f6126830ed46f798d46"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"37581443bd7c1e021960c8c601dc6a2bdc71407e","unresolved":false,"context_lines":[{"line_number":11,"context_line":""},{"line_number":12,"context_line":"2. qos-bandwidth-limit-rule-list,  which currently cannot filter by name:"},{"line_number":13,"context_line":"Multiple policy matches found for name \u0027\u003cname\u003e\u0027, use an ID to be more specific."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: I9df9981129b8f3b82e867c8423986f5e0150186b"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3a50d1a3_150b86d6","line":14,"updated":"2015-08-02 13:32:04.000000000","message":"I don\u0027t see any tests here. Both unit tests for the qos plugin and API tests for the name arguments are needed.","commit_id":"946900ad4a00c7ccfffc5f6126830ed46f798d46"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"d609617f734c949a880f92487f5ca067d8476de0","unresolved":false,"context_lines":[{"line_number":11,"context_line":""},{"line_number":12,"context_line":"2. qos-bandwidth-limit-rule-list,  which currently cannot filter by name:"},{"line_number":13,"context_line":"Multiple policy matches found for name \u0027\u003cname\u003e\u0027, use an ID to be more specific."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: I9df9981129b8f3b82e867c8423986f5e0150186b"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3a50d1a3_b8e39e33","line":14,"in_reply_to":"3a50d1a3_150b86d6","updated":"2015-08-03 06:09:38.000000000","message":"+1.","commit_id":"946900ad4a00c7ccfffc5f6126830ed46f798d46"},{"author":{"_account_id":6579,"name":"Nir Magnezi","email":"nmagnezi@redhat.com","username":"nmagnezi"},"change_message_id":"bf2c497608c1463bbcc1b5af80820911721ffda1","unresolved":false,"context_lines":[{"line_number":11,"context_line":""},{"line_number":12,"context_line":"2. qos-bandwidth-limit-rule-list,  which currently cannot filter by name:"},{"line_number":13,"context_line":"Multiple policy matches found for name \u0027\u003cname\u003e\u0027, use an ID to be more specific."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: I9df9981129b8f3b82e867c8423986f5e0150186b"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"1a4dcd0f_b46cdb35","line":14,"in_reply_to":"3a50d1a3_150b86d6","updated":"2015-08-06 15:05:24.000000000","message":"Done","commit_id":"946900ad4a00c7ccfffc5f6126830ed46f798d46"},{"author":{"_account_id":16788,"name":"Ramanjaneya Reddy Palleti","email":"ramanjaneya.palleti@huawei.com","username":"Ramanjaneya"},"change_message_id":"32514a2b16b43c986cf8082012d4f4f12021e40c","unresolved":false,"context_lines":[{"line_number":12,"context_line":"2. qos-bandwidth-limit-rule-list,  which currently cannot filter by name:"},{"line_number":13,"context_line":"Multiple policy matches found for name \u0027\u003cname\u003e\u0027, use an ID to be more specific."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: I9df9981129b8f3b82e867c8423986f5e0150186b"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3a50d1a3_98090298","line":15,"updated":"2015-08-03 06:25:30.000000000","message":"+1","commit_id":"946900ad4a00c7ccfffc5f6126830ed46f798d46"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"37581443bd7c1e021960c8c601dc6a2bdc71407e","unresolved":false,"context_lines":[{"line_number":12,"context_line":"2. qos-bandwidth-limit-rule-list,  which currently cannot filter by name:"},{"line_number":13,"context_line":"Multiple policy matches found for name \u0027\u003cname\u003e\u0027, use an ID to be more specific."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: I9df9981129b8f3b82e867c8423986f5e0150186b"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3a50d1a3_b565f2af","line":15,"updated":"2015-08-02 13:32:04.000000000","message":"Partially-Implements: blueprint quantum-qos-api","commit_id":"946900ad4a00c7ccfffc5f6126830ed46f798d46"},{"author":{"_account_id":6579,"name":"Nir Magnezi","email":"nmagnezi@redhat.com","username":"nmagnezi"},"change_message_id":"bf2c497608c1463bbcc1b5af80820911721ffda1","unresolved":false,"context_lines":[{"line_number":12,"context_line":"2. qos-bandwidth-limit-rule-list,  which currently cannot filter by name:"},{"line_number":13,"context_line":"Multiple policy matches found for name \u0027\u003cname\u003e\u0027, use an ID to be more specific."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: I9df9981129b8f3b82e867c8423986f5e0150186b"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"1a4dcd0f_153cf12d","line":15,"in_reply_to":"3a50d1a3_b565f2af","updated":"2015-08-06 15:05:24.000000000","message":"Done","commit_id":"946900ad4a00c7ccfffc5f6126830ed46f798d46"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"ebf5cab1d3b0be5254bd445864720fefd5e6a094","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Nir Magnezi \u003cnmagnezi@redhat.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-08-05 14:29:02 +0300"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"(WIP) Fixes for qos policy and bandwidth-limit-rule filter by name"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"/needs tests/"},{"line_number":10,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"1a4dcd0f_0874d8cc","line":7,"updated":"2015-08-05 12:10:28.000000000","message":"Commit title should be less than 50 chars.","commit_id":"7da28c75b604d30200c17da614da10b4a5f71012"},{"author":{"_account_id":6579,"name":"Nir Magnezi","email":"nmagnezi@redhat.com","username":"nmagnezi"},"change_message_id":"d694ceece88aa120d609459dc25c8b62183eb801","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Nir Magnezi \u003cnmagnezi@redhat.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-08-05 14:29:02 +0300"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"(WIP) Fixes for qos policy and bandwidth-limit-rule filter by name"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"/needs tests/"},{"line_number":10,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"1a4dcd0f_4357dec9","line":7,"in_reply_to":"1a4dcd0f_0874d8cc","updated":"2015-08-06 15:05:32.000000000","message":"Done","commit_id":"7da28c75b604d30200c17da614da10b4a5f71012"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"b41902db3512ac8bc662cac44184a65fd71eec46","unresolved":false,"context_lines":[{"line_number":15,"context_line":"Multiple policy matches found for name \u0027\u003cname\u003e\u0027, use an ID to be more specific."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: I9df9981129b8f3b82e867c8423986f5e0150186b"},{"line_number":18,"context_line":"partially-Implements: blueprint quantum-qos-api"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"1a4dcd0f_ee25ef08","line":18,"updated":"2015-08-05 13:55:13.000000000","message":"Partially-Implements, from upper-case.","commit_id":"7da28c75b604d30200c17da614da10b4a5f71012"},{"author":{"_account_id":6579,"name":"Nir Magnezi","email":"nmagnezi@redhat.com","username":"nmagnezi"},"change_message_id":"d694ceece88aa120d609459dc25c8b62183eb801","unresolved":false,"context_lines":[{"line_number":15,"context_line":"Multiple policy matches found for name \u0027\u003cname\u003e\u0027, use an ID to be more specific."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: I9df9981129b8f3b82e867c8423986f5e0150186b"},{"line_number":18,"context_line":"partially-Implements: blueprint quantum-qos-api"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"1a4dcd0f_23717276","line":18,"in_reply_to":"1a4dcd0f_ee25ef08","updated":"2015-08-06 15:05:32.000000000","message":"Done","commit_id":"7da28c75b604d30200c17da614da10b4a5f71012"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"271aac62f9f725a3cb9677df6d4e68fb677b39e1","unresolved":false,"context_lines":[{"line_number":15,"context_line":"Multiple policy matches found for name \u0027\u003cname\u003e\u0027, use an ID to be more specific."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: I9df9981129b8f3b82e867c8423986f5e0150186b"},{"line_number":18,"context_line":"partially-Implements: blueprint quantum-qos-api"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"1a4dcd0f_8d7b088c","line":18,"updated":"2015-08-05 16:06:07.000000000","message":"?","commit_id":"a70c70d69b5ff986b1aaa547f441d039c97d412a"},{"author":{"_account_id":6579,"name":"Nir Magnezi","email":"nmagnezi@redhat.com","username":"nmagnezi"},"change_message_id":"3014b397c3209f69b9dd7f57a2c3300a4cf5bfc9","unresolved":false,"context_lines":[{"line_number":15,"context_line":"Multiple policy matches found for name \u0027\u003cname\u003e\u0027, use an ID to be more specific."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: I9df9981129b8f3b82e867c8423986f5e0150186b"},{"line_number":18,"context_line":"partially-Implements: blueprint quantum-qos-api"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"1a4dcd0f_d4096785","line":18,"in_reply_to":"1a4dcd0f_8d7b088c","updated":"2015-08-06 15:05:42.000000000","message":"Done","commit_id":"a70c70d69b5ff986b1aaa547f441d039c97d412a"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"bccaf44f30e8089ca085477125fec6535ce5065c","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix get_objects to allow filtering"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"At the moment, an attempt to retrive a list of objects (like qos"},{"line_number":10,"context_line":"policy) and filter by name fails, because get_objects does not use"},{"line_number":11,"context_line":"filters and therefore, upon query by object name, the server replies"},{"line_number":12,"context_line":"with a list of all created objects (instead of a partial list)."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":11,"id":"1a4dcd0f_3b87f813","line":9,"updated":"2015-08-09 10:11:37.000000000","message":"retrieve","commit_id":"ff4c5358a143f0cb4a80a37619509529e5ca9352"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"cd7e19d2f2fcb73bc8cc0cdf49643b338f3f9cbf","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix get_objects to allow filtering"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"At the moment, an attempt to retrive a list of objects (like qos"},{"line_number":10,"context_line":"policy) and filter by name fails, because get_objects does not use"},{"line_number":11,"context_line":"filters and therefore, upon query by object name, the server replies"},{"line_number":12,"context_line":"with a list of all created objects (instead of a partial list)."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":11,"id":"1a4dcd0f_fb9d100b","line":9,"in_reply_to":"1a4dcd0f_3b87f813","updated":"2015-08-09 10:37:54.000000000","message":"Done","commit_id":"ff4c5358a143f0cb4a80a37619509529e5ca9352"}],"neutron/objects/base.py":[{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"ebf5cab1d3b0be5254bd445864720fefd5e6a094","unresolved":false,"context_lines":[{"line_number":100,"context_line":"        bad_filters \u003d [key for key in kwargs if key not in cls.fields]"},{"line_number":101,"context_line":"        if bad_filters:"},{"line_number":102,"context_line":"            bad_filters \u003d \u0027, \u0027.join(bad_filters)"},{"line_number":103,"context_line":"            cls_name \u003d cls.__name__"},{"line_number":104,"context_line":"            raise exceptions.ObjectActionError("},{"line_number":105,"context_line":"                action\u003d\u0027validate_filters\u0027,"},{"line_number":106,"context_line":"                reason\u003d\u0027%s cannot be used as filter for %s\u0027 % (bad_filters,"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_0b513262","line":103,"updated":"2015-08-05 12:10:28.000000000","message":"cls_name isn\u0027t really needed here.","commit_id":"7da28c75b604d30200c17da614da10b4a5f71012"},{"author":{"_account_id":6579,"name":"Nir Magnezi","email":"nmagnezi@redhat.com","username":"nmagnezi"},"change_message_id":"d694ceece88aa120d609459dc25c8b62183eb801","unresolved":false,"context_lines":[{"line_number":100,"context_line":"        bad_filters \u003d [key for key in kwargs if key not in cls.fields]"},{"line_number":101,"context_line":"        if bad_filters:"},{"line_number":102,"context_line":"            bad_filters \u003d \u0027, \u0027.join(bad_filters)"},{"line_number":103,"context_line":"            cls_name \u003d cls.__name__"},{"line_number":104,"context_line":"            raise exceptions.ObjectActionError("},{"line_number":105,"context_line":"                action\u003d\u0027validate_filters\u0027,"},{"line_number":106,"context_line":"                reason\u003d\u0027%s cannot be used as filter for %s\u0027 % (bad_filters,"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_f18e072d","line":103,"in_reply_to":"1a4dcd0f_0b513262","updated":"2015-08-06 15:05:32.000000000","message":"Done","commit_id":"7da28c75b604d30200c17da614da10b4a5f71012"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"ebf5cab1d3b0be5254bd445864720fefd5e6a094","unresolved":false,"context_lines":[{"line_number":102,"context_line":"            bad_filters \u003d \u0027, \u0027.join(bad_filters)"},{"line_number":103,"context_line":"            cls_name \u003d cls.__name__"},{"line_number":104,"context_line":"            raise exceptions.ObjectActionError("},{"line_number":105,"context_line":"                action\u003d\u0027validate_filters\u0027,"},{"line_number":106,"context_line":"                reason\u003d\u0027%s cannot be used as filter for %s\u0027 % (bad_filters,"},{"line_number":107,"context_line":"                                                               cls_name))"},{"line_number":108,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_0b6a921a","line":105,"updated":"2015-08-05 12:10:28.000000000","message":"(No action needed) seems like \u0027action\u0027 should be something like \u0027list\u0027 instead...","commit_id":"7da28c75b604d30200c17da614da10b4a5f71012"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"b41902db3512ac8bc662cac44184a65fd71eec46","unresolved":false,"context_lines":[{"line_number":102,"context_line":"            bad_filters \u003d \u0027, \u0027.join(bad_filters)"},{"line_number":103,"context_line":"            cls_name \u003d cls.__name__"},{"line_number":104,"context_line":"            raise exceptions.ObjectActionError("},{"line_number":105,"context_line":"                action\u003d\u0027validate_filters\u0027,"},{"line_number":106,"context_line":"                reason\u003d\u0027%s cannot be used as filter for %s\u0027 % (bad_filters,"},{"line_number":107,"context_line":"                                                               cls_name))"},{"line_number":108,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_ce04b34b","line":105,"in_reply_to":"1a4dcd0f_0b6a921a","updated":"2015-08-05 13:55:13.000000000","message":"Nah, it\u0027s actually a method. We use it for low level things. I believe here, we need to have some exception that is more user friendly and that inherits from InvalidInput","commit_id":"7da28c75b604d30200c17da614da10b4a5f71012"},{"author":{"_account_id":6579,"name":"Nir Magnezi","email":"nmagnezi@redhat.com","username":"nmagnezi"},"change_message_id":"d694ceece88aa120d609459dc25c8b62183eb801","unresolved":false,"context_lines":[{"line_number":102,"context_line":"            bad_filters \u003d \u0027, \u0027.join(bad_filters)"},{"line_number":103,"context_line":"            cls_name \u003d cls.__name__"},{"line_number":104,"context_line":"            raise exceptions.ObjectActionError("},{"line_number":105,"context_line":"                action\u003d\u0027validate_filters\u0027,"},{"line_number":106,"context_line":"                reason\u003d\u0027%s cannot be used as filter for %s\u0027 % (bad_filters,"},{"line_number":107,"context_line":"                                                               cls_name))"},{"line_number":108,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_51a57b9f","line":105,"in_reply_to":"1a4dcd0f_0b6a921a","updated":"2015-08-06 15:05:32.000000000","message":"removed, now using InvalidInput exception.","commit_id":"7da28c75b604d30200c17da614da10b4a5f71012"},{"author":{"_account_id":6579,"name":"Nir Magnezi","email":"nmagnezi@redhat.com","username":"nmagnezi"},"change_message_id":"d694ceece88aa120d609459dc25c8b62183eb801","unresolved":false,"context_lines":[{"line_number":102,"context_line":"            bad_filters \u003d \u0027, \u0027.join(bad_filters)"},{"line_number":103,"context_line":"            cls_name \u003d cls.__name__"},{"line_number":104,"context_line":"            raise exceptions.ObjectActionError("},{"line_number":105,"context_line":"                action\u003d\u0027validate_filters\u0027,"},{"line_number":106,"context_line":"                reason\u003d\u0027%s cannot be used as filter for %s\u0027 % (bad_filters,"},{"line_number":107,"context_line":"                                                               cls_name))"},{"line_number":108,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_f1bcc7bc","line":105,"in_reply_to":"1a4dcd0f_ce04b34b","updated":"2015-08-06 15:05:32.000000000","message":"Done","commit_id":"7da28c75b604d30200c17da614da10b4a5f71012"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"ebf5cab1d3b0be5254bd445864720fefd5e6a094","unresolved":false,"context_lines":[{"line_number":104,"context_line":"            raise exceptions.ObjectActionError("},{"line_number":105,"context_line":"                action\u003d\u0027validate_filters\u0027,"},{"line_number":106,"context_line":"                reason\u003d\u0027%s cannot be used as filter for %s\u0027 % (bad_filters,"},{"line_number":107,"context_line":"                                                               cls_name))"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"    def _get_changed_persistent_fields(self):"},{"line_number":110,"context_line":"        fields \u003d self.obj_get_changes()"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_0b65b2df","line":107,"updated":"2015-08-05 12:10:28.000000000","message":"\u0027cls_name\u0027 will take the form of QoSBandwidthLimitRule or QoSPolicy, which might scare some of the less technical users. On the other hand, it\u0027s likely that if the user is doing an action (like \"list all policies with name\u003d\u0027my policy\u0027\") and it\u0027s wrong - he\u0027ll be told of this immediately and he will have to correct himself (immediately). For this reason I don\u0027t think \u0027cls_name\u0027 belongs to this exception.","commit_id":"7da28c75b604d30200c17da614da10b4a5f71012"},{"author":{"_account_id":6579,"name":"Nir Magnezi","email":"nmagnezi@redhat.com","username":"nmagnezi"},"change_message_id":"d694ceece88aa120d609459dc25c8b62183eb801","unresolved":false,"context_lines":[{"line_number":104,"context_line":"            raise exceptions.ObjectActionError("},{"line_number":105,"context_line":"                action\u003d\u0027validate_filters\u0027,"},{"line_number":106,"context_line":"                reason\u003d\u0027%s cannot be used as filter for %s\u0027 % (bad_filters,"},{"line_number":107,"context_line":"                                                               cls_name))"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"    def _get_changed_persistent_fields(self):"},{"line_number":110,"context_line":"        fields \u003d self.obj_get_changes()"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_51d33b04","line":107,"in_reply_to":"1a4dcd0f_0b65b2df","updated":"2015-08-06 15:05:32.000000000","message":"Done, cls_name removed.","commit_id":"7da28c75b604d30200c17da614da10b4a5f71012"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"b41902db3512ac8bc662cac44184a65fd71eec46","unresolved":false,"context_lines":[{"line_number":104,"context_line":"            raise exceptions.ObjectActionError("},{"line_number":105,"context_line":"                action\u003d\u0027validate_filters\u0027,"},{"line_number":106,"context_line":"                reason\u003d\u0027%s cannot be used as filter for %s\u0027 % (bad_filters,"},{"line_number":107,"context_line":"                                                               cls_name))"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"    def _get_changed_persistent_fields(self):"},{"line_number":110,"context_line":"        fields \u003d self.obj_get_changes()"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_ee888fc7","line":107,"in_reply_to":"1a4dcd0f_0b65b2df","updated":"2015-08-05 13:55:13.000000000","message":"Yes, just bad filters list is enough. As for the type of the object, callers already know which request they sent.","commit_id":"7da28c75b604d30200c17da614da10b4a5f71012"},{"author":{"_account_id":6579,"name":"Nir Magnezi","email":"nmagnezi@redhat.com","username":"nmagnezi"},"change_message_id":"d694ceece88aa120d609459dc25c8b62183eb801","unresolved":false,"context_lines":[{"line_number":104,"context_line":"            raise exceptions.ObjectActionError("},{"line_number":105,"context_line":"                action\u003d\u0027validate_filters\u0027,"},{"line_number":106,"context_line":"                reason\u003d\u0027%s cannot be used as filter for %s\u0027 % (bad_filters,"},{"line_number":107,"context_line":"                                                               cls_name))"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"    def _get_changed_persistent_fields(self):"},{"line_number":110,"context_line":"        fields \u003d self.obj_get_changes()"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_31d6aff1","line":107,"in_reply_to":"1a4dcd0f_ee888fc7","updated":"2015-08-06 15:05:32.000000000","message":"Done, cls_name removed.","commit_id":"7da28c75b604d30200c17da614da10b4a5f71012"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"abf7e02ae58122450aaf59b3c25d6f3798fbb895","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        raise NotImplementedError()"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    @classmethod"},{"line_number":51,"context_line":"    def validate_filters(cls, **kwargs):"},{"line_number":52,"context_line":"        bad_filters \u003d [key for key in kwargs if key not in cls.fields]"},{"line_number":53,"context_line":"        if bad_filters:"},{"line_number":54,"context_line":"            bad_filters \u003d \u0027, \u0027.join(bad_filters)"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_2cf71f8c","line":51,"updated":"2015-08-06 16:50:34.000000000","message":"I guess the method should belong to db class.","commit_id":"f41c458bb6f4fe33721373640eb85a3a76abea52"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"8eb1e7c6d2cca6c7c273301bf6a7070762a2d436","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        raise NotImplementedError()"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    @classmethod"},{"line_number":51,"context_line":"    def validate_filters(cls, **kwargs):"},{"line_number":52,"context_line":"        bad_filters \u003d [key for key in kwargs if key not in cls.fields]"},{"line_number":53,"context_line":"        if bad_filters:"},{"line_number":54,"context_line":"            bad_filters \u003d \u0027, \u0027.join(bad_filters)"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_e37feb12","line":51,"in_reply_to":"1a4dcd0f_18fcd96e","updated":"2015-08-07 06:18:42.000000000","message":"See https://review.openstack.org/#/c/208201/6..10/neutron/services/qos/qos_plugin.py - you asked for this ;-)\n\nIf it doesn\u0027t make sense we might as well move this back to the db objects and remove the filters from the rule_types, however looking at the long term this might not make sense. What if some other model will be added that will not persist on the DB but will have multiple fields?\n\nI think it does make sense to keep this here, even though it\u0027s not needed *right now*. What do you think?","commit_id":"f41c458bb6f4fe33721373640eb85a3a76abea52"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"a249fb179851387db51fbaae3436645bf18c1286","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        raise NotImplementedError()"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    @classmethod"},{"line_number":51,"context_line":"    def validate_filters(cls, **kwargs):"},{"line_number":52,"context_line":"        bad_filters \u003d [key for key in kwargs if key not in cls.fields]"},{"line_number":53,"context_line":"        if bad_filters:"},{"line_number":54,"context_line":"            bad_filters \u003d \u0027, \u0027.join(bad_filters)"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_7d006f66","line":51,"in_reply_to":"1a4dcd0f_2cf71f8c","updated":"2015-08-06 16:55:07.000000000","message":"If it\u0027s not here, rule_types can\u0027t use this function...","commit_id":"f41c458bb6f4fe33721373640eb85a3a76abea52"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"74ffd638bcc1cd108d3ef35b382dfc9026f8eb73","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        raise NotImplementedError()"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    @classmethod"},{"line_number":51,"context_line":"    def validate_filters(cls, **kwargs):"},{"line_number":52,"context_line":"        bad_filters \u003d [key for key in kwargs if key not in cls.fields]"},{"line_number":53,"context_line":"        if bad_filters:"},{"line_number":54,"context_line":"            bad_filters \u003d \u0027, \u0027.join(bad_filters)"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_18fcd96e","line":51,"in_reply_to":"1a4dcd0f_7d006f66","updated":"2015-08-06 17:12:25.000000000","message":"Well ok, but do rule_types filters even work? I don\u0027t see them actually applied apart from validation here.","commit_id":"f41c458bb6f4fe33721373640eb85a3a76abea52"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"4ce8e8648ee612d24aca1e9de10b992177470870","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        raise NotImplementedError()"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    @classmethod"},{"line_number":51,"context_line":"    def validate_filters(cls, **kwargs):"},{"line_number":52,"context_line":"        bad_filters \u003d [key for key in kwargs if key not in cls.fields]"},{"line_number":53,"context_line":"        if bad_filters:"},{"line_number":54,"context_line":"            bad_filters \u003d \u0027, \u0027.join(bad_filters)"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_fbb22b05","line":51,"in_reply_to":"1a4dcd0f_e37feb12","updated":"2015-08-07 08:33:13.000000000","message":"OK, I believe you just need to pass **filters into rule types too. I agree that you should leave it in here then.","commit_id":"f41c458bb6f4fe33721373640eb85a3a76abea52"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"013f115ddf7ac81aa3f1f663bcd8532946995e85","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        raise NotImplementedError()"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    @classmethod"},{"line_number":51,"context_line":"    def validate_filters(cls, **kwargs):"},{"line_number":52,"context_line":"        bad_filters \u003d [key for key in kwargs if key not in cls.fields]"},{"line_number":53,"context_line":"        if bad_filters:"},{"line_number":54,"context_line":"            bad_filters \u003d \u0027, \u0027.join(bad_filters)"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_9c8d1dd5","line":51,"in_reply_to":"1a4dcd0f_fbb22b05","updated":"2015-08-07 09:50:48.000000000","message":"Ihar++ :)","commit_id":"f41c458bb6f4fe33721373640eb85a3a76abea52"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"abf7e02ae58122450aaf59b3c25d6f3798fbb895","unresolved":false,"context_lines":[{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    @classmethod"},{"line_number":51,"context_line":"    def validate_filters(cls, **kwargs):"},{"line_number":52,"context_line":"        bad_filters \u003d [key for key in kwargs if key not in cls.fields]"},{"line_number":53,"context_line":"        if bad_filters:"},{"line_number":54,"context_line":"            bad_filters \u003d \u0027, \u0027.join(bad_filters)"},{"line_number":55,"context_line":"            msg \u003d _(\"\u0027%s\u0027 is not a valid value for filtering\") % bad_filters"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_ec4377ad","line":52,"updated":"2015-08-06 16:50:34.000000000","message":"I think you are interested in non-synthetic fields only (see line 78) since synthetic fields are not in db models.","commit_id":"f41c458bb6f4fe33721373640eb85a3a76abea52"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"7f9a02a0262f30d96e5ab517c5e09e6d5a7e86ca","unresolved":false,"context_lines":[{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    @classmethod"},{"line_number":51,"context_line":"    def validate_filters(cls, **kwargs):"},{"line_number":52,"context_line":"        bad_filters \u003d [key for key in kwargs if key not in cls.fields]"},{"line_number":53,"context_line":"        if bad_filters:"},{"line_number":54,"context_line":"            bad_filters \u003d \u0027, \u0027.join(bad_filters)"},{"line_number":55,"context_line":"            msg \u003d _(\"\u0027%s\u0027 is not a valid value for filtering\") % bad_filters"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_80481dce","line":52,"in_reply_to":"1a4dcd0f_ec4377ad","updated":"2015-08-09 08:59:09.000000000","message":"Done","commit_id":"f41c458bb6f4fe33721373640eb85a3a76abea52"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"abf7e02ae58122450aaf59b3c25d6f3798fbb895","unresolved":false,"context_lines":[{"line_number":52,"context_line":"        bad_filters \u003d [key for key in kwargs if key not in cls.fields]"},{"line_number":53,"context_line":"        if bad_filters:"},{"line_number":54,"context_line":"            bad_filters \u003d \u0027, \u0027.join(bad_filters)"},{"line_number":55,"context_line":"            msg \u003d _(\"\u0027%s\u0027 is not a valid value for filtering\") % bad_filters"},{"line_number":56,"context_line":"            raise exceptions.InvalidInput(error_message\u003dmsg)"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    @classmethod"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_6c5c477d","line":55,"updated":"2015-08-06 16:50:34.000000000","message":"%s is not a value actually. I suggest instead: \"%s is not supported for filtering.\"","commit_id":"f41c458bb6f4fe33721373640eb85a3a76abea52"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"7f9a02a0262f30d96e5ab517c5e09e6d5a7e86ca","unresolved":false,"context_lines":[{"line_number":52,"context_line":"        bad_filters \u003d [key for key in kwargs if key not in cls.fields]"},{"line_number":53,"context_line":"        if bad_filters:"},{"line_number":54,"context_line":"            bad_filters \u003d \u0027, \u0027.join(bad_filters)"},{"line_number":55,"context_line":"            msg \u003d _(\"\u0027%s\u0027 is not a valid value for filtering\") % bad_filters"},{"line_number":56,"context_line":"            raise exceptions.InvalidInput(error_message\u003dmsg)"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    @classmethod"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_601631a9","line":55,"in_reply_to":"1a4dcd0f_6c5c477d","updated":"2015-08-09 08:59:09.000000000","message":"Done","commit_id":"f41c458bb6f4fe33721373640eb85a3a76abea52"}],"neutron/objects/qos/policy.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"b41902db3512ac8bc662cac44184a65fd71eec46","unresolved":false,"context_lines":[{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    @classmethod"},{"line_number":89,"context_line":"    def get_objects(cls, context, **kwargs):"},{"line_number":90,"context_line":"        cls.validate_filters(**kwargs)"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"        # We want to get the policy regardless of its tenant id. We\u0027ll make"},{"line_number":93,"context_line":"        # sure the tenant has permission to access the policy later on."}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_8ea8eb21","line":90,"updated":"2015-08-05 13:55:13.000000000","message":"Why is it only policy? And why only get_objects? Isn\u0027t it the same for get_by_id?","commit_id":"7da28c75b604d30200c17da614da10b4a5f71012"},{"author":{"_account_id":6579,"name":"Nir Magnezi","email":"nmagnezi@redhat.com","username":"nmagnezi"},"change_message_id":"d694ceece88aa120d609459dc25c8b62183eb801","unresolved":false,"context_lines":[{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    @classmethod"},{"line_number":89,"context_line":"    def get_objects(cls, context, **kwargs):"},{"line_number":90,"context_line":"        cls.validate_filters(**kwargs)"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"        # We want to get the policy regardless of its tenant id. We\u0027ll make"},{"line_number":93,"context_line":"        # sure the tenant has permission to access the policy later on."}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_5b06ed1d","line":90,"in_reply_to":"1a4dcd0f_8ea8eb21","updated":"2015-08-06 15:05:32.000000000","message":"this can\u0027t be done for get_by_id. \u0027id\u0027 is passed as a value. hence it has no key to be tested against.","commit_id":"7da28c75b604d30200c17da614da10b4a5f71012"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"abf7e02ae58122450aaf59b3c25d6f3798fbb895","unresolved":false,"context_lines":[{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    @classmethod"},{"line_number":89,"context_line":"    def get_objects(cls, context, **kwargs):"},{"line_number":90,"context_line":"        cls.validate_filters(**kwargs)"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"        # We want to get the policy regardless of its tenant id. We\u0027ll make"},{"line_number":93,"context_line":"        # sure the tenant has permission to access the policy later on."}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_1d45ab44","line":90,"updated":"2015-08-06 16:50:34.000000000","message":"Can we instead call to super() to get objects and allow it to validate filters? then you are able to walk thru the objects and validate they are accessible, as we already do here.\n\nThat would make us avoid reimplementing validation in each new object that decides to change get_objects.","commit_id":"f41c458bb6f4fe33721373640eb85a3a76abea52"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"7f9a02a0262f30d96e5ab517c5e09e6d5a7e86ca","unresolved":false,"context_lines":[{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    @classmethod"},{"line_number":89,"context_line":"    def get_objects(cls, context, **kwargs):"},{"line_number":90,"context_line":"        cls.validate_filters(**kwargs)"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"        # We want to get the policy regardless of its tenant id. We\u0027ll make"},{"line_number":93,"context_line":"        # sure the tenant has permission to access the policy later on."}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_80a9fd26","line":90,"in_reply_to":"1a4dcd0f_1d45ab44","updated":"2015-08-09 08:59:09.000000000","message":"Done. I\u0027ve also reworked the function a bit to make it more robust.","commit_id":"f41c458bb6f4fe33721373640eb85a3a76abea52"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"bccaf44f30e8089ca085477125fec6535ce5065c","unresolved":false,"context_lines":[{"line_number":99,"context_line":""},{"line_number":100,"context_line":"            # Need to make sure that reload_rules is called for each object"},{"line_number":101,"context_line":"            # we\u0027ll return."},{"line_number":102,"context_line":"            map(QosPolicy.reload_rules, result)"},{"line_number":103,"context_line":"            return result"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"    @classmethod"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a4dcd0f_7baca08c","line":102,"updated":"2015-08-09 10:11:37.000000000","message":"I think it will work, though it seems a bit weird: you call an unbound method on an instance. I think an explicit loop would be more clear.","commit_id":"ff4c5358a143f0cb4a80a37619509529e5ca9352"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"cd7e19d2f2fcb73bc8cc0cdf49643b338f3f9cbf","unresolved":false,"context_lines":[{"line_number":99,"context_line":""},{"line_number":100,"context_line":"            # Need to make sure that reload_rules is called for each object"},{"line_number":101,"context_line":"            # we\u0027ll return."},{"line_number":102,"context_line":"            map(QosPolicy.reload_rules, result)"},{"line_number":103,"context_line":"            return result"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"    @classmethod"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a4dcd0f_7ba90024","line":102,"in_reply_to":"1a4dcd0f_7baca08c","updated":"2015-08-09 10:37:54.000000000","message":"Done","commit_id":"ff4c5358a143f0cb4a80a37619509529e5ca9352"}],"neutron/services/qos/qos_plugin.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"37581443bd7c1e021960c8c601dc6a2bdc71407e","unresolved":false,"context_lines":[{"line_number":76,"context_line":"                     sorts\u003dNone, limit\u003dNone, marker\u003dNone,"},{"line_number":77,"context_line":"                     page_reverse\u003dFalse):"},{"line_number":78,"context_line":"        return [policy_obj.to_dict() for policy_obj in"},{"line_number":79,"context_line":"                policy_object.QosPolicy.get_objects(context, **filters)]"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"    #TODO(QoS): Consider adding a proxy catch-all for rules, so"},{"line_number":82,"context_line":"    #           we capture the API function call, and just pass"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_d572fe7b","line":79,"updated":"2015-08-02 13:32:04.000000000","message":"I think we should first guard against wrong filters before we pass them below into objects.","commit_id":"946900ad4a00c7ccfffc5f6126830ed46f798d46"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"d609617f734c949a880f92487f5ca067d8476de0","unresolved":false,"context_lines":[{"line_number":76,"context_line":"                     sorts\u003dNone, limit\u003dNone, marker\u003dNone,"},{"line_number":77,"context_line":"                     page_reverse\u003dFalse):"},{"line_number":78,"context_line":"        return [policy_obj.to_dict() for policy_obj in"},{"line_number":79,"context_line":"                policy_object.QosPolicy.get_objects(context, **filters)]"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"    #TODO(QoS): Consider adding a proxy catch-all for rules, so"},{"line_number":82,"context_line":"    #           we capture the API function call, and just pass"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_18941289","line":79,"in_reply_to":"3a50d1a3_d572fe7b","updated":"2015-08-03 06:09:38.000000000","message":"+1.","commit_id":"946900ad4a00c7ccfffc5f6126830ed46f798d46"},{"author":{"_account_id":6579,"name":"Nir Magnezi","email":"nmagnezi@redhat.com","username":"nmagnezi"},"change_message_id":"bf2c497608c1463bbcc1b5af80820911721ffda1","unresolved":false,"context_lines":[{"line_number":76,"context_line":"                     sorts\u003dNone, limit\u003dNone, marker\u003dNone,"},{"line_number":77,"context_line":"                     page_reverse\u003dFalse):"},{"line_number":78,"context_line":"        return [policy_obj.to_dict() for policy_obj in"},{"line_number":79,"context_line":"                policy_object.QosPolicy.get_objects(context, **filters)]"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"    #TODO(QoS): Consider adding a proxy catch-all for rules, so"},{"line_number":82,"context_line":"    #           we capture the API function call, and just pass"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_717677d8","line":79,"in_reply_to":"3a50d1a3_d572fe7b","updated":"2015-08-06 15:05:24.000000000","message":"Done","commit_id":"946900ad4a00c7ccfffc5f6126830ed46f798d46"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"b41902db3512ac8bc662cac44184a65fd71eec46","unresolved":false,"context_lines":[{"line_number":141,"context_line":""},{"line_number":142,"context_line":"    @db_base_plugin_common.filter_fields"},{"line_number":143,"context_line":"    @db_base_plugin_common.convert_result_to_dict"},{"line_number":144,"context_line":"    def get_rule_types(self, context, filters\u003dNone, fields\u003dNone,"},{"line_number":145,"context_line":"                       sorts\u003dNone, limit\u003dNone,"},{"line_number":146,"context_line":"                       marker\u003dNone, page_reverse\u003dFalse):"},{"line_number":147,"context_line":"        return rule_type_object.QosRuleType.get_objects()"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_4e1ae37e","line":144,"updated":"2015-08-05 13:55:13.000000000","message":"what about that one?","commit_id":"7da28c75b604d30200c17da614da10b4a5f71012"},{"author":{"_account_id":6579,"name":"Nir Magnezi","email":"nmagnezi@redhat.com","username":"nmagnezi"},"change_message_id":"d694ceece88aa120d609459dc25c8b62183eb801","unresolved":false,"context_lines":[{"line_number":141,"context_line":""},{"line_number":142,"context_line":"    @db_base_plugin_common.filter_fields"},{"line_number":143,"context_line":"    @db_base_plugin_common.convert_result_to_dict"},{"line_number":144,"context_line":"    def get_rule_types(self, context, filters\u003dNone, fields\u003dNone,"},{"line_number":145,"context_line":"                       sorts\u003dNone, limit\u003dNone,"},{"line_number":146,"context_line":"                       marker\u003dNone, page_reverse\u003dFalse):"},{"line_number":147,"context_line":"        return rule_type_object.QosRuleType.get_objects()"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_d0241cc6","line":144,"in_reply_to":"1a4dcd0f_4e1ae37e","updated":"2015-08-06 15:05:32.000000000","message":"Done in neutron/objects/qos/rule_type.py:get_objects","commit_id":"7da28c75b604d30200c17da614da10b4a5f71012"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"74ffd638bcc1cd108d3ef35b382dfc9026f8eb73","unresolved":false,"context_lines":[{"line_number":140,"context_line":"                                                             **filters)"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"    @db_base_plugin_common.filter_fields"},{"line_number":143,"context_line":"    @db_base_plugin_common.convert_result_to_dict"},{"line_number":144,"context_line":"    def get_rule_types(self, context, filters\u003dNone, fields\u003dNone,"},{"line_number":145,"context_line":"                       sorts\u003dNone, limit\u003dNone,"},{"line_number":146,"context_line":"                       marker\u003dNone, page_reverse\u003dFalse):"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_38251508","line":143,"updated":"2015-08-06 17:12:25.000000000","message":"So where do we *apply* filters for types?","commit_id":"f41c458bb6f4fe33721373640eb85a3a76abea52"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"8eb1e7c6d2cca6c7c273301bf6a7070762a2d436","unresolved":false,"context_lines":[{"line_number":140,"context_line":"                                                             **filters)"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"    @db_base_plugin_common.filter_fields"},{"line_number":143,"context_line":"    @db_base_plugin_common.convert_result_to_dict"},{"line_number":144,"context_line":"    def get_rule_types(self, context, filters\u003dNone, fields\u003dNone,"},{"line_number":145,"context_line":"                       sorts\u003dNone, limit\u003dNone,"},{"line_number":146,"context_line":"                       marker\u003dNone, page_reverse\u003dFalse):"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_838e272c","line":143,"in_reply_to":"1a4dcd0f_38251508","updated":"2015-08-07 06:18:42.000000000","message":"This is a bug - **filters should be passed as the changes above.","commit_id":"f41c458bb6f4fe33721373640eb85a3a76abea52"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"7f9a02a0262f30d96e5ab517c5e09e6d5a7e86ca","unresolved":false,"context_lines":[{"line_number":140,"context_line":"                                                             **filters)"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"    @db_base_plugin_common.filter_fields"},{"line_number":143,"context_line":"    @db_base_plugin_common.convert_result_to_dict"},{"line_number":144,"context_line":"    def get_rule_types(self, context, filters\u003dNone, fields\u003dNone,"},{"line_number":145,"context_line":"                       sorts\u003dNone, limit\u003dNone,"},{"line_number":146,"context_line":"                       marker\u003dNone, page_reverse\u003dFalse):"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_801fbdb6","line":143,"in_reply_to":"1a4dcd0f_838e272c","updated":"2015-08-09 08:59:09.000000000","message":"Done","commit_id":"f41c458bb6f4fe33721373640eb85a3a76abea52"}],"neutron/tests/api/test_qos.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"abf7e02ae58122450aaf59b3c25d6f3798fbb895","unresolved":false,"context_lines":[{"line_number":53,"context_line":"    @test.idempotent_id(\u0027f8d20e92-f06d-4805-b54f-230f77715815\u0027)"},{"line_number":54,"context_line":"    def test_list_policy_filter_by_name(self):"},{"line_number":55,"context_line":"        self.create_qos_policy(name\u003d\u0027test-policy\u0027, description\u003d\u0027test policy\u0027,"},{"line_number":56,"context_line":"                               shared\u003dFalse)"},{"line_number":57,"context_line":"        retrieved_policy \u003d (self.admin_client."},{"line_number":58,"context_line":"                            list_qos_policies(name\u003d\u0027test-policy\u0027)[\u0027policies\u0027])"},{"line_number":59,"context_line":"        retrieved_policy \u003d retrieved_policy[0]"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_1db36b51","line":56,"updated":"2015-08-06 16:50:34.000000000","message":"Can we create several policies here to make sure we get just the one we requested?","commit_id":"f41c458bb6f4fe33721373640eb85a3a76abea52"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"7f9a02a0262f30d96e5ab517c5e09e6d5a7e86ca","unresolved":false,"context_lines":[{"line_number":53,"context_line":"    @test.idempotent_id(\u0027f8d20e92-f06d-4805-b54f-230f77715815\u0027)"},{"line_number":54,"context_line":"    def test_list_policy_filter_by_name(self):"},{"line_number":55,"context_line":"        self.create_qos_policy(name\u003d\u0027test-policy\u0027, description\u003d\u0027test policy\u0027,"},{"line_number":56,"context_line":"                               shared\u003dFalse)"},{"line_number":57,"context_line":"        retrieved_policy \u003d (self.admin_client."},{"line_number":58,"context_line":"                            list_qos_policies(name\u003d\u0027test-policy\u0027)[\u0027policies\u0027])"},{"line_number":59,"context_line":"        retrieved_policy \u003d retrieved_policy[0]"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_bb4a2826","line":56,"in_reply_to":"1a4dcd0f_1db36b51","updated":"2015-08-09 08:59:09.000000000","message":"Done","commit_id":"f41c458bb6f4fe33721373640eb85a3a76abea52"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"bccaf44f30e8089ca085477125fec6535ce5065c","unresolved":false,"context_lines":[{"line_number":58,"context_line":"                               shared\u003dFalse)"},{"line_number":59,"context_line":"        retrieved_policy \u003d (self.admin_client."},{"line_number":60,"context_line":"                            list_qos_policies(name\u003d\u0027test-policy\u0027)[\u0027policies\u0027])"},{"line_number":61,"context_line":"        retrieved_policy \u003d retrieved_policy[0]"},{"line_number":62,"context_line":"        self.assertEqual(\u0027test-policy\u0027, retrieved_policy[\u0027name\u0027])"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    @test.attr(type\u003d\u0027smoke\u0027)"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a4dcd0f_5bba04c2","line":61,"updated":"2015-08-09 10:11:37.000000000","message":"Can you also check another policy object was not returned?","commit_id":"ff4c5358a143f0cb4a80a37619509529e5ca9352"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"cd7e19d2f2fcb73bc8cc0cdf49643b338f3f9cbf","unresolved":false,"context_lines":[{"line_number":58,"context_line":"                               shared\u003dFalse)"},{"line_number":59,"context_line":"        retrieved_policy \u003d (self.admin_client."},{"line_number":60,"context_line":"                            list_qos_policies(name\u003d\u0027test-policy\u0027)[\u0027policies\u0027])"},{"line_number":61,"context_line":"        retrieved_policy \u003d retrieved_policy[0]"},{"line_number":62,"context_line":"        self.assertEqual(\u0027test-policy\u0027, retrieved_policy[\u0027name\u0027])"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    @test.attr(type\u003d\u0027smoke\u0027)"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a4dcd0f_9ba64c52","line":61,"in_reply_to":"1a4dcd0f_5bba04c2","updated":"2015-08-09 10:37:54.000000000","message":"Done","commit_id":"ff4c5358a143f0cb4a80a37619509529e5ca9352"}],"neutron/tests/tempest/services/network/json/network_client.py":[{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"7f9a02a0262f30d96e5ab517c5e09e6d5a7e86ca","unresolved":false,"context_lines":[{"line_number":629,"context_line":""},{"line_number":630,"context_line":"    def list_qos_policies(self, **filters):"},{"line_number":631,"context_line":"        if filters:"},{"line_number":632,"context_line":"            filters \u003d urllib.urlencode(filters)"},{"line_number":633,"context_line":"            uri \u003d \u0027%s/qos/policies?%s\u0027 % (self.uri_prefix, filters)"},{"line_number":634,"context_line":"        else:"},{"line_number":635,"context_line":"            uri \u003d \u0027%s/qos/policies\u0027 % self.uri_prefix"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_c025c50a","line":632,"updated":"2015-08-09 08:59:09.000000000","message":"I dislike replacing \u0027filters\u0027 in place since it\u0027s a dict and changing an argument dict can be a bit problematic in cases.\n\nI suggest, instead, to simply call \u0027urlencode()\u0027 in the next like directly.","commit_id":"f41c458bb6f4fe33721373640eb85a3a76abea52"}],"neutron/tests/unit/objects/test_base.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"abf7e02ae58122450aaf59b3c25d6f3798fbb895","unresolved":false,"context_lines":[{"line_number":124,"context_line":"        get_objects_mock.assert_called_once_with("},{"line_number":125,"context_line":"            self.context, self._test_class.db_model)"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"    def test_validate_filters_mixed_values(self):"},{"line_number":128,"context_line":"        fake_filters \u003d {\u0027id\u0027: \u0027fake_id\u0027, \u0027fake_filter1\u0027: \u0027fake_value\u0027,"},{"line_number":129,"context_line":"                        \u0027fake_filter2\u0027: \u0027fake_value\u0027}"},{"line_number":130,"context_line":"        self.assertRaises(base.exceptions.ObjectActionError,"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_1dfdabb3","line":127,"updated":"2015-08-06 16:50:34.000000000","message":"This test should validate get_objects. validate_filters is not part of public interface of the objects. And this class is specifically to validate the behavior of objects, not specific functions. If you want to cover just that function, you need another class that won\u0027t be inherited by each object type test class.","commit_id":"f41c458bb6f4fe33721373640eb85a3a76abea52"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"7f9a02a0262f30d96e5ab517c5e09e6d5a7e86ca","unresolved":false,"context_lines":[{"line_number":124,"context_line":"        get_objects_mock.assert_called_once_with("},{"line_number":125,"context_line":"            self.context, self._test_class.db_model)"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"    def test_validate_filters_mixed_values(self):"},{"line_number":128,"context_line":"        fake_filters \u003d {\u0027id\u0027: \u0027fake_id\u0027, \u0027fake_filter1\u0027: \u0027fake_value\u0027,"},{"line_number":129,"context_line":"                        \u0027fake_filter2\u0027: \u0027fake_value\u0027}"},{"line_number":130,"context_line":"        self.assertRaises(base.exceptions.ObjectActionError,"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_7bbd8001","line":127,"in_reply_to":"1a4dcd0f_1dfdabb3","updated":"2015-08-09 08:59:09.000000000","message":"Your request makes sense. It... complicated the unit tests some, but the new tests for get_objects will test this functionality for sub-classes as well.","commit_id":"f41c458bb6f4fe33721373640eb85a3a76abea52"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"bccaf44f30e8089ca085477125fec6535ce5065c","unresolved":false,"context_lines":[{"line_number":162,"context_line":"                              self._test_class.get_objects, self.context,"},{"line_number":163,"context_line":"                              **filters)"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"    def test_get_objects_synthatic_fields(self):"},{"line_number":166,"context_line":"        synthetic_fields \u003d self._test_class.synthetic_fields"},{"line_number":167,"context_line":"        if not synthetic_fields:"},{"line_number":168,"context_line":"            self.skipTest(\u0027No synthetic fields found in test class %r\u0027 %"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a4dcd0f_db229401","line":165,"updated":"2015-08-09 10:11:37.000000000","message":"synthetic","commit_id":"ff4c5358a143f0cb4a80a37619509529e5ca9352"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"cd7e19d2f2fcb73bc8cc0cdf49643b338f3f9cbf","unresolved":false,"context_lines":[{"line_number":162,"context_line":"                              self._test_class.get_objects, self.context,"},{"line_number":163,"context_line":"                              **filters)"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"    def test_get_objects_synthatic_fields(self):"},{"line_number":166,"context_line":"        synthetic_fields \u003d self._test_class.synthetic_fields"},{"line_number":167,"context_line":"        if not synthetic_fields:"},{"line_number":168,"context_line":"            self.skipTest(\u0027No synthetic fields found in test class %r\u0027 %"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a4dcd0f_1b48fc86","line":165,"in_reply_to":"1a4dcd0f_db229401","updated":"2015-08-09 10:37:54.000000000","message":"Whoops.","commit_id":"ff4c5358a143f0cb4a80a37619509529e5ca9352"}]}
