)]}'
{"openstack/resource.py":[{"author":{"_account_id":16929,"name":"Giridhar Jayavelu","email":"gjayavelu@vmware.com","username":"gjayavelu"},"change_message_id":"0d427f125653a1e7d42d51fdaffc5e4db6638583","unresolved":false,"context_lines":[{"line_number":953,"context_line":"                        next_link \u003d item[\u0027href\u0027]"},{"line_number":954,"context_line":"                        break"},{"line_number":955,"context_line":"            # Glance has a next field in the main body"},{"line_number":956,"context_line":"            # next_link \u003d next_link or data.get(\u0027next\u0027)"},{"line_number":957,"context_line":"            # Do not use the next field as it causes issue with pagination url"},{"line_number":958,"context_line":"            # See #1748534 instead use the conventional marker parameter"},{"line_number":959,"context_line":"            if data.get(\u0027next\u0027):"}],"source_content_type":"text/x-python","patch_set":2,"id":"bf659307_7d01a469","line":956,"updated":"2018-04-04 00:19:51.000000000","message":"this line can be removed?","commit_id":"aa12515860ea4bf03ba84165189147e0c80bce5d"},{"author":{"_account_id":7693,"name":"Sidharth Surana","email":"ssurana@vmware.com","username":"ssurana"},"change_message_id":"1ccfc60255792c720e0f9faaa0c15a448f76de0e","unresolved":false,"context_lines":[{"line_number":953,"context_line":"                        next_link \u003d item[\u0027href\u0027]"},{"line_number":954,"context_line":"                        break"},{"line_number":955,"context_line":"            # Glance has a next field in the main body"},{"line_number":956,"context_line":"            # next_link \u003d next_link or data.get(\u0027next\u0027)"},{"line_number":957,"context_line":"            # Do not use the next field as it causes issue with pagination url"},{"line_number":958,"context_line":"            # See #1748534 instead use the conventional marker parameter"},{"line_number":959,"context_line":"            if data.get(\u0027next\u0027):"}],"source_content_type":"text/x-python","patch_set":2,"id":"bf659307_5dcf0028","line":956,"in_reply_to":"bf659307_7d01a469","updated":"2018-04-04 00:23:08.000000000","message":"Done","commit_id":"aa12515860ea4bf03ba84165189147e0c80bce5d"},{"author":{"_account_id":13252,"name":"Dr. Jens Harbott","display_name":"Jens Harbott (frickler)","email":"frickler@offenerstapel.de","username":"jrosenboom"},"change_message_id":"72fff7608f4f777c9de23ad4d6d4c130d9b86641","unresolved":false,"context_lines":[{"line_number":953,"context_line":"                        next_link \u003d item[\u0027href\u0027]"},{"line_number":954,"context_line":"                        break"},{"line_number":955,"context_line":"            # Glance has a next field in the main body"},{"line_number":956,"context_line":"            # Do not use the next field as it causes issue with pagination url"},{"line_number":957,"context_line":"            # See #1748534 instead use the conventional marker parameter"},{"line_number":958,"context_line":"            if data.get(\u0027next\u0027):"},{"line_number":959,"context_line":"                next_link \u003d uri"}],"source_content_type":"text/x-python","patch_set":3,"id":"bf659307_38125363","line":956,"updated":"2018-04-04 08:00:24.000000000","message":"From looking at the bug report I do not think that this is the correct approach to solve the issue.\n\nGlance is providing a valid \"next\" link so we should be using it, just make sure that we use it correctly.","commit_id":"7d30e0628b91588a22224dd4e3802257e635c3fa"},{"author":{"_account_id":2,"name":"Monty Taylor","email":"mordred@inaugust.com","username":"mordred"},"change_message_id":"2e22a5b34167ce81383954990cd282595b119114","unresolved":false,"context_lines":[{"line_number":953,"context_line":"                        next_link \u003d item[\u0027href\u0027]"},{"line_number":954,"context_line":"                        break"},{"line_number":955,"context_line":"            # Glance has a next field in the main body"},{"line_number":956,"context_line":"            # Do not use the next field as it causes issue with pagination url"},{"line_number":957,"context_line":"            # See #1748534 instead use the conventional marker parameter"},{"line_number":958,"context_line":"            if data.get(\u0027next\u0027):"},{"line_number":959,"context_line":"                next_link \u003d uri"}],"source_content_type":"text/x-python","patch_set":3,"id":"bf659307_4a016604","line":956,"in_reply_to":"bf659307_38125363","updated":"2018-04-04 14:25:32.000000000","message":"I agree - we should just fix the next link. I thnk we already have a place where we have to strip a /v2 from a url returned by glance.\n\nOh. It\u0027s in the shade layer:\n\n        while \u0027next\u0027 in response:\n            image_list.extend(meta.obj_list_to_munch(response[\u0027images\u0027]))\n            endpoint \u003d response[\u0027next\u0027]\n            # next links from glance have the version prefix. If the catalog\n            # has a versioned endpoint, then we can\u0027t append the next link to\n            # it. Strip the absolute prefix (/v1/ or /v2/ to turn it into\n            # a proper relative link.\n            if endpoint.startswith(\u0027/v\u0027):\n                endpoint \u003d endpoint[4:]\n            response \u003d self._image_client.get(endpoint)\n\nLet\u0027s just do the same thing here:\n\n  next_link \u003d next_link or data.get(\u0027next\u0027)\n  if next_link.startswith(\u0027/v\u0027):\n     next_link \u003d next_link[4:]","commit_id":"7d30e0628b91588a22224dd4e3802257e635c3fa"},{"author":{"_account_id":7693,"name":"Sidharth Surana","email":"ssurana@vmware.com","username":"ssurana"},"change_message_id":"3623500a55500c85a1283670b5a96774e7020b36","unresolved":false,"context_lines":[{"line_number":953,"context_line":"                        next_link \u003d item[\u0027href\u0027]"},{"line_number":954,"context_line":"                        break"},{"line_number":955,"context_line":"            # Glance has a next field in the main body"},{"line_number":956,"context_line":"            # Do not use the next field as it causes issue with pagination url"},{"line_number":957,"context_line":"            # See #1748534 instead use the conventional marker parameter"},{"line_number":958,"context_line":"            if data.get(\u0027next\u0027):"},{"line_number":959,"context_line":"                next_link \u003d uri"}],"source_content_type":"text/x-python","patch_set":3,"id":"bf659307_c199d879","line":956,"in_reply_to":"bf659307_4a016604","updated":"2018-04-04 17:47:31.000000000","message":"sure, I am fine with the stripping the version from the url approach as well. I will update the patch","commit_id":"7d30e0628b91588a22224dd4e3802257e635c3fa"}]}
