)]}'
{"horizon/static/angular/widget.module.js":[{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"413d0a22d7a2d987a2c7b5565fb3c983a8d47d68","unresolved":false,"context_lines":[{"line_number":1,"context_line":"(function () {"},{"line_number":2,"context_line":" \u0027use strict\u0027;"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"  angular.module(\u0027hz.widgets\u0027, ["}],"source_content_type":"text/javascript","patch_set":1,"id":"1aca2d91_42787af2","line":1,"updated":"2015-05-07 18:41:41.000000000","message":"needs /* global STATIC_URL */","commit_id":"fc1b5ff8704478224829f90ada84b2836563b8a8"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"a073a4dda3e2961b4b4469d5342bd89af2ee170b","unresolved":false,"context_lines":[{"line_number":1,"context_line":"(function () {"},{"line_number":2,"context_line":" \u0027use strict\u0027;"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"  angular.module(\u0027hz.widgets\u0027, ["}],"source_content_type":"text/javascript","patch_set":1,"id":"1aca2d91_d6156b49","line":1,"in_reply_to":"1aca2d91_42787af2","updated":"2015-05-07 19:04:30.000000000","message":"Yup, thanks!","commit_id":"fc1b5ff8704478224829f90ada84b2836563b8a8"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"413d0a22d7a2d987a2c7b5565fb3c983a8d47d68","unresolved":false,"context_lines":[{"line_number":18,"context_line":"    \u0027hz.framework.validators\u0027,"},{"line_number":19,"context_line":"    \u0027hz.widget.toast\u0027"},{"line_number":20,"context_line":"  ])"},{"line_number":21,"context_line":"    .constant(\u0027basePath\u0027, STATIC_URL + \u0027angular/\u0027);"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"})();"}],"source_content_type":"text/javascript","patch_set":1,"id":"1aca2d91_c20c8a96","line":21,"updated":"2015-05-07 18:41:41.000000000","message":"The only other javascript that uses the STATIC_URL is horizon.tables.js\nThe rest of it is embedded into Django templates. Not sure what is the best approach here, does it make sense to move this constant to _conf.html and hence at the hz module level?","commit_id":"fc1b5ff8704478224829f90ada84b2836563b8a8"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"a578a5086752edc20ccfbe7c3ad711f0e604c23a","unresolved":false,"context_lines":[{"line_number":34,"context_line":"    \u0027hz.framework.validators\u0027,"},{"line_number":35,"context_line":"    \u0027hz.widget.toast\u0027"},{"line_number":36,"context_line":"  ])"},{"line_number":37,"context_line":"    .constant(\u0027basePath\u0027, (window[\u0027STATIC_URL\u0027] || \u0027/static/\u0027) + \u0027angular/\u0027);"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"})();"}],"source_content_type":"text/javascript","patch_set":5,"id":"1aca2d91_2e22fb00","line":37,"updated":"2015-05-08 01:54:30.000000000","message":"looks like jshint does not like this line. it should either be STATIC_URL or window.STATIC_URL. if you\u0027re using window, then no need for global above.","commit_id":"e4dcb3aec6ed3dceaed5534bdf3d59bd03a29367"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"bc83e3c774467eb973c2eb8fb2f1b8940a7f1e24","unresolved":false,"context_lines":[{"line_number":34,"context_line":"    \u0027hz.framework.validators\u0027,"},{"line_number":35,"context_line":"    \u0027hz.widget.toast\u0027"},{"line_number":36,"context_line":"  ])"},{"line_number":37,"context_line":"    .constant(\u0027basePath\u0027, (window[\u0027STATIC_URL\u0027] || \u0027/static/\u0027) + \u0027angular/\u0027);"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"})();"}],"source_content_type":"text/javascript","patch_set":5,"id":"1aca2d91_840679cc","line":37,"in_reply_to":"1aca2d91_2e22fb00","updated":"2015-05-08 17:14:46.000000000","message":"I had problems getting the tests to respect STATIC_URL on its own, but worked with window[\u0027STATIC_URL\u0027].  I thought I\u0027d got jshint to work, but perhaps I need to rebase?  I\u0027m on vacation technically until Monday...I\u0027ll look into it more then...thanks for the review!","commit_id":"e4dcb3aec6ed3dceaed5534bdf3d59bd03a29367"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"0b197c559859da4f113d445147c7363d106e1579","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    \u0027hz.framework.validators\u0027,"},{"line_number":34,"context_line":"    \u0027hz.widget.toast\u0027"},{"line_number":35,"context_line":"  ])"},{"line_number":36,"context_line":"    .constant(\u0027basePath\u0027, (window.STATIC_URL || \u0027/static/\u0027) + \u0027angular/\u0027);"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"})();"}],"source_content_type":"text/javascript","patch_set":9,"id":"9a0c5dc1_809b43c9","line":36,"updated":"2015-05-12 20:21:17.000000000","message":"Should this much be done in _scripts.html?  I mean, should _scripts.html set a default if it isn\u0027t otherwise set?","commit_id":"f348b0fabefdd52fafa7a79c38a178edf37c52b4"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"bad0aee5e48a34edde5190ddfa31e7f36008bd37","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    \u0027hz.framework.validators\u0027,"},{"line_number":34,"context_line":"    \u0027hz.widget.toast\u0027"},{"line_number":35,"context_line":"  ])"},{"line_number":36,"context_line":"    .constant(\u0027basePath\u0027, (window.STATIC_URL || \u0027/static/\u0027) + \u0027angular/\u0027);"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"})();"}],"source_content_type":"text/javascript","patch_set":9,"id":"9a0c5dc1_a0ee47ea","line":36,"in_reply_to":"9a0c5dc1_809b43c9","updated":"2015-05-12 20:27:11.000000000","message":"From a code safety standpoint, I\u0027d put this wherever we need; but this should probably all be accommodated in a service where possible--which sadly does not include .constant declarations.  In fact, I think basePath should be a service and NOT a constant, since it\u0027s not really a constant and cannot have logic injected as a .constant.","commit_id":"f348b0fabefdd52fafa7a79c38a178edf37c52b4"}],"horizon/static/framework/framework.module.js":[{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"4917e10f2d4d9568b0ac92a8550d822adf557d48","unresolved":false,"context_lines":[{"line_number":7,"context_line":"      \u0027horizon.framework.util\u0027,"},{"line_number":8,"context_line":"      \u0027horizon.framework.widgets\u0027"},{"line_number":9,"context_line":"    ])"},{"line_number":10,"context_line":"    .constant(\u0027horizon.framework.basePath\u0027, (window.WEBROOT || \u0027\u0027) + \u0027/static/framework/\u0027)"},{"line_number":11,"context_line":"    .config(["},{"line_number":12,"context_line":"      \u0027$interpolateProvider\u0027,"},{"line_number":13,"context_line":"      \u0027$httpProvider\u0027,"}],"source_content_type":"text/javascript","patch_set":39,"id":"ba3cc151_f03ab7cc","line":10,"updated":"2015-07-07 20:35:43.000000000","message":"Just WEBROOT + \u0027static/framework/, would brings me to the next question, why do we need WEBROOT? why not use STATIC_URL?","commit_id":"61f83263ddb9dc8eeb16b3893f37888ea370ee4f"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"6bf59608af2a81d43bbe41f9e463d7ffdd178f78","unresolved":false,"context_lines":[{"line_number":7,"context_line":"      \u0027horizon.framework.util\u0027,"},{"line_number":8,"context_line":"      \u0027horizon.framework.widgets\u0027"},{"line_number":9,"context_line":"    ])"},{"line_number":10,"context_line":"    .constant(\u0027horizon.framework.basePath\u0027, (window.WEBROOT || \u0027\u0027) + \u0027/static/framework/\u0027)"},{"line_number":11,"context_line":"    .config(["},{"line_number":12,"context_line":"      \u0027$interpolateProvider\u0027,"},{"line_number":13,"context_line":"      \u0027$httpProvider\u0027,"}],"source_content_type":"text/javascript","patch_set":39,"id":"ba3cc151_f0963793","line":10,"in_reply_to":"ba3cc151_f03ab7cc","updated":"2015-07-07 21:37:19.000000000","message":"WEBROOT is much more useful than STATIC_URL because it can be used to access apis and other resources.","commit_id":"61f83263ddb9dc8eeb16b3893f37888ea370ee4f"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"ec148df361aae362dc9846e76d85fa4219ce1335","unresolved":false,"context_lines":[{"line_number":7,"context_line":"      \u0027horizon.framework.util\u0027,"},{"line_number":8,"context_line":"      \u0027horizon.framework.widgets\u0027"},{"line_number":9,"context_line":"    ])"},{"line_number":10,"context_line":"    .constant(\u0027horizon.framework.basePath\u0027, (window.WEBROOT || \u0027\u0027) + \u0027/static/framework/\u0027)"},{"line_number":11,"context_line":"    .config(["},{"line_number":12,"context_line":"      \u0027$interpolateProvider\u0027,"},{"line_number":13,"context_line":"      \u0027$httpProvider\u0027,"}],"source_content_type":"text/javascript","patch_set":39,"id":"ba3cc151_73dbe37c","line":10,"in_reply_to":"ba3cc151_f0963793","updated":"2015-07-08 16:09:19.000000000","message":"Using webroot makes sense for that Matt.\n\nI wouldn\u0027t be opposed to using STATIC_ROOT in other places like here window.STATIC_URL + \u0027framework/\u0027\n\nWhen I talked with Sean about this, he disagreed that we should have both these var and should only have WEBROOT.  But I don\u0027t recall the reason.","commit_id":"61f83263ddb9dc8eeb16b3893f37888ea370ee4f"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"0fc22985f9fecf607c57934f046b3f89ac15f0a6","unresolved":false,"context_lines":[{"line_number":8,"context_line":"      \u0027horizon.framework.widgets\u0027"},{"line_number":9,"context_line":"    ])"},{"line_number":10,"context_line":"    .constant(\u0027horizon.framework.basePath\u0027,"},{"line_number":11,"context_line":"        (window.STATIC_URL || \u0027/static/\u0027) + \u0027framework/\u0027)"},{"line_number":12,"context_line":"    .config(frameworkConfiguration);"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"  frameworkConfiguration.$inject \u003d ["}],"source_content_type":"text/javascript","patch_set":47,"id":"9a41bdd9_0be4dc38","line":11,"updated":"2015-07-14 06:52:29.000000000","message":"we don\u0027t need the or statements Sean, this comes directly from the server side. if it doesn\u0027t work there, we have more serious problems....","commit_id":"1fa3988938cf146cb67bd4bc03eb0782b6aa9737"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"0c3b0b2f99753362905e3eb92fbb38a4824ee304","unresolved":false,"context_lines":[{"line_number":9,"context_line":"    ])"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"    /* eslint-disable angular/ng_window_service */"},{"line_number":12,"context_line":"    .constant(\u0027horizon.framework.basePath\u0027, window.STATIC_URL + \u0027framework/\u0027)"},{"line_number":13,"context_line":"    /* eslint-enable angular/ng_window_service */"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"    .config(frameworkConfiguration);"}],"source_content_type":"text/javascript","patch_set":54,"id":"9a41bdd9_6e62a8af","line":12,"updated":"2015-07-17 00:41:27.000000000","message":"I found a better way to set constants. You can access STATIC_URL via the $windowProvider. Heres the code:\n\n  .config(function($provide, $windowProvider) {\n    var path \u003d $windowProvider.$get().STATIC_URL + \u0027framework/\u0027;\n    $provide.constant(\u0027\u0027horizon.framework.basePath\u0027\u0027, path);\n  });\n\nAlternatively, you can have an independent module to store constants (set in _conf much like hzConfig), this way you won\u0027t need to populate the global space at all. Then when you need to reference the STATIC_URL, you can do the following:\n\n  _conf.html\n  --------------\n  .module(\u0027hz.contants\u0027, []).\n  .constant(\u0027static_url\u0027, \u0027{{ STATIC_URL }}\u0027);\n\n  framework.module.js\n  ----------------------------\n  .module(\u0027horizon.framework\u0027, [.... \u0027hz.constants\u0027])\n  .config(function($provide, $injector) {\n    var path \u003d $injector.get(\u0027static_url\u0027) + \u0027framework/\u0027;\n    $provide.constant(\u0027\u0027horizon.framework.basePath\u0027\u0027, path);\n  });","commit_id":"ab1e652101cdf55b7d4f75a6faa26146252f96f6"}],"horizon/static/framework/util/http/http.js":[{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"b2078c5bf43afafdc1f8b08ca34e1d5cf5888cdb","unresolved":false,"context_lines":[{"line_number":26,"context_line":"  function ApiService($http) {"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    var httpCall \u003d function (method, url, data, config) {"},{"line_number":29,"context_line":"      url \u003d (window.WEBROOT || \u0027\u0027) + url;"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"      if (angular.isUndefined(config)) {"},{"line_number":32,"context_line":"        config \u003d {};"}],"source_content_type":"text/javascript","patch_set":41,"id":"ba3cc151_a941a565","line":29,"updated":"2015-07-10 08:03:58.000000000","message":"need to verify that api actually needs webroot, isn\u0027t it just relative? test it...","commit_id":"d08357c3ec57888bab297a9fe6fffc2e7aa946df"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"0f6d11ef5a50cee32b98612996ead39b00fa150c","unresolved":false,"context_lines":[{"line_number":26,"context_line":"  function ApiService($http) {"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    var httpCall \u003d function (method, url, data, config) {"},{"line_number":29,"context_line":"      url \u003d (window.WEBROOT || \u0027\u0027) + url;"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"      if (angular.isUndefined(config)) {"},{"line_number":32,"context_line":"        config \u003d {};"}],"source_content_type":"text/javascript","patch_set":41,"id":"ba3cc151_0897523b","line":29,"in_reply_to":"ba3cc151_a941a565","updated":"2015-07-10 13:46:17.000000000","message":"Follow it through, \"the proof is in the pudding\" as they say!  I have tested this, extensively...  :)","commit_id":"d08357c3ec57888bab297a9fe6fffc2e7aa946df"}],"horizon/static/framework/util/util.module.js":[{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"0bcb6bf1c537c68218bc6b9658c4d9fb75e26947","unresolved":false,"context_lines":[{"line_number":11,"context_line":"    \u0027horizon.framework.util.validators\u0027"},{"line_number":12,"context_line":"  ])"},{"line_number":13,"context_line":"    .constant(\u0027horizon.framework.util.basePath\u0027,"},{"line_number":14,"context_line":"        window.STATIC_URL+ \u0027framework/util/\u0027);"},{"line_number":15,"context_line":"})();"}],"source_content_type":"text/javascript","patch_set":49,"id":"9a41bdd9_e4c66667","line":14,"updated":"2015-07-14 18:41:04.000000000","message":"nit, spacing around +","commit_id":"5cc3d112e58e98c93f87e276ba723b762b75963e"}],"horizon/static/horizon/js/angular/services/hz.api.service.js":[{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"413d0a22d7a2d987a2c7b5565fb3c983a8d47d68","unresolved":false,"context_lines":[{"line_number":24,"context_line":"      }"},{"line_number":25,"context_line":"      // url and method are always provided"},{"line_number":26,"context_line":"      config.method \u003d method;"},{"line_number":27,"context_line":"      config.url \u003d basePath.replace(/\\/static\\/angular\\/$/, \u0027\u0027) + url;"},{"line_number":28,"context_line":"      if (angular.isDefined(data)) {"},{"line_number":29,"context_line":"        config.data \u003d data;"},{"line_number":30,"context_line":"      }"}],"source_content_type":"text/javascript","patch_set":1,"id":"1aca2d91_622136b4","line":27,"updated":"2015-05-07 18:41:41.000000000","message":"it\u0027s not clear to me why we are doing this. The various API services that uses this pass in a plain url \u0027/api/something/something\u0027 so not sure why this is needed?","commit_id":"fc1b5ff8704478224829f90ada84b2836563b8a8"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"a073a4dda3e2961b4b4469d5342bd89af2ee170b","unresolved":false,"context_lines":[{"line_number":24,"context_line":"      }"},{"line_number":25,"context_line":"      // url and method are always provided"},{"line_number":26,"context_line":"      config.method \u003d method;"},{"line_number":27,"context_line":"      config.url \u003d basePath.replace(/\\/static\\/angular\\/$/, \u0027\u0027) + url;"},{"line_number":28,"context_line":"      if (angular.isDefined(data)) {"},{"line_number":29,"context_line":"        config.data \u003d data;"},{"line_number":30,"context_line":"      }"}],"source_content_type":"text/javascript","patch_set":1,"id":"1aca2d91_7630d701","line":27,"in_reply_to":"1aca2d91_622136b4","updated":"2015-05-07 19:04:30.000000000","message":"I agree, it may not be, although there is a question as to whether we should also map the api service under the webroot as well or make it configurable.","commit_id":"fc1b5ff8704478224829f90ada84b2836563b8a8"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"0b197c559859da4f113d445147c7363d106e1579","unresolved":false,"context_lines":[{"line_number":24,"context_line":"      }"},{"line_number":25,"context_line":"      // url and method are always provided"},{"line_number":26,"context_line":"      config.method \u003d method;"},{"line_number":27,"context_line":"      config.url \u003d ((window.STATIC_URL \u0026\u0026 window.STATIC_URL.replace(/\\/static\\/$/, \u0027\u0027)) || \u0027\u0027) + url;"},{"line_number":28,"context_line":"      if (angular.isDefined(data)) {"},{"line_number":29,"context_line":"        config.data \u003d data;"},{"line_number":30,"context_line":"      }"}],"source_content_type":"text/javascript","patch_set":9,"id":"9a0c5dc1_22e7ffe5","line":27,"updated":"2015-05-12 20:21:17.000000000","message":"nit: can you line wrap this?  makes it ugly in gerrit.\n\nThe service makes some sense to me. Let\u0027s try to not do copy paste where possible.","commit_id":"f348b0fabefdd52fafa7a79c38a178edf37c52b4"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"bad0aee5e48a34edde5190ddfa31e7f36008bd37","unresolved":false,"context_lines":[{"line_number":24,"context_line":"      }"},{"line_number":25,"context_line":"      // url and method are always provided"},{"line_number":26,"context_line":"      config.method \u003d method;"},{"line_number":27,"context_line":"      config.url \u003d ((window.STATIC_URL \u0026\u0026 window.STATIC_URL.replace(/\\/static\\/$/, \u0027\u0027)) || \u0027\u0027) + url;"},{"line_number":28,"context_line":"      if (angular.isDefined(data)) {"},{"line_number":29,"context_line":"        config.data \u003d data;"},{"line_number":30,"context_line":"      }"}],"source_content_type":"text/javascript","patch_set":9,"id":"9a0c5dc1_40b42bf1","line":27,"in_reply_to":"9a0c5dc1_22e7ffe5","updated":"2015-05-12 20:27:11.000000000","message":"I\u0027ll implement the service.","commit_id":"f348b0fabefdd52fafa7a79c38a178edf37c52b4"}],"horizon/templates/horizon/jasmine/jasmine.html":[{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"852ed5fdb819174b4617c72b43bf56fcfe73ac04","unresolved":false,"context_lines":[{"line_number":8,"context_line":"  \u003cscript\u003e"},{"line_number":9,"context_line":"    window.STATIC_URL \u003d \u0027/static/\u0027;"},{"line_number":10,"context_line":"    window.WEBROOT \u003d \u0027/\u0027;"},{"line_number":11,"context_line":"  \u003c/script\u003e"},{"line_number":12,"context_line":"  \u003cscript src\u003d\"{% url \u0027horizon:jsi18n\u0027 \u0027horizon\u0027 %}\"\u003e\u003c/script\u003e"},{"line_number":13,"context_line":"  \u003cscript src\u003d\"{{ STATIC_URL }}horizon/lib/jasmine/jasmine.js\"\u003e\u003c/script\u003e"},{"line_number":14,"context_line":"  \u003cscript src\u003d\"{{ STATIC_URL }}horizon/lib/jasmine/jasmine-html.js\"\u003e\u003c/script\u003e"}],"source_content_type":"text/html","patch_set":51,"id":"9a41bdd9_8dfc5673","line":11,"updated":"2015-07-14 21:56:23.000000000","message":"I know this is tests, but this will also get packaged and deployed - right?\n\ntqtran - if you used collectstatic, you could isolate test files like this one.   just saying ;)","commit_id":"60031ebf2c902a18764e967649783154ac218ada"}],"openstack_dashboard/context_processors.py":[{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"0fc22985f9fecf607c57934f046b3f89ac15f0a6","unresolved":false,"context_lines":[{"line_number":54,"context_line":"    context[\u0027regions\u0027] \u003d regions"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    # Adding webroot access"},{"line_number":57,"context_line":"    context[\u0027WEBROOT\u0027] \u003d getattr(settings, \"WEBROOT\", \"/\")"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    return context"}],"source_content_type":"text/x-python","patch_set":47,"id":"9a41bdd9_6bcb28a6","line":57,"updated":"2015-07-14 06:52:29.000000000","message":"WEBROOT and STATIC_URL already have default values, no need for the || on the JS side.","commit_id":"1fa3988938cf146cb67bd4bc03eb0782b6aa9737"}],"openstack_dashboard/dashboards/identity/static/dashboard/identity/users/table/table.controller.spec.js":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"588dd8add719ccdc1a40d546d8f4fdd177c5d8a9","unresolved":false,"context_lines":[{"line_number":44,"context_line":"    var toastService;"},{"line_number":45,"context_line":"    var policyAPI;"},{"line_number":46,"context_line":"    var keystoneAPI;"},{"line_number":47,"context_line":"    var static_url;"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    ///////////////////////"},{"line_number":50,"context_line":""}],"source_content_type":"text/javascript","patch_set":56,"id":"3a50d1a3_369d6f59","line":47,"updated":"2015-07-21 21:07:32.000000000","message":"ESlint error: Camel Case","commit_id":"178038b60a674b7b0a2d77b003ddd4b75a12de71"},{"author":{"_account_id":13805,"name":"Shaoquan Chen","email":"sean.chen2@hp.com","username":"SeanChen"},"change_message_id":"502c6740e7f1bf9a8d1b2b5bedbadf7060bf6088","unresolved":false,"context_lines":[{"line_number":44,"context_line":"    var toastService;"},{"line_number":45,"context_line":"    var policyAPI;"},{"line_number":46,"context_line":"    var keystoneAPI;"},{"line_number":47,"context_line":"    var static_url;"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    ///////////////////////"},{"line_number":50,"context_line":""}],"source_content_type":"text/javascript","patch_set":56,"id":"3a50d1a3_0cb2a706","line":47,"in_reply_to":"3a50d1a3_369d6f59","updated":"2015-07-21 21:33:38.000000000","message":"Done","commit_id":"178038b60a674b7b0a2d77b003ddd4b75a12de71"}],"openstack_dashboard/dashboards/project/instances/tables.py":[{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"852ed5fdb819174b4617c72b43bf56fcfe73ac04","unresolved":false,"context_lines":[{"line_number":351,"context_line":"    name \u003d \"launch-ng\""},{"line_number":352,"context_line":"    url \u003d \"horizon:project:instances:index\""},{"line_number":353,"context_line":"    ajax \u003d False"},{"line_number":354,"context_line":"    classes \u003d (\"btn-launch\")"},{"line_number":355,"context_line":""},{"line_number":356,"context_line":"    def get_default_attrs(self):"},{"line_number":357,"context_line":"        url \u003d urlresolvers.reverse(self.url)"}],"source_content_type":"text/x-python","patch_set":51,"id":"9a41bdd9_0d1fe6b7","line":354,"updated":"2015-07-14 21:56:23.000000000","message":"stuff like this could/should be worked into a base class or mixin so that each implementation of ng stuff would not need as much boilerplate.","commit_id":"60031ebf2c902a18764e967649783154ac218ada"}],"openstack_dashboard/static/dashboard/dashboard.module.js":[{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"14e92a1c427e6de90f845f49a5c1d3ef4aecee47","unresolved":false,"context_lines":[{"line_number":8,"context_line":"  ])"},{"line_number":9,"context_line":""},{"line_number":10,"context_line":"    .constant(\u0027dashboardBasePath\u0027,  (window.WEBROOT || \u0027\u0027) + \u0027/static/dashboard/\u0027);"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"})();"}],"source_content_type":"text/javascript","patch_set":41,"id":"ba3cc151_45e69cb1","line":11,"updated":"2015-07-10 15:35:02.000000000","message":"this is not the case necessarily.  older horizon puppet modules would place static outside of the horizon folder.  so users might have:\n/dashboard\n/static\n\netc.","commit_id":"d08357c3ec57888bab297a9fe6fffc2e7aa946df"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"259aa63e50e9075f0060f6080a7b87dd7926e065","unresolved":false,"context_lines":[{"line_number":8,"context_line":"  ])"},{"line_number":9,"context_line":""},{"line_number":10,"context_line":"    .constant(\u0027dashboardBasePath\u0027,  (window.WEBROOT || \u0027\u0027) + \u0027/static/dashboard/\u0027);"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"})();"}],"source_content_type":"text/javascript","patch_set":41,"id":"9a41bdd9_23f7adf6","line":11,"in_reply_to":"9a41bdd9_2c647f20","updated":"2015-07-13 14:34:23.000000000","message":"To be even more clear, those are URL paths I\u0027m demonstrating above.","commit_id":"d08357c3ec57888bab297a9fe6fffc2e7aa946df"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"6b45f0368ce9d7bb956426b9f2f8aca3ea4b2750","unresolved":false,"context_lines":[{"line_number":8,"context_line":"  ])"},{"line_number":9,"context_line":""},{"line_number":10,"context_line":"    .constant(\u0027dashboardBasePath\u0027,  (window.WEBROOT || \u0027\u0027) + \u0027/static/dashboard/\u0027);"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"})();"}],"source_content_type":"text/javascript","patch_set":41,"id":"9a41bdd9_2c647f20","line":11,"in_reply_to":"ba3cc151_45e69cb1","updated":"2015-07-13 14:10:49.000000000","message":"Eric, help me out...what do you mean \"outside the horizon folder...?\"  This path has nothing to do with the location of the static files on the filesystem, simply the path used by the browser.  To be clear, do you mean that instead of:\n\n(app as WEBROOT):\n- /app/api/stuff\n- /app/static/stuff\n\nWe\u0027d potentially have:\n- /app/somethingelse/api/stuff\n- /app/static/stuff\n\nEssentially, that /static and /everythingelse don\u0027t share the same root?","commit_id":"d08357c3ec57888bab297a9fe6fffc2e7aa946df"}],"openstack_dashboard/static/dashboard/dashboard.module.spec.js":[{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"14e92a1c427e6de90f845f49a5c1d3ef4aecee47","unresolved":false,"context_lines":[{"line_number":35,"context_line":"    });"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    it(\u0027should equal to window.WEBROOT + \"/static/dashboard/\"\u0027, function () {"},{"line_number":38,"context_line":"      expect(dashboardBasePath).toEqual((window.WEBROOT || \u0027\u0027) + \u0027/static/dashboard/\u0027);"},{"line_number":39,"context_line":"    });"},{"line_number":40,"context_line":"  });"},{"line_number":41,"context_line":""}],"source_content_type":"text/javascript","patch_set":41,"id":"ba3cc151_85db4421","line":38,"updated":"2015-07-10 15:35:02.000000000","message":"this is not really the case, I think.\n\n(same comment as before)","commit_id":"d08357c3ec57888bab297a9fe6fffc2e7aa946df"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"588dd8add719ccdc1a40d546d8f4fdd177c5d8a9","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":"  describe(\u0027hz.dashboard:constant:dashboardBasePath\u0027, function () {"},{"line_number":26,"context_line":"    var dashboardBasePath;"},{"line_number":27,"context_line":"    var static_url;"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    beforeEach(module(\u0027hz.dashboard\u0027));"},{"line_number":30,"context_line":"    beforeEach(inject(function ($injector) {"}],"source_content_type":"text/javascript","patch_set":56,"id":"3a50d1a3_16839305","line":27,"updated":"2015-07-21 21:07:32.000000000","message":"ESlint error: Camel Case\n\nEslint Error: one_var","commit_id":"178038b60a674b7b0a2d77b003ddd4b75a12de71"},{"author":{"_account_id":13805,"name":"Shaoquan Chen","email":"sean.chen2@hp.com","username":"SeanChen"},"change_message_id":"502c6740e7f1bf9a8d1b2b5bedbadf7060bf6088","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":"  describe(\u0027hz.dashboard:constant:dashboardBasePath\u0027, function () {"},{"line_number":26,"context_line":"    var dashboardBasePath;"},{"line_number":27,"context_line":"    var static_url;"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    beforeEach(module(\u0027hz.dashboard\u0027));"},{"line_number":30,"context_line":"    beforeEach(inject(function ($injector) {"}],"source_content_type":"text/javascript","patch_set":56,"id":"3a50d1a3_6cda4b4e","line":27,"in_reply_to":"3a50d1a3_16839305","updated":"2015-07-21 21:33:38.000000000","message":"Done","commit_id":"178038b60a674b7b0a2d77b003ddd4b75a12de71"}],"openstack_dashboard/static/dashboard/launch-instance/launch-instance-modal.controller.js":[{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"71c94e5b106e8771a78d4ed3efe2647a31a66c36","unresolved":false,"context_lines":[{"line_number":43,"context_line":"      var handleModalClose \u003d function (redirectPropertyName) {"},{"line_number":44,"context_line":"        return function () {"},{"line_number":45,"context_line":"          if (launchContext \u0026\u0026 launchContext[redirectPropertyName]) {"},{"line_number":46,"context_line":"            $window.location.href \u003d (window.WEBROOT || \u0027\u0027) + launchContext[redirectPropertyName];"},{"line_number":47,"context_line":"          }"},{"line_number":48,"context_line":"        };"},{"line_number":49,"context_line":"      };"}],"source_content_type":"text/javascript","patch_set":41,"id":"ba3cc151_a7ab1387","line":46,"updated":"2015-07-09 22:27:56.000000000","message":"this should be unnecessary and the hard-coded \u0027/project/instances\u0027 changed where called. just do a resolve instead in the python code.","commit_id":"d08357c3ec57888bab297a9fe6fffc2e7aa946df"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"0f6d11ef5a50cee32b98612996ead39b00fa150c","unresolved":false,"context_lines":[{"line_number":43,"context_line":"      var handleModalClose \u003d function (redirectPropertyName) {"},{"line_number":44,"context_line":"        return function () {"},{"line_number":45,"context_line":"          if (launchContext \u0026\u0026 launchContext[redirectPropertyName]) {"},{"line_number":46,"context_line":"            $window.location.href \u003d (window.WEBROOT || \u0027\u0027) + launchContext[redirectPropertyName];"},{"line_number":47,"context_line":"          }"},{"line_number":48,"context_line":"        };"},{"line_number":49,"context_line":"      };"}],"source_content_type":"text/javascript","patch_set":41,"id":"ba3cc151_889da268","line":46,"in_reply_to":"ba3cc151_a7ab1387","updated":"2015-07-10 13:46:17.000000000","message":"I\u0027d much prefer to fix it in this place than have to load up all the paths with the WEBROOT feature...this is more centralized.","commit_id":"d08357c3ec57888bab297a9fe6fffc2e7aa946df"}],"openstack_dashboard/static/dashboard/launch-instance/launch-instance.js":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"0b197c559859da4f113d445147c7363d106e1579","unresolved":false,"context_lines":[{"line_number":110,"context_line":"        return function() {"},{"line_number":111,"context_line":"          if (launchContext \u0026\u0026 launchContext[redirectPropertyName]) {"},{"line_number":112,"context_line":"            $window.location.href \u003d ((window.STATIC_URL \u0026\u0026 window.STATIC_URL.replace(/\\/static\\/$/, \u0027\u0027)) || \u0027\u0027) +"},{"line_number":113,"context_line":"                                    launchContext[redirectPropertyName];"},{"line_number":114,"context_line":"          }"},{"line_number":115,"context_line":"        };"},{"line_number":116,"context_line":"      };"}],"source_content_type":"text/javascript","patch_set":9,"id":"9a0c5dc1_22fedf6b","line":113,"updated":"2015-05-12 20:21:17.000000000","message":"nit: line wrap?","commit_id":"f348b0fabefdd52fafa7a79c38a178edf37c52b4"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"bad0aee5e48a34edde5190ddfa31e7f36008bd37","unresolved":false,"context_lines":[{"line_number":110,"context_line":"        return function() {"},{"line_number":111,"context_line":"          if (launchContext \u0026\u0026 launchContext[redirectPropertyName]) {"},{"line_number":112,"context_line":"            $window.location.href \u003d ((window.STATIC_URL \u0026\u0026 window.STATIC_URL.replace(/\\/static\\/$/, \u0027\u0027)) || \u0027\u0027) +"},{"line_number":113,"context_line":"                                    launchContext[redirectPropertyName];"},{"line_number":114,"context_line":"          }"},{"line_number":115,"context_line":"        };"},{"line_number":116,"context_line":"      };"}],"source_content_type":"text/javascript","patch_set":9,"id":"9a0c5dc1_e0cb1f71","line":113,"in_reply_to":"9a0c5dc1_22fedf6b","updated":"2015-05-12 20:27:11.000000000","message":"I\u0027ll implement the service; that should clean it up.","commit_id":"f348b0fabefdd52fafa7a79c38a178edf37c52b4"}],"openstack_dashboard/templates/horizon/_scripts.html":[{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"b8173442d40cbb119624cf5c27330046fb05f70d","unresolved":false,"context_lines":[{"line_number":10,"context_line":"{% compress js %}"},{"line_number":11,"context_line":"\u003cscript type\u003d\"text/javascript\"\u003e"},{"line_number":12,"context_line":"  var STATIC_URL \u003d \"{{ STATIC_URL }}\";"},{"line_number":13,"context_line":"  var WEBROOT \u003d STATIC_URL.replace(/\\/static\\/$/, \u0027\u0027);"},{"line_number":14,"context_line":"\u003c/script\u003e"},{"line_number":15,"context_line":"\u003cscript src\u003d\u0027{{ STATIC_URL }}horizon/lib/angular/angular-cookies.js\u0027\u003e\u003c/script\u003e"},{"line_number":16,"context_line":"\u003cscript src\u003d\u0027{{ STATIC_URL }}horizon/lib/angular/angular-sanitize.js\u0027\u003e\u003c/script\u003e"}],"source_content_type":"text/html","patch_set":32,"id":"ba3cc151_e11a8fc5","line":13,"updated":"2015-07-02 19:58:20.000000000","message":"we should probably move these two var into _conf instead.","commit_id":"1fe9379bd29aaa8ba936832700f1d0e583cc41c0"},{"author":{"_account_id":13805,"name":"Shaoquan Chen","email":"sean.chen2@hp.com","username":"SeanChen"},"change_message_id":"e37d257d6817d0d9fb41b22e5d03a78d814b5c96","unresolved":false,"context_lines":[{"line_number":10,"context_line":"{% compress js %}"},{"line_number":11,"context_line":"\u003cscript type\u003d\"text/javascript\"\u003e"},{"line_number":12,"context_line":"  var STATIC_URL \u003d \"{{ STATIC_URL }}\";"},{"line_number":13,"context_line":"  var WEBROOT \u003d STATIC_URL.replace(/\\/static\\/$/, \u0027\u0027);"},{"line_number":14,"context_line":"\u003c/script\u003e"},{"line_number":15,"context_line":"\u003cscript src\u003d\u0027{{ STATIC_URL }}horizon/lib/angular/angular-cookies.js\u0027\u003e\u003c/script\u003e"},{"line_number":16,"context_line":"\u003cscript src\u003d\u0027{{ STATIC_URL }}horizon/lib/angular/angular-sanitize.js\u0027\u003e\u003c/script\u003e"}],"source_content_type":"text/html","patch_set":32,"id":"ba3cc151_b70285b2","line":13,"in_reply_to":"ba3cc151_e11a8fc5","updated":"2015-07-02 20:55:07.000000000","message":"These two value come from python, so it has to be in Django template or something similar. It is simpler for now to have them defined as a global so that we can use them to define other constants in angular modules. Unfortunately, if we define these two as angular constant, we can not use them to defined other angular constants, therefore we have to make other basePath as providers. But providers cannot be used in .config() for client-side routing.\n\nThere are many design mistakes in angular 1.x, hopefully 2.0 will be better.","commit_id":"1fe9379bd29aaa8ba936832700f1d0e583cc41c0"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"4917e10f2d4d9568b0ac92a8550d822adf557d48","unresolved":false,"context_lines":[{"line_number":10,"context_line":"{% compress js %}"},{"line_number":11,"context_line":"\u003cscript type\u003d\"text/javascript\"\u003e"},{"line_number":12,"context_line":"  var STATIC_URL \u003d \"{{ STATIC_URL }}\";"},{"line_number":13,"context_line":"  var WEBROOT \u003d STATIC_URL.replace(/\\/static\\/$/, \u0027\u0027);"},{"line_number":14,"context_line":"\u003c/script\u003e"},{"line_number":15,"context_line":"\u003cscript src\u003d\u0027{{ STATIC_URL }}horizon/lib/angular/angular-cookies.js\u0027\u003e\u003c/script\u003e"},{"line_number":16,"context_line":"\u003cscript src\u003d\u0027{{ STATIC_URL }}horizon/lib/angular/angular-sanitize.js\u0027\u003e\u003c/script\u003e"}],"source_content_type":"text/html","patch_set":39,"id":"ba3cc151_b01d0f68","line":13,"updated":"2015-07-07 20:35:43.000000000","message":"Can improve this a bit. Add WEBROOT to COMPRESS_OFFLINE_CONTEXT in settings, then you set var WEBROOT \u003d \"{{WEBROOT}}\" and would not need the or statement.\n\nDefault WEBROOT is \"/\"","commit_id":"61f83263ddb9dc8eeb16b3893f37888ea370ee4f"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"6bf59608af2a81d43bbe41f9e463d7ffdd178f78","unresolved":false,"context_lines":[{"line_number":10,"context_line":"{% compress js %}"},{"line_number":11,"context_line":"\u003cscript type\u003d\"text/javascript\"\u003e"},{"line_number":12,"context_line":"  var STATIC_URL \u003d \"{{ STATIC_URL }}\";"},{"line_number":13,"context_line":"  var WEBROOT \u003d STATIC_URL.replace(/\\/static\\/$/, \u0027\u0027);"},{"line_number":14,"context_line":"\u003c/script\u003e"},{"line_number":15,"context_line":"\u003cscript src\u003d\u0027{{ STATIC_URL }}horizon/lib/angular/angular-cookies.js\u0027\u003e\u003c/script\u003e"},{"line_number":16,"context_line":"\u003cscript src\u003d\u0027{{ STATIC_URL }}horizon/lib/angular/angular-sanitize.js\u0027\u003e\u003c/script\u003e"}],"source_content_type":"text/html","patch_set":39,"id":"ba3cc151_d001b307","line":13,"in_reply_to":"ba3cc151_b01d0f68","updated":"2015-07-07 21:37:19.000000000","message":"I had troubles (troubleshooting with you) getting this going...will research.","commit_id":"61f83263ddb9dc8eeb16b3893f37888ea370ee4f"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"a46107360763c0a3948eb31f1db137f5d02bf49d","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"{% comment %} Compress jQuery, Angular, Plugins, Bootstrap, Hogan.js and Horizon-specific JS. {% endcomment %}"},{"line_number":10,"context_line":"{% compress js %}"},{"line_number":11,"context_line":"\u003cscript type\u003d\"text/javascript\"\u003e"},{"line_number":12,"context_line":"  var STATIC_URL \u003d \"{{ STATIC_URL }}\";"},{"line_number":13,"context_line":"  var WEBROOT \u003d \"{{ WEBROOT }}\";"},{"line_number":14,"context_line":"\u003c/script\u003e"}],"source_content_type":"text/html","patch_set":48,"id":"9a41bdd9_b1498362","line":11,"updated":"2015-07-14 16:45:56.000000000","message":"OK I understand that we need it for unit testing, but still prefer to see them set in one place instead of multiple files. We\u0027ll need to add WEBROOT manually in jasmine.html. Not sure how you would do this for karma, maybe need to include a dummy JS file with WEBROOT and STATIC_URL defined?\n\nhttps://github.com/openstack/horizon/blob/master/horizon/templates/horizon/jasmine/jasmine.html#L6","commit_id":"85056b126112779bc3948d7e27ac628a42bd6849"}]}
