)]}'
{"neutron_lib/db/utils.py":[{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"2296c92ac07316fd0332be5ff954c281d39d8779","unresolved":true,"context_lines":[{"line_number":168,"context_line":"        has a project_id. False otherwise."},{"line_number":169,"context_line":"    \"\"\""},{"line_number":170,"context_line":"    if not hasattr(model, \u0027project_id\u0027):"},{"line_number":171,"context_line":"        # If model don\u0027t have project_id, there is no need to scope query to"},{"line_number":172,"context_line":"        # just one project"},{"line_number":173,"context_line":"        return False"},{"line_number":174,"context_line":"    if context.is_advsvc:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3bbdc5d3_5b66bf6e","line":171,"range":{"start_line":171,"start_character":19,"end_line":171,"end_character":24},"updated":"2021-03-17 11:19:38.000000000","message":"nit: doesn\u0027t","commit_id":"8feb318d2d43b37b25ef4c20f746438ad3ae111d"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"a660564b786c0f21f75adc4326dd4b12cd619b4b","unresolved":true,"context_lines":[{"line_number":182,"context_line":"        # Unless a context is a system_scope token, query should be scoped to a"},{"line_number":183,"context_line":"        # single project_id"},{"line_number":184,"context_line":"        return context.system_scope !\u003d \u0027all\u0027"},{"line_number":185,"context_line":"    else:"},{"line_number":186,"context_line":"        # Unless context has \u0027admin\u0027 rights the"},{"line_number":187,"context_line":"        # query will be scoped to a single project_id"},{"line_number":188,"context_line":"        return not context.is_admin"}],"source_content_type":"text/x-python","patch_set":3,"id":"d3989cbd_7082ccf2","line":185,"updated":"2021-03-17 16:39:11.000000000","message":"nit: guess you don\u0027t need the else here as all the if\u0027s have a return","commit_id":"d73449dd1cd5045aaa3486a58cff7f773e90be7c"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"74dfe5975d225ffb004641fd656837725ad10014","unresolved":true,"context_lines":[{"line_number":185,"context_line":"    else:"},{"line_number":186,"context_line":"        # Unless context has \u0027admin\u0027 rights the"},{"line_number":187,"context_line":"        # query will be scoped to a single project_id"},{"line_number":188,"context_line":"        return not context.is_admin"},{"line_number":189,"context_line":""},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"def model_query(context, model):"}],"source_content_type":"text/x-python","patch_set":3,"id":"af3c6be9_f58b2d93","line":188,"updated":"2021-03-17 21:59:10.000000000","message":"Yeah - I think this is the main code path for anyone with access to a project, who isn\u0027t an administrator, and interacting with project-owned resources (networks/ports).","commit_id":"d73449dd1cd5045aaa3486a58cff7f773e90be7c"}],"neutron_lib/tests/unit/db/test_utils.py":[{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"eb9da88e3f43a56056802bd4e19aedee92225e1f","unresolved":true,"context_lines":[{"line_number":147,"context_line":"        ctx \u003d context.Context(system_scope\u003d\u0027all\u0027)"},{"line_number":148,"context_line":"        model \u003d mock.Mock(project_id\u003d\u0027project\u0027)"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"        self.assertTrue("},{"line_number":151,"context_line":"            utils.model_query_scope_is_project(ctx, model))"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"        # Ensure that project_id isn\u0027t mocked"}],"source_content_type":"text/x-python","patch_set":2,"id":"d4e3cecb_ba4e6b87","line":150,"range":{"start_line":150,"start_character":13,"end_line":150,"end_character":23},"updated":"2021-03-17 13:12:07.000000000","message":"this should be assertFalse from \nhttps://review.opendev.org/c/openstack/neutron-lib/+/781075/2/neutron_lib/db/utils.py#184","commit_id":"8045e393c376e5b8f324d1add3bce46fdde22320"}]}
