)]}'
{"neutron/api/v2/base.py":[{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"ae97a9f6a5db290ff3a6a7884b10e9d4a66ebbe7","unresolved":false,"context_lines":[{"line_number":209,"context_line":"                               resource,"},{"line_number":210,"context_line":"                               pluralized\u003dself._collection)"},{"line_number":211,"context_line":"                ret_value \u003d getattr(self._plugin, name)(*arg_list, **kwargs)"},{"line_number":212,"context_line":"                # It is simply impossible to predict whether one of this"},{"line_number":213,"context_line":"                # actions alters resource usage. For instance a tenant port"},{"line_number":214,"context_line":"                # is created when a router interface is added. Therefore it is"},{"line_number":215,"context_line":"                # important to mark as dirty resources whose counters have"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a50d1a3_7eebbf78","line":212,"updated":"2015-07-22 06:41:03.000000000","message":"hrm, it sounds to me that the quota management is being done at the wrong layer then? Currently  I guess you can  continue to go over your port\u0027s quota if you keep creating routers and attaching subnets?","commit_id":"5f133edb35f022acec54d63de601f8c5d31e6dcc"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"8caae727e4b723f5ba982e7afed8db3b216a0631","unresolved":false,"context_lines":[{"line_number":209,"context_line":"                               resource,"},{"line_number":210,"context_line":"                               pluralized\u003dself._collection)"},{"line_number":211,"context_line":"                ret_value \u003d getattr(self._plugin, name)(*arg_list, **kwargs)"},{"line_number":212,"context_line":"                # It is simply impossible to predict whether one of this"},{"line_number":213,"context_line":"                # actions alters resource usage. For instance a tenant port"},{"line_number":214,"context_line":"                # is created when a router interface is added. Therefore it is"},{"line_number":215,"context_line":"                # important to mark as dirty resources whose counters have"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a50d1a3_ee54c8ca","line":212,"in_reply_to":"3a50d1a3_186babb8","updated":"2015-07-23 02:01:59.000000000","message":"Yes I think that\u0027s the right direction. Please also replace the API with a rpc interface as well.  \n\nAll joking aside I think this is a good improvement. I think it\u0027s okay that we do this at the api layer for now.","commit_id":"5f133edb35f022acec54d63de601f8c5d31e6dcc"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"59abea924787e981854e9db5ee56918ab62484bd","unresolved":false,"context_lines":[{"line_number":209,"context_line":"                               resource,"},{"line_number":210,"context_line":"                               pluralized\u003dself._collection)"},{"line_number":211,"context_line":"                ret_value \u003d getattr(self._plugin, name)(*arg_list, **kwargs)"},{"line_number":212,"context_line":"                # It is simply impossible to predict whether one of this"},{"line_number":213,"context_line":"                # actions alters resource usage. For instance a tenant port"},{"line_number":214,"context_line":"                # is created when a router interface is added. Therefore it is"},{"line_number":215,"context_line":"                # important to mark as dirty resources whose counters have"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a50d1a3_186babb8","line":212,"in_reply_to":"3a50d1a3_7eebbf78","updated":"2015-07-22 08:51:42.000000000","message":"yes, that\u0027s what I\u0027ve been saying for quite some time.\nI did not want to go into another layer of refactoring where operations such as creating a port from the plugin would have triggered quota enforcement.\n\nBut you know, we can just say that quota enforcement is the plugin\u0027s responsibility, and just drop the enforcement logic from the API layer.\nThis way all these patches won\u0027t be needed anymore and we would stash all the logic in the db base classes.\n\nThen if some plugin does not use them, it\u0027s their business to do quota enforcement.\n\nDo you prefer I redo the work in this direciton?","commit_id":"5f133edb35f022acec54d63de601f8c5d31e6dcc"}]}
