)]}'
{"nova/compute/utils.py":[{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"b622d4cd1682f4dcb4f3560e8520e222f82e4617","unresolved":false,"context_lines":[{"line_number":1113,"context_line":"    # Check whether we need to count resources per-user and check a per-user"},{"line_number":1114,"context_line":"    # quota limit. If we have no per-user quota limit defined for a"},{"line_number":1115,"context_line":"    # project/user, we can avoid wasteful resource counting."},{"line_number":1116,"context_line":"    user_quotas \u003d objects.Quotas.get_all_by_project_and_user("},{"line_number":1117,"context_line":"        context, project_id, user_id)"},{"line_number":1118,"context_line":"    if not any(r in user_quotas for r in [\u0027instances\u0027, \u0027cores\u0027, \u0027ram\u0027]):"},{"line_number":1119,"context_line":"        user_id \u003d None"}],"source_content_type":"text/x-python","patch_set":2,"id":"9f560f44_ab064f20","line":1116,"updated":"2020-09-02 21:03:39.000000000","message":"Pulling quotas for the rarer case (no per-user quota) for all requests isn\u0027t great :\\ Ideally, we should (1) pull quotas (2) count resources based on existence of per-user quotas (3) check limits against resource count. But that requires refactoring.","commit_id":"4c11d5467a30506a82dd5d32dd22b8958a187c0b"}]}
