)]}'
{"openstackclient/common/quota.py":[{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"b5e92f8ca504a79a28068d3f894db4de3b727ce3","unresolved":true,"context_lines":[{"line_number":878,"context_line":"        # Backwards compat for 6.1.0 - 10.2.0 behavior where we switched from a"},{"line_number":879,"context_line":"        # ShowOne (where -c selects rows) to Lister (where -c selects columns)."},{"line_number":880,"context_line":"        # We\u0027re back to the former behavior since 10.3.0 but want to avoid"},{"line_number":881,"context_line":"        # breaking anyone yet."},{"line_number":882,"context_line":"        #"},{"line_number":883,"context_line":"        # https://bugs.launchpad.net/python-openstackclient/+bug/2169115"},{"line_number":884,"context_line":"        # https://bugs.launchpad.net/nova/+bug/2176167"}],"source_content_type":"text/x-python","patch_set":1,"id":"4ff8de45_c156e43a","line":881,"updated":"2026-11-26 13:34:25.000000000","message":"for what its worth i have done that before an di reaslise as i said to you IRL\nthat in my head i have alwasy thread -c as an alise for the field to project out of the json sreponce\n\n\nso ys for show i expect that to map only the id and name fields out of the json object into the output\n\nfor list is actully expec the same thing we are projecting only specific filed form the underlying object in the respocne lsit and happen to be renderign them in colums but really we are just repeating the partial object one after another in both cases\n\n\nthe with that interpetion is that not actully equivlent to what the cli is doing for quota show or what cliff did before.\n\ncliff was not thinki about the raw api repsonce it -c was thinkign about the redered output and using -c as a contextual selector of the final data\n\nits kind of a landscpe vs portati problem\n\nin list we are conceptually is selecting the subfiled to project to from the rows via the -c argument and then rendering eatch item in the resonce as a serise of rows each with 1 colum perfiled in the table output\n\nthat happens to group the field into colums because its in \"landscape\" or a \"hoizontal\" output layout, that mirrors what you woudl expect in CSV format as well\n1 row per itme\n\nfor show comamnd its almost like its in portrait or virtical layout mode.\n\nthe underlying mechanisim is the saem -c is filterign the filed in the repsocne to proejct into a tuple/dict to render we just choose to render it with one item per  column rather then per row\n\nwe are using generic invent table hearder names of `Field` and `Value`\nwhich actully demonstrate that the row filed values which -c was selecting on are the under linign filed names\n\nshow if show output the fileds as colume the same wasy as list does the -c name would have made more sense.\n\nso the new behvior in 6.1.0 was logically correct as that allows selecting filed with -c wehre -c correspeodn to the filed names on the input data  not the filed values.\n\nthe probelm then comd for quota show\n\nquota show is actully really a lsit command as it is listing the quotas for a given project but it was rendered usign the generic show mothod.\n\nand because osc historically pass a list to the show handeler it treated filed values as field names and allowed user to filter based on the values client side\n\n\nif we were doign this today we probaly woudl have supproted --Resouce or similr instead to allow filtring on the resouce.\n\ngiven the long standing expecation of this value based filtering we like shoudl restore that but i think in a future version we shoudl add a dedicate --resource for this or simialr to do it properly.","commit_id":"2aa16554c0be774598ace842f9e40381897b3269"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"802b6e6650a93c50f3507473f07ce644d48769b8","unresolved":true,"context_lines":[{"line_number":878,"context_line":"        # Backwards compat for 6.1.0 - 10.2.0 behavior where we switched from a"},{"line_number":879,"context_line":"        # ShowOne (where -c selects rows) to Lister (where -c selects columns)."},{"line_number":880,"context_line":"        # We\u0027re back to the former behavior since 10.3.0 but want to avoid"},{"line_number":881,"context_line":"        # breaking anyone yet."},{"line_number":882,"context_line":"        #"},{"line_number":883,"context_line":"        # https://bugs.launchpad.net/python-openstackclient/+bug/2169115"},{"line_number":884,"context_line":"        # https://bugs.launchpad.net/nova/+bug/2176167"}],"source_content_type":"text/x-python","patch_set":1,"id":"aa05a88e_06fdeb06","line":881,"in_reply_to":"4ff8de45_c156e43a","updated":"2026-11-26 13:52:58.000000000","message":"actully \n\nhttps://docs.openstack.org/api-ref/compute/#id341\n\n\n```\n{\n    \"quota_set\": {\n        \"cores\": {\n            \"in_use\": 0,\n            \"limit\": 20,\n            \"reserved\": 0\n        },\n        \"fixed_ips\": {\n            \"in_use\": 0,\n            \"limit\": -1,\n            \"reserved\": 0\n        },\n        \"floating_ips\": {\n            \"in_use\": 0,\n            \"limit\": -1,\n            \"reserved\": 0\n        },\n        \"id\": \"fake_tenant\",\n        \"injected_file_content_bytes\": {\n            \"in_use\": 0,\n            \"limit\": 10240,\n            \"reserved\": 0\n        },\n        \"injected_file_path_bytes\": {\n            \"in_use\": 0,\n            \"limit\": 255,\n            \"reserved\": 0\n        },\n        \"injected_files\": {\n            \"in_use\": 0,\n            \"limit\": 5,\n            \"reserved\": 0\n        },\n        \"instances\": {\n            \"in_use\": 0,\n            \"limit\": 10,\n            \"reserved\": 0\n        },\n        \"key_pairs\": {\n            \"in_use\": 0,\n            \"limit\": 100,\n            \"reserved\": 0\n        },\n        \"metadata_items\": {\n            \"in_use\": 0,\n            \"limit\": 128,\n            \"reserved\": 0\n        },\n        \"ram\": {\n            \"in_use\": 0,\n            \"limit\": 51200,\n            \"reserved\": 0\n        },\n        \"security_group_rules\": {\n            \"in_use\": 0,\n            \"limit\": -1,\n            \"reserved\": 0\n        },\n        \"security_groups\": {\n            \"in_use\": 0,\n            \"limit\": -1,\n            \"reserved\": 0\n        },\n        \"server_group_members\": {\n            \"in_use\": 0,\n            \"limit\": 10,\n            \"reserved\": 0\n        },\n        \"server_groups\": {\n            \"in_use\": 0,\n            \"limit\": 10,\n            \"reserved\": 0\n        }\n    }\n}\n```\n\nthat is the shape of the repsocne\n\nso no its not a missues \n\nthe filed names not values are injected_file_content_bytes\n\nso the pre 6.1.0 behavior is actully correct","commit_id":"2aa16554c0be774598ace842f9e40381897b3269"}]}
