)]}'
{"osc_lib/utils/__init__.py":[{"author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"change_message_id":"e7973c5df1aa8380a9a90a23657624120401a4db","unresolved":true,"context_lines":[{"line_number":199,"context_line":"    # For some projects, the name only will work. For keystone, this is not"},{"line_number":200,"context_line":"    # enough information, and domain information is necessary."},{"line_number":201,"context_line":"    try:"},{"line_number":202,"context_line":"        if uuidutils.is_uuid_like(name_or_id):"},{"line_number":203,"context_line":"            return manager.get(name_or_id)"},{"line_number":204,"context_line":"    except Exception:"},{"line_number":205,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":1,"id":"fc21327b_dd1079a1","line":202,"updated":"2024-10-14 14:32:49.000000000","message":"Unfortunately we can\u0027t do this in a generic helper since it\u0027s not reliable across services. For example, compute flavor IDs are not UUIDs but random (unique) strings. This has to be done on a service-by-service (and sometimes resource-by-resource) basis 😞","commit_id":"777ebe45fe94ed6da7c557786a3a6f40543e5baf"},{"author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"change_message_id":"845c44dfa8ea3673bf6dba2588200ba3e4fa3bed","unresolved":false,"context_lines":[{"line_number":199,"context_line":"    # For some projects, the name only will work. For keystone, this is not"},{"line_number":200,"context_line":"    # enough information, and domain information is necessary."},{"line_number":201,"context_line":"    try:"},{"line_number":202,"context_line":"        if uuidutils.is_uuid_like(name_or_id):"},{"line_number":203,"context_line":"            return manager.get(name_or_id)"},{"line_number":204,"context_line":"    except Exception:"},{"line_number":205,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":1,"id":"60652399_4c27ddab","line":202,"in_reply_to":"691cc9ff_3013cc98","updated":"2024-10-29 15:19:36.000000000","message":"It\u0027s going to be difficult for the legacy clients to do, given the amount of variety that exists. However, it might be a bit easier to do for openstacksdk which, going forward, is what everything should be using.\n\nI think we should be able to some attribute to the `id` field of the `openstack.resource.Resource`, indicating whether this field is expected to be a UUID or not. If this bit of metadata was present then we could make e.g. the `openstack.proxy.Proxy._find` method a little smarter? This would require a bit of experimentation though, given the amount of \"magic\" that currently happens in SDK. If you do feel happy to do that experimentation, please stick me on the review and I\u0027ll happily provide what feedback I can.","commit_id":"777ebe45fe94ed6da7c557786a3a6f40543e5baf"},{"author":{"_account_id":34149,"name":"Niklas Schwarz","email":"niklas.schwarz@inovex.de","username":"nschwarz"},"change_message_id":"d8714e8a2ce33f632b3476f5d2b4f8a631a5953b","unresolved":true,"context_lines":[{"line_number":199,"context_line":"    # For some projects, the name only will work. For keystone, this is not"},{"line_number":200,"context_line":"    # enough information, and domain information is necessary."},{"line_number":201,"context_line":"    try:"},{"line_number":202,"context_line":"        if uuidutils.is_uuid_like(name_or_id):"},{"line_number":203,"context_line":"            return manager.get(name_or_id)"},{"line_number":204,"context_line":"    except Exception:"},{"line_number":205,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":1,"id":"691cc9ff_3013cc98","line":202,"in_reply_to":"fc21327b_dd1079a1","updated":"2024-10-15 07:43:18.000000000","message":"Thanks for the information. This was on service/resource I have not tried to test with the small patch. I will abandon this on.\n\nJust for clarity: are there any chance that such a mr will get merged which adds logic to the resources itself to reduce the calls to the api for such case (searching by id or name)","commit_id":"777ebe45fe94ed6da7c557786a3a6f40543e5baf"}]}
