)]}'
{"openstack_dashboard/dashboards/admin/defaults/workflows.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"7e9fbc4a4495916acc69f802c0779f69f4342516","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        # Update the default quotas."},{"line_number":89,"context_line":"        # `fixed_ips` update for quota class is not supported by novaclient"},{"line_number":90,"context_line":"        nova_data \u003d {"},{"line_number":91,"context_line":"            key: data.get(key)"},{"line_number":92,"context_line":"            for key in quotas.NOVA_QUOTA_FIELDS"},{"line_number":93,"context_line":"            if key !\u003d \u0027fixed_ips\u0027"},{"line_number":94,"context_line":"        }"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f044301_b706fa85","line":91,"range":{"start_line":91,"start_character":17,"end_line":91,"end_character":30},"updated":"2017-05-05 15:21:55.000000000","message":"This means None (null) is sent to the service if some key is missing in \u0027data\u0027. How about sending only specified keys?\n\n  nova_data \u003d {key: value for key, value in data.items()\n               if key in quotas.NOVA_QUOTA_FIELDS and key !\u003d \u0027fixed_ips\u0027}","commit_id":"e8a715c890a9296ea1f713440a9a069fe01b3e18"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"cebdf16295d1cc706f6852367442391b54e96b11","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        # Update the default quotas."},{"line_number":89,"context_line":"        # `fixed_ips` update for quota class is not supported by novaclient"},{"line_number":90,"context_line":"        nova_data \u003d {"},{"line_number":91,"context_line":"            key: data.get(key)"},{"line_number":92,"context_line":"            for key in quotas.NOVA_QUOTA_FIELDS"},{"line_number":93,"context_line":"            if key !\u003d \u0027fixed_ips\u0027"},{"line_number":94,"context_line":"        }"}],"source_content_type":"text/x-python","patch_set":1,"id":"1f013ff3_8e09dede","line":91,"range":{"start_line":91,"start_character":17,"end_line":91,"end_character":30},"in_reply_to":"3f044301_520fa7e0","updated":"2017-05-14 15:27:14.000000000","message":"Actually None is not turned into -1. If None is specified, a corresponding entry is not sent to the server. When we want to set some default quota to -1 (unlimited), we need to specify -1 explicitly. Anyway the logic in patch set 2 looks fine to me.","commit_id":"e8a715c890a9296ea1f713440a9a069fe01b3e18"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"c0c7ee244ef3980016cb3f85d3f1430e67472606","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        # Update the default quotas."},{"line_number":89,"context_line":"        # `fixed_ips` update for quota class is not supported by novaclient"},{"line_number":90,"context_line":"        nova_data \u003d {"},{"line_number":91,"context_line":"            key: data.get(key)"},{"line_number":92,"context_line":"            for key in quotas.NOVA_QUOTA_FIELDS"},{"line_number":93,"context_line":"            if key !\u003d \u0027fixed_ips\u0027"},{"line_number":94,"context_line":"        }"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f044301_715f5772","line":91,"range":{"start_line":91,"start_character":17,"end_line":91,"end_character":30},"in_reply_to":"3f044301_5b28fce0","updated":"2017-05-05 21:52:34.000000000","message":"I still don\u0027t understand why we cannot remove the quotas already set. Let me continue a bit.\n\n\"data\" dict contains all fields defined in the action class even though a field is hidden (For the hidden field, the value will be an empty string). My proposed logic above just picks up nova quota entries from \"data\" dict. What is the problem?\n\nActually there is no operation to remove some quota from the default quota class. If None (null) is passed, novaclient code pops it and as a result None is not passed to the nova API. [1]\n\n[1] https://github.com/openstack/python-novaclient/blob/master/novaclient/v2/quota_classes.py#L39","commit_id":"e8a715c890a9296ea1f713440a9a069fe01b3e18"},{"author":{"_account_id":8648,"name":"Radomir Dopieralski","email":"openstack@dopieralski.pl","username":"thesheep"},"change_message_id":"c4160a3158c615cf69e1cdcfcb68cd85c4270993","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        # Update the default quotas."},{"line_number":89,"context_line":"        # `fixed_ips` update for quota class is not supported by novaclient"},{"line_number":90,"context_line":"        nova_data \u003d {"},{"line_number":91,"context_line":"            key: data.get(key)"},{"line_number":92,"context_line":"            for key in quotas.NOVA_QUOTA_FIELDS"},{"line_number":93,"context_line":"            if key !\u003d \u0027fixed_ips\u0027"},{"line_number":94,"context_line":"        }"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f044301_520fa7e0","line":91,"range":{"start_line":91,"start_character":17,"end_line":91,"end_character":30},"in_reply_to":"3f044301_715f5772","updated":"2017-05-08 08:58:48.000000000","message":"Interesting, I was convinced that None gets turned into a -1. I will do the modification you suggest.","commit_id":"e8a715c890a9296ea1f713440a9a069fe01b3e18"},{"author":{"_account_id":8648,"name":"Radomir Dopieralski","email":"openstack@dopieralski.pl","username":"thesheep"},"change_message_id":"713637b5d83ea450265f8ae6b2e00781bbcfc32c","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        # Update the default quotas."},{"line_number":89,"context_line":"        # `fixed_ips` update for quota class is not supported by novaclient"},{"line_number":90,"context_line":"        nova_data \u003d {"},{"line_number":91,"context_line":"            key: data.get(key)"},{"line_number":92,"context_line":"            for key in quotas.NOVA_QUOTA_FIELDS"},{"line_number":93,"context_line":"            if key !\u003d \u0027fixed_ips\u0027"},{"line_number":94,"context_line":"        }"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f044301_5b28fce0","line":91,"range":{"start_line":91,"start_character":17,"end_line":91,"end_character":30},"in_reply_to":"3f044301_b706fa85","updated":"2017-05-05 20:01:31.000000000","message":"Then you can\u0027t remove the quotas that are already set.","commit_id":"e8a715c890a9296ea1f713440a9a069fe01b3e18"}]}
