)]}'
{"horizon/static/framework/framework.module.js":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"3cc45558b96ae683b573a38467a1a07b603c335d","unresolved":false,"context_lines":[{"line_number":77,"context_line":"    // Standard CORS middleware used in OpenStack services doesn\u0027t expect"},{"line_number":78,"context_line":"    // X-Requested-With header to be set for requests and rejects requests"},{"line_number":79,"context_line":"    // which have it. Since there is no reason to treat Horizon specially when"},{"line_number":80,"context_line":"    // dealing handling CORS requests, it\u0027s better for Horizon not to set this"},{"line_number":81,"context_line":"    // header when it sends CORS requests. Detect CORS request by presence of"},{"line_number":82,"context_line":"    // X-Auth-Token headers which normally should be provided because of"},{"line_number":83,"context_line":"    // Keystone authentication."}],"source_content_type":"text/javascript","patch_set":35,"id":"bacf61ea_0adbbb1c","line":80,"range":{"start_line":80,"start_character":7,"end_line":80,"end_character":14},"updated":"2016-08-02 22:37:58.000000000","message":"nit (not worth another patch over this): dealing / handling redundant","commit_id":"bfa4313965d903884308f6d3daee2d62ced956d9"}],"horizon/static/framework/util/http/http.js":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"46fcfbd2656a96858e440ffcb9759e9afd2da949","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"    var httpCall \u003d function (method, url, data, config) {"},{"line_number":31,"context_line":"      var backend \u003d $http;"},{"line_number":32,"context_line":"      var external \u003d pop(config, \u0027external\u0027);"},{"line_number":33,"context_line":"      if (!external) {"},{"line_number":34,"context_line":"        /* eslint-disable angular/window-service */"},{"line_number":35,"context_line":"        url \u003d $window.WEBROOT + url;"}],"source_content_type":"text/javascript","patch_set":16,"id":"3aaa91ec_86be02ac","line":32,"updated":"2016-06-29 23:14:08.000000000","message":"nit: Can you add a comment about why this is doing this?","commit_id":"5311cea86ec53c8de3a4a451cc7bc442d32cf02d"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"a8137f09cb30a59d5d72f0d6084d7e3549784802","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"    var httpCall \u003d function (method, url, data, config) {"},{"line_number":31,"context_line":"      var backend \u003d $http;"},{"line_number":32,"context_line":"      var external \u003d pop(config, \u0027external\u0027);"},{"line_number":33,"context_line":"      if (!external) {"},{"line_number":34,"context_line":"        /* eslint-disable angular/window-service */"},{"line_number":35,"context_line":"        url \u003d $window.WEBROOT + url;"}],"source_content_type":"text/javascript","patch_set":16,"id":"1aa78d24_73df193a","line":32,"in_reply_to":"3aaa91ec_86be02ac","updated":"2016-07-07 15:19:46.000000000","message":"Done","commit_id":"5311cea86ec53c8de3a4a451cc7bc442d32cf02d"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"46fcfbd2656a96858e440ffcb9759e9afd2da949","unresolved":false,"context_lines":[{"line_number":46,"context_line":"      config.url \u003d url;"},{"line_number":47,"context_line":"      if (angular.isDefined(data)) {"},{"line_number":48,"context_line":"        config.data \u003d data;"},{"line_number":49,"context_line":"      }"},{"line_number":50,"context_line":"      if (uploadService.isFile(config.data)) {"},{"line_number":51,"context_line":"        backend \u003d uploadService.http;"},{"line_number":52,"context_line":"      } else if (angular.isObject(config.data)) {"}],"source_content_type":"text/javascript","patch_set":16,"id":"3aaa91ec_26e46ede","line":49,"updated":"2016-06-29 23:14:08.000000000","message":"nit: add a whitespace line here.","commit_id":"5311cea86ec53c8de3a4a451cc7bc442d32cf02d"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"a8137f09cb30a59d5d72f0d6084d7e3549784802","unresolved":false,"context_lines":[{"line_number":46,"context_line":"      config.url \u003d url;"},{"line_number":47,"context_line":"      if (angular.isDefined(data)) {"},{"line_number":48,"context_line":"        config.data \u003d data;"},{"line_number":49,"context_line":"      }"},{"line_number":50,"context_line":"      if (uploadService.isFile(config.data)) {"},{"line_number":51,"context_line":"        backend \u003d uploadService.http;"},{"line_number":52,"context_line":"      } else if (angular.isObject(config.data)) {"}],"source_content_type":"text/javascript","patch_set":16,"id":"1aa78d24_13f175cd","line":49,"in_reply_to":"3aaa91ec_26e46ede","updated":"2016-07-07 15:19:46.000000000","message":"Done","commit_id":"5311cea86ec53c8de3a4a451cc7bc442d32cf02d"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"ba53b6901edb2f9f55f2335bcea48ff1f720f30b","unresolved":false,"context_lines":[{"line_number":86,"context_line":"    };"},{"line_number":87,"context_line":"  }"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"  function pop(obj, key) {"},{"line_number":90,"context_line":"    if (!angular.isObject(obj)) {"},{"line_number":91,"context_line":"      return;"},{"line_number":92,"context_line":"    }"},{"line_number":93,"context_line":"    var value \u003d obj[key];"},{"line_number":94,"context_line":"    delete obj[key];"},{"line_number":95,"context_line":"    return value"},{"line_number":96,"context_line":"  }"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"}());"}],"source_content_type":"text/javascript","patch_set":21,"id":"1aa78d24_355c3d4a","line":96,"range":{"start_line":89,"start_character":2,"end_line":96,"end_character":3},"updated":"2016-07-07 18:37:01.000000000","message":"I don\u0027t know what to do with this utility function in context of unit-tests :/. On the one hand, it\u0027s internal, so I don\u0027t want to expose it as the service property. On the other hand, it\u0027s accounted for in coverage report and not having unit-tests for it lowers coverage, which is bad, but to write unit-tests for it I have to expose it. What do you think would be the best approach to it?","commit_id":"1d395967c5667e180993a4d2823dd18b250273f3"}],"openstack_dashboard/api/glance.py":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"f6a7a3e757344df8ab246215e7f7b2351f431dca","unresolved":false,"context_lines":[{"line_number":251,"context_line":"        location \u003d kwargs.pop(\u0027location\u0027, None)"},{"line_number":252,"context_line":""},{"line_number":253,"context_line":"    image \u003d glanceclient(request).images.create(**kwargs)"},{"line_number":254,"context_line":"    if location is not None:"},{"line_number":255,"context_line":"        # TODO(tsufiev): to make this work, set /etc/glance/glance-api.conf"},{"line_number":256,"context_line":"        # parameter \u0027show_multiple_locations\u0027 to `true`"},{"line_number":257,"context_line":"        glanceclient(request).images.add_location(image.id, location, {})"}],"source_content_type":"text/x-python","patch_set":29,"id":"1aa78d24_39199423","line":254,"updated":"2016-07-14 19:21:53.000000000","message":"Why is this a TODO for you?","commit_id":"f9a62eb10cf6c2f20528734b9dc215258fe5a21f"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"93b6f7dc41af9a3cc378521c00ae389659dc3f26","unresolved":false,"context_lines":[{"line_number":251,"context_line":"        location \u003d kwargs.pop(\u0027location\u0027, None)"},{"line_number":252,"context_line":""},{"line_number":253,"context_line":"    image \u003d glanceclient(request).images.create(**kwargs)"},{"line_number":254,"context_line":"    if location is not None:"},{"line_number":255,"context_line":"        # TODO(tsufiev): to make this work, set /etc/glance/glance-api.conf"},{"line_number":256,"context_line":"        # parameter \u0027show_multiple_locations\u0027 to `true`"},{"line_number":257,"context_line":"        glanceclient(request).images.add_location(image.id, location, {})"}],"source_content_type":"text/x-python","patch_set":29,"id":"1aa78d24_46763c40","line":254,"in_reply_to":"1aa78d24_39199423","updated":"2016-07-14 19:28:01.000000000","message":"That\u0027s a piece of GlanceV2 patch that crept in here somehow, it doesn\u0027t belong here.","commit_id":"f9a62eb10cf6c2f20528734b9dc215258fe5a21f"}],"openstack_dashboard/api/rest/config.py":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"f6a7a3e757344df8ab246215e7f7b2351f431dca","unresolved":false,"context_lines":[{"line_number":41,"context_line":"    url_regex \u003d r\u0027settings/$\u0027"},{"line_number":42,"context_line":"    SPECIALS \u003d {"},{"line_number":43,"context_line":"        \u0027HORIZON_IMAGES_UPLOAD_MODE\u0027: api.glance.get_image_upload_mode()"},{"line_number":44,"context_line":"    }"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    @rest_utils.ajax()"},{"line_number":47,"context_line":"    def get(self, request):"}],"source_content_type":"text/x-python","patch_set":29,"id":"1aa78d24_d9c9707b","line":44,"updated":"2016-07-14 19:21:53.000000000","message":"Random comment. No action required. Interesting. Makes sense. I see why we need to do this... I think in a follow on perhaps we should just move all REST_API_REQUIRED_SETTINGS into here.\n\nhttps://github.com/openstack/horizon/blob/master/openstack_dashboard/local/local_settings.py.example#L731","commit_id":"f9a62eb10cf6c2f20528734b9dc215258fe5a21f"}],"openstack_dashboard/static/app/core/images/steps/create-image/create-image.html":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"46fcfbd2656a96858e440ffcb9759e9afd2da949","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    \u003cdiv class\u003d\"selected-source\"\u003e"},{"line_number":54,"context_line":"      \u003cdiv class\u003d\"row form-group\"\u003e"},{"line_number":55,"context_line":"        \u003cdiv class\u003d\"col-xs-6 col-sm-6\"\u003e"},{"line_number":56,"context_line":"          \u003cdiv class\u003d\"form-group\"\u003e"},{"line_number":57,"context_line":"            \u003clabel class\u003d\"control-label required\"\u003e"},{"line_number":58,"context_line":"              \u003ctranslate\u003eSource Type\u003c/translate\u003e"}],"source_content_type":"text/html","patch_set":16,"id":"3aaa91ec_063df2dc","line":55,"updated":"2016-06-29 23:14:08.000000000","message":"Primary concern is that since this requires CORS to be enabled on glance, we probably need to make this configurable of whether or not to show the selection box.  \n\nI think this could use the hz-if-settings directive:\n\nhttps://github.com/openstack/horizon/blob/master/openstack_dashboard/static/app/core/cloud-services/hz-if-settings.directive.js","commit_id":"5311cea86ec53c8de3a4a451cc7bc442d32cf02d"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"bec343856e69542976e28b389bf6ab44c67daf5f","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    \u003cdiv class\u003d\"selected-source\"\u003e"},{"line_number":54,"context_line":"      \u003cdiv class\u003d\"row form-group\"\u003e"},{"line_number":55,"context_line":"        \u003cdiv class\u003d\"col-xs-6 col-sm-6\"\u003e"},{"line_number":56,"context_line":"          \u003cdiv class\u003d\"form-group\"\u003e"},{"line_number":57,"context_line":"            \u003clabel class\u003d\"control-label required\"\u003e"},{"line_number":58,"context_line":"              \u003ctranslate\u003eSource Type\u003c/translate\u003e"}],"source_content_type":"text/html","patch_set":16,"id":"1aa78d24_4fc984ab","line":55,"in_reply_to":"1aa78d24_1b442c48","updated":"2016-07-07 15:20:34.000000000","message":"Please see the most recent patchset, where I implement 2 codepaths - one for legacy upload via NG Create Image, another for direct upload in the same wizard.","commit_id":"5311cea86ec53c8de3a4a451cc7bc442d32cf02d"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"e54f8267a3078dd77366010a06dd8758a298a7d0","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    \u003cdiv class\u003d\"selected-source\"\u003e"},{"line_number":54,"context_line":"      \u003cdiv class\u003d\"row form-group\"\u003e"},{"line_number":55,"context_line":"        \u003cdiv class\u003d\"col-xs-6 col-sm-6\"\u003e"},{"line_number":56,"context_line":"          \u003cdiv class\u003d\"form-group\"\u003e"},{"line_number":57,"context_line":"            \u003clabel class\u003d\"control-label required\"\u003e"},{"line_number":58,"context_line":"              \u003ctranslate\u003eSource Type\u003c/translate\u003e"}],"source_content_type":"text/html","patch_set":16,"id":"3aaa91ec_ef1dbd63","line":55,"in_reply_to":"3aaa91ec_063df2dc","updated":"2016-07-01 13:21:30.000000000","message":"That\u0027s a good idea.","commit_id":"5311cea86ec53c8de3a4a451cc7bc442d32cf02d"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"1aadafca8e08db6c280405dce37bfd55fa6b7313","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    \u003cdiv class\u003d\"selected-source\"\u003e"},{"line_number":54,"context_line":"      \u003cdiv class\u003d\"row form-group\"\u003e"},{"line_number":55,"context_line":"        \u003cdiv class\u003d\"col-xs-6 col-sm-6\"\u003e"},{"line_number":56,"context_line":"          \u003cdiv class\u003d\"form-group\"\u003e"},{"line_number":57,"context_line":"            \u003clabel class\u003d\"control-label required\"\u003e"},{"line_number":58,"context_line":"              \u003ctranslate\u003eSource Type\u003c/translate\u003e"}],"source_content_type":"text/html","patch_set":16,"id":"1aa78d24_1b442c48","line":55,"in_reply_to":"3aaa91ec_ef1dbd63","updated":"2016-07-06 12:17:07.000000000","message":"I have another idea, that might be even better. If you look at the Create Image legacy patch here https://review.openstack.org/#/c/230434/37/doc/source/topics/settings.rst you\u0027ll notice two settings that define image upload behavior: HORIZON_IMAGES_ALLOW_UPLOAD and HORIZON_IMAGES_DIRECT_UPLOAD. Here is the proposed logic for detecting how image upload should proceed:\n\n* check the value of HORIZON_IMAGES_DIRECT_UPLOAD, if it\u0027s enabled, then upload goes the CORS way\n* if it\u0027s not, check the value of HORIZON_IMAGES_ALLOW_UPLOAD and if it\u0027s enabled, the upload is sent directly to Horizon web-server, which proxies it to Glance client -\u003e Glance server (that\u0027s how it\u0027s done currently in legacy Create Image form)\n* if it\u0027s not, File Upload field won\u0027t appear in Create Image wizard.\n\nOne possible gotcha here is the proposed shift of HORIZON_IMAGES_ALLOW_UPLOAD meaning, which defined before if it was possible at all to upload images using Horizon. Once I implement the proposed change it will only govern the possibility of uploading an image using \u0027the old way\u0027, while \u0027the new way\u0027 will be governed using it\u0027s own setting. Given that HORIZON_IMAGES_ALLOW_UPLOAD was introduced to avoid overflowing disk space on Horizon web server file system, I think that\u0027s a reasonable shift.\n\nWhat do you think of it, any suggestions regarding these 2 boolean flags?","commit_id":"5311cea86ec53c8de3a4a451cc7bc442d32cf02d"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"46fcfbd2656a96858e440ffcb9759e9afd2da949","unresolved":false,"context_lines":[{"line_number":79,"context_line":"              \u003cbutton class\u003d\"btn btn-primary\" ng-model\u003d\"image_file\""},{"line_number":80,"context_line":"                      ngf-select\u003d\"ctrl.prepareUpload(image_file)\""},{"line_number":81,"context_line":"                      name\u003d\"image_file\" ng-required\u003d\"true\""},{"line_number":82,"context_line":"                      id\u003d\"imageForm-image_file\"\u003eBrowse...\u003c/button\u003e"},{"line_number":83,"context_line":"            \u003c/span\u003e"},{"line_number":84,"context_line":"              \u003cinput type\u003d\"text\" class\u003d\"form-control\" readonly ng-model\u003d\"image_file.name\"\u003e"},{"line_number":85,"context_line":"            \u003c/div\u003e"}],"source_content_type":"text/html","patch_set":16,"id":"3aaa91ec_a6905eee","line":82,"range":{"start_line":82,"start_character":48,"end_line":82,"end_character":57},"updated":"2016-06-29 23:14:08.000000000","message":"Not translated.  And is the elispsis really translatable?","commit_id":"5311cea86ec53c8de3a4a451cc7bc442d32cf02d"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"a8137f09cb30a59d5d72f0d6084d7e3549784802","unresolved":false,"context_lines":[{"line_number":79,"context_line":"              \u003cbutton class\u003d\"btn btn-primary\" ng-model\u003d\"image_file\""},{"line_number":80,"context_line":"                      ngf-select\u003d\"ctrl.prepareUpload(image_file)\""},{"line_number":81,"context_line":"                      name\u003d\"image_file\" ng-required\u003d\"true\""},{"line_number":82,"context_line":"                      id\u003d\"imageForm-image_file\"\u003eBrowse...\u003c/button\u003e"},{"line_number":83,"context_line":"            \u003c/span\u003e"},{"line_number":84,"context_line":"              \u003cinput type\u003d\"text\" class\u003d\"form-control\" readonly ng-model\u003d\"image_file.name\"\u003e"},{"line_number":85,"context_line":"            \u003c/div\u003e"}],"source_content_type":"text/html","patch_set":16,"id":"1aa78d24_33a751be","line":82,"range":{"start_line":82,"start_character":48,"end_line":82,"end_character":57},"in_reply_to":"3aaa91ec_2f3fc5b6","updated":"2016-07-07 15:19:46.000000000","message":"Done","commit_id":"5311cea86ec53c8de3a4a451cc7bc442d32cf02d"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"e54f8267a3078dd77366010a06dd8758a298a7d0","unresolved":false,"context_lines":[{"line_number":79,"context_line":"              \u003cbutton class\u003d\"btn btn-primary\" ng-model\u003d\"image_file\""},{"line_number":80,"context_line":"                      ngf-select\u003d\"ctrl.prepareUpload(image_file)\""},{"line_number":81,"context_line":"                      name\u003d\"image_file\" ng-required\u003d\"true\""},{"line_number":82,"context_line":"                      id\u003d\"imageForm-image_file\"\u003eBrowse...\u003c/button\u003e"},{"line_number":83,"context_line":"            \u003c/span\u003e"},{"line_number":84,"context_line":"              \u003cinput type\u003d\"text\" class\u003d\"form-control\" readonly ng-model\u003d\"image_file.name\"\u003e"},{"line_number":85,"context_line":"            \u003c/div\u003e"}],"source_content_type":"text/html","patch_set":16,"id":"3aaa91ec_2f3fc5b6","line":82,"range":{"start_line":82,"start_character":48,"end_line":82,"end_character":57},"in_reply_to":"3aaa91ec_a6905eee","updated":"2016-07-01 13:21:30.000000000","message":"The notion of an ellipsis is translatable, so we could put \u0027translate\u0027 in the button.","commit_id":"5311cea86ec53c8de3a4a451cc7bc442d32cf02d"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"46fcfbd2656a96858e440ffcb9759e9afd2da949","unresolved":false,"context_lines":[{"line_number":85,"context_line":"            \u003c/div\u003e"},{"line_number":86,"context_line":"            \u003cp class\u003d\"help-block alert alert-danger\""},{"line_number":87,"context_line":"               ng-show\u003d\"imageForm.image_file.$invalid \u0026\u0026 imageForm.image_file.$dirty\"\u003e"},{"line_number":88,"context_line":"              \u003ctranslate\u003eA local file should be selected\u003c/translate\u003e"},{"line_number":89,"context_line":"            \u003c/p\u003e"},{"line_number":90,"context_line":"          \u003c/div\u003e"},{"line_number":91,"context_line":"        \u003c/div\u003e"}],"source_content_type":"text/html","patch_set":16,"id":"3aaa91ec_26b3ce9b","line":88,"range":{"start_line":88,"start_character":55,"end_line":88,"end_character":57},"updated":"2016-06-29 23:14:08.000000000","message":"add a period","commit_id":"5311cea86ec53c8de3a4a451cc7bc442d32cf02d"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"a8137f09cb30a59d5d72f0d6084d7e3549784802","unresolved":false,"context_lines":[{"line_number":85,"context_line":"            \u003c/div\u003e"},{"line_number":86,"context_line":"            \u003cp class\u003d\"help-block alert alert-danger\""},{"line_number":87,"context_line":"               ng-show\u003d\"imageForm.image_file.$invalid \u0026\u0026 imageForm.image_file.$dirty\"\u003e"},{"line_number":88,"context_line":"              \u003ctranslate\u003eA local file should be selected\u003c/translate\u003e"},{"line_number":89,"context_line":"            \u003c/p\u003e"},{"line_number":90,"context_line":"          \u003c/div\u003e"},{"line_number":91,"context_line":"        \u003c/div\u003e"}],"source_content_type":"text/html","patch_set":16,"id":"1aa78d24_73ad599a","line":88,"range":{"start_line":88,"start_character":55,"end_line":88,"end_character":57},"in_reply_to":"3aaa91ec_26b3ce9b","updated":"2016-07-07 15:19:46.000000000","message":"Done","commit_id":"5311cea86ec53c8de3a4a451cc7bc442d32cf02d"}]}
