)]}'
{"manilaclient/common/httpclient.py":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"e9b2babf2edaf6770347c5b406656422dc6f03d3","unresolved":false,"context_lines":[{"line_number":23,"context_line":"from oslo_utils import strutils"},{"line_number":24,"context_line":"import re"},{"line_number":25,"context_line":"import requests"},{"line_number":26,"context_line":"from six.moves.urllib import parse"},{"line_number":27,"context_line":"from six import text_type"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"from manilaclient import exceptions"},{"line_number":30,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_37be01ff","line":27,"range":{"start_line":26,"start_character":0,"end_line":27,"end_character":25},"updated":"2019-01-31 23:53:25.000000000","message":"import modules, not objects","commit_id":"f73d9f59f4fbdee553844798bb80417678ae2604"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"d2505bb5414dc14f6907b688094152297832129c","unresolved":false,"context_lines":[{"line_number":83,"context_line":"        \"\"\"Truncates url and returns base endpoint\"\"\""},{"line_number":84,"context_line":"        service_endpoint \u003d parse.urlparse(url)"},{"line_number":85,"context_line":"        service_endpoint_base_path \u003d re.search("},{"line_number":86,"context_line":"            \u0027(.+?)(/v[0-9]+|/v[0-9]+\\.[0-9]+)(/.*|$)\u0027, service_endpoint.path)"},{"line_number":87,"context_line":"        base_path \u003d (service_endpoint_base_path.group(1)"},{"line_number":88,"context_line":"                     if service_endpoint_base_path else \u0027\u0027)"},{"line_number":89,"context_line":"        base_url \u003d service_endpoint._replace(path\u003dbase_path)"}],"source_content_type":"text/x-python","patch_set":7,"id":"9fdfeff1_d9876c61","line":86,"range":{"start_line":86,"start_character":13,"end_line":86,"end_character":52},"updated":"2019-02-05 16:57:29.000000000","message":"\u0027(.+?)/v([0-9]+|[0-9]+\\.[0-9]+)(/.*|$)\u0027 is a simpler form of the same... \n\n \n\n (.+?)                   - is the string we\u0027re interested in\n /v                      - beginning of the version string\n ([0-9]+|[0-9]+\\.[0-9]+) - matches X and X.YZ, e.g.: 2, 2.3 and 2.35\n (/.*|$)                 - matches one \"/\" and anything after, or end of string","commit_id":"8cb9dba9da5ff0ef34d84ce67faed36e31a0b184"}],"manilaclient/tests/unit/common/test_httpclient.py":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"e9b2babf2edaf6770347c5b406656422dc6f03d3","unresolved":false,"context_lines":[{"line_number":87,"context_line":"        self.max_version \u003d manilaclient.API_MAX_VERSION"},{"line_number":88,"context_line":"        self.max_version_str \u003d self.max_version.get_string()"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    @ddt.data(\"http://manila.example.com/v1/123\","},{"line_number":91,"context_line":"              \"http://manila.example.com/v1\","},{"line_number":92,"context_line":"              \"http://manila.example.com/share/v1/\","},{"line_number":93,"context_line":"              \"http://manila.example.com/share/v1/123\","}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_375361e4","line":90,"range":{"start_line":90,"start_character":44,"end_line":90,"end_character":47},"updated":"2019-01-31 23:53:25.000000000","message":"I suggest using a uuid here, to indicate a real url","commit_id":"f73d9f59f4fbdee553844798bb80417678ae2604"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"e9b2babf2edaf6770347c5b406656422dc6f03d3","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        self.max_version_str \u003d self.max_version.get_string()"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    @ddt.data(\"http://manila.example.com/v1/123\","},{"line_number":91,"context_line":"              \"http://manila.example.com/v1\","},{"line_number":92,"context_line":"              \"http://manila.example.com/share/v1/\","},{"line_number":93,"context_line":"              \"http://manila.example.com/share/v1/123\","},{"line_number":94,"context_line":"              \"http://10.10.10.10:3366/v1\","}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_574e2538","line":91,"range":{"start_line":91,"start_character":14,"end_line":91,"end_character":40},"updated":"2019-01-31 23:53:25.000000000","message":"Also add a test case with DNS and port number","commit_id":"f73d9f59f4fbdee553844798bb80417678ae2604"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"e9b2babf2edaf6770347c5b406656422dc6f03d3","unresolved":false,"context_lines":[{"line_number":113,"context_line":"                **self.TEST_REQUEST_BASE)"},{"line_number":114,"context_line":"            # Automatic JSON parsing"},{"line_number":115,"context_line":"            self.assertEqual(body, {\"hi\": \"there\"})"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"        test_get_call()"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"    def test_get_retry_500(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_774d693c","line":116,"range":{"start_line":116,"start_character":0,"end_line":116,"end_character":0},"updated":"2019-01-31 23:53:25.000000000","message":"you\u0027ve to assert that the method added works as expected and gives you everything until the version string...","commit_id":"f73d9f59f4fbdee553844798bb80417678ae2604"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"3a0e6c15d1ffccc02579ec29477cc47505d2bbf3","unresolved":false,"context_lines":[{"line_number":113,"context_line":"                **self.TEST_REQUEST_BASE)"},{"line_number":114,"context_line":"            # Automatic JSON parsing"},{"line_number":115,"context_line":"            self.assertEqual(body, {\"hi\": \"there\"})"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"        test_get_call()"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"    def test_get_retry_500(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_0754c153","line":116,"range":{"start_line":116,"start_character":0,"end_line":116,"end_character":0},"in_reply_to":"9fdfeff1_4b0c2f93","updated":"2019-02-04 22:40:32.000000000","message":"Sorry, missed it.","commit_id":"f73d9f59f4fbdee553844798bb80417678ae2604"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"eda5cd1225f86a93ecdb536ba9315eac942e2b2e","unresolved":false,"context_lines":[{"line_number":113,"context_line":"                **self.TEST_REQUEST_BASE)"},{"line_number":114,"context_line":"            # Automatic JSON parsing"},{"line_number":115,"context_line":"            self.assertEqual(body, {\"hi\": \"there\"})"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"        test_get_call()"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"    def test_get_retry_500(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_4b0c2f93","line":116,"range":{"start_line":116,"start_character":0,"end_line":116,"end_character":0},"in_reply_to":"9fdfeff1_774d693c","updated":"2019-02-04 22:35:31.000000000","message":"@Victoria: This too","commit_id":"f73d9f59f4fbdee553844798bb80417678ae2604"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"bfd3c07c1d27cc8e743d0cc30788d746e0b4f34a","unresolved":false,"context_lines":[{"line_number":229,"context_line":"                headers\u003dheaders,"},{"line_number":230,"context_line":"                data\u003d\u0027[1, 2, 3]\u0027,"},{"line_number":231,"context_line":"                **self.TEST_REQUEST_BASE)"},{"line_number":232,"context_line":"            self.assertIn(cl.base_url, endpoint_url)"},{"line_number":233,"context_line":""},{"line_number":234,"context_line":"        test_post_call()"}],"source_content_type":"text/x-python","patch_set":5,"id":"9fdfeff1_1d72cee4","line":232,"range":{"start_line":232,"start_character":12,"end_line":232,"end_character":52},"updated":"2019-02-05 01:55:04.000000000","message":"This proves that the base_url is a substring of the endpoint_url that you set, but doesn\u0027t test the changes you made to full extent.. I would at least do this:\n\n\n self.assertEqual(re.split(\u0027/v[0-9]+[\\.0-9]*/\u0027, endpoint_url)[0], cl.base_url)","commit_id":"a9bf190f94c642d961c9864b87f4e6dc0cc71021"}],"releasenotes/notes/bug-1814094-fix-_get_base_url-method-168e12292aeec8f1.yaml":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"bfd3c07c1d27cc8e743d0cc30788d746e0b4f34a","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    _get_base_url method makes assumptions on how the"},{"line_number":5,"context_line":"    base URL should look like and trims it up to the"},{"line_number":6,"context_line":"    host IP. This change modifies how the base endpoint"},{"line_number":7,"context_line":"    is processed so we get the correct values."}],"source_content_type":"text/x-yaml","patch_set":5,"id":"9fdfeff1_3d447274","line":7,"range":{"start_line":4,"start_character":4,"end_line":7,"end_character":46},"updated":"2019-02-05 01:55:04.000000000","message":"Release notes are read by end users and deployers who may not know/care about the internals of the code... i.e, private members like _get_base_url; Suggest re-framing this as:\n\n  `Launchpad bug 1814094 \u003cBUG-LINK\u003e`_ has been fixed and the client\n  now correctly parses the base URL from manila\u0027s endpoint url, accounting for\n  proxy URLs.","commit_id":"a9bf190f94c642d961c9864b87f4e6dc0cc71021"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"d2505bb5414dc14f6907b688094152297832129c","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    `Launchpad bug 1814094 https://bugs.launchpad.net/python-manilaclient/+bug/1814094`_"},{"line_number":5,"context_line":"    has been fixed and the client now correctly parses the base URL from manila\u0027s"},{"line_number":6,"context_line":"    endpoint url, accounting for proxy URLs."}],"source_content_type":"text/x-yaml","patch_set":7,"id":"9fdfeff1_d9ec4c2b","line":4,"range":{"start_line":4,"start_character":27,"end_line":4,"end_character":86},"updated":"2019-02-05 16:57:29.000000000","message":"format is: `Link text \u003chref\u003e`_","commit_id":"8cb9dba9da5ff0ef34d84ce67faed36e31a0b184"}]}
