)]}'
{"horizon/static/framework/util/tech-debt/helper-functions.js":[{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ef7deaf7bbb914a8b37ff7a274e2d982004a3ccc","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"}],"source_content_type":"text/javascript","patch_set":2,"id":"3a50d1a3_a114f84c","line":1,"updated":"2015-07-31 18:16:32.000000000","message":"add license to file","commit_id":"faadc980edf4fc2eb36e5f14355064d6dde9d0e0"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ef7deaf7bbb914a8b37ff7a274e2d982004a3ccc","unresolved":false,"context_lines":[{"line_number":3,"context_line":""},{"line_number":4,"context_line":"  angular"},{"line_number":5,"context_line":"    .module(\u0027horizon.framework.util.tech-debt\u0027)"},{"line_number":6,"context_line":"    .factory(\u0027horizon.framework.util.tech-debt.helper-functions\u0027, utils);"},{"line_number":7,"context_line":""},{"line_number":8,"context_line":"  // An example of using the John Papa recommended $inject instead of in-line"},{"line_number":9,"context_line":"  // array syntax"}],"source_content_type":"text/javascript","patch_set":2,"id":"3a50d1a3_cca05ba8","line":6,"updated":"2015-07-31 18:16:32.000000000","message":"utils --\u003e helpFunctions","commit_id":"faadc980edf4fc2eb36e5f14355064d6dde9d0e0"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ef7deaf7bbb914a8b37ff7a274e2d982004a3ccc","unresolved":false,"context_lines":[{"line_number":5,"context_line":"    .module(\u0027horizon.framework.util.tech-debt\u0027)"},{"line_number":6,"context_line":"    .factory(\u0027horizon.framework.util.tech-debt.helper-functions\u0027, utils);"},{"line_number":7,"context_line":""},{"line_number":8,"context_line":"  // An example of using the John Papa recommended $inject instead of in-line"},{"line_number":9,"context_line":"  // array syntax"},{"line_number":10,"context_line":"  utils.$inject \u003d [\u0027$rootScope\u0027, \u0027$compile\u0027];"},{"line_number":11,"context_line":""}],"source_content_type":"text/javascript","patch_set":2,"id":"3a50d1a3_e11a007c","line":8,"updated":"2015-07-31 18:16:32.000000000","message":"comment unneccessary","commit_id":"faadc980edf4fc2eb36e5f14355064d6dde9d0e0"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ef7deaf7bbb914a8b37ff7a274e2d982004a3ccc","unresolved":false,"context_lines":[{"line_number":9,"context_line":"  // array syntax"},{"line_number":10,"context_line":"  utils.$inject \u003d [\u0027$rootScope\u0027, \u0027$compile\u0027];"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"  function utils($rootScope, $compile) {"},{"line_number":13,"context_line":"    return {"},{"line_number":14,"context_line":"      loadAngular: function (element) {"},{"line_number":15,"context_line":"        try {"}],"source_content_type":"text/javascript","patch_set":2,"id":"3a50d1a3_4c3f6b25","line":12,"updated":"2015-07-31 18:16:32.000000000","message":"should follow this format:\n\n  var service \u003d {\n    loadAngular: loadAngular\n  }\n\n  return service;\n\n  ////////////////////\n\n  function loadAngular(element) { ..... }","commit_id":"faadc980edf4fc2eb36e5f14355064d6dde9d0e0"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ef7deaf7bbb914a8b37ff7a274e2d982004a3ccc","unresolved":false,"context_lines":[{"line_number":11,"context_line":""},{"line_number":12,"context_line":"  function utils($rootScope, $compile) {"},{"line_number":13,"context_line":"    return {"},{"line_number":14,"context_line":"      loadAngular: function (element) {"},{"line_number":15,"context_line":"        try {"},{"line_number":16,"context_line":"          $compile(element)($rootScope);"},{"line_number":17,"context_line":"          $rootScope.$apply();"}],"source_content_type":"text/javascript","patch_set":2,"id":"3a50d1a3_ec919747","line":14,"updated":"2015-07-31 18:16:32.000000000","message":"comment explaining why we need this, something like: \"This method provides a mechanism for legacy modal code to compile angular directives in its content body. Compilation silently fails if no directive are found.\"","commit_id":"faadc980edf4fc2eb36e5f14355064d6dde9d0e0"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ef7deaf7bbb914a8b37ff7a274e2d982004a3ccc","unresolved":false,"context_lines":[{"line_number":18,"context_line":"        } catch (err) {}"},{"line_number":19,"context_line":"        /*"},{"line_number":20,"context_line":"         Compilation fails when it could not find a directive,"},{"line_number":21,"context_line":"         fails silently on this, it is an angular behaviour."},{"line_number":22,"context_line":"         */"},{"line_number":23,"context_line":"      }"},{"line_number":24,"context_line":"    };"}],"source_content_type":"text/javascript","patch_set":2,"id":"3a50d1a3_acb2afe3","line":21,"updated":"2015-07-31 18:16:32.000000000","message":"remove","commit_id":"faadc980edf4fc2eb36e5f14355064d6dde9d0e0"}],"horizon/static/framework/util/tech-debt/helper-functions.spec.js":[{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ef7deaf7bbb914a8b37ff7a274e2d982004a3ccc","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":"  describe(\u0027horizon.framework.util.tech-debt.helper-functions\u0027, function () {"}],"source_content_type":"text/javascript","patch_set":2,"id":"3a50d1a3_ac85cfcf","line":1,"updated":"2015-07-31 18:16:32.000000000","message":"add license.","commit_id":"faadc980edf4fc2eb36e5f14355064d6dde9d0e0"}],"horizon/static/horizon/js/horizon.quota.js":[{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ef7deaf7bbb914a8b37ff7a274e2d982004a3ccc","unresolved":false,"context_lines":[{"line_number":271,"context_line":"  },"},{"line_number":272,"context_line":""},{"line_number":273,"context_line":"  /*"},{"line_number":274,"context_line":"   Truncate a string at the desired length. Optionally append an ellipsis"},{"line_number":275,"context_line":"   to the end of the string."},{"line_number":276,"context_line":""},{"line_number":277,"context_line":"   EG:"}],"source_content_type":"text/javascript","patch_set":2,"id":"3a50d1a3_6cab471f","line":274,"updated":"2015-07-31 18:16:32.000000000","message":"optional nit, format this to look better. remove extra lines, replace EG with Examples, etc...","commit_id":"faadc980edf4fc2eb36e5f14355064d6dde9d0e0"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ab98e812651c52426275e871c7701bfd2359df86","unresolved":false,"context_lines":[{"line_number":292,"context_line":"  },"},{"line_number":293,"context_line":""},{"line_number":294,"context_line":"  /*"},{"line_number":295,"context_line":"\t * Adds commas to any integer or numbers within a string for human display."},{"line_number":296,"context_line":"   *"},{"line_number":297,"context_line":"   * Example:"},{"line_number":298,"context_line":"   *  horizon.utils.humanizeNumbers(1234); -\u003e \"1,234\""}],"source_content_type":"text/javascript","patch_set":5,"id":"1a4dcd0f_e93e328b","line":295,"updated":"2015-08-05 21:33:58.000000000","message":"invalid indent","commit_id":"a1f6b87daa26c01635b64d63207b2e20df07c508"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"cf1f652657d0e2d63ff22e17a04005f3f6d1d808","unresolved":false,"context_lines":[{"line_number":292,"context_line":"  },"},{"line_number":293,"context_line":""},{"line_number":294,"context_line":"  /*"},{"line_number":295,"context_line":"\t * Adds commas to any integer or numbers within a string for human display."},{"line_number":296,"context_line":"   *"},{"line_number":297,"context_line":"   * Example:"},{"line_number":298,"context_line":"   *  horizon.utils.humanizeNumbers(1234); -\u003e \"1,234\""}],"source_content_type":"text/javascript","patch_set":5,"id":"1a4dcd0f_4456202b","line":295,"in_reply_to":"1a4dcd0f_e93e328b","updated":"2015-08-06 07:14:26.000000000","message":"Done","commit_id":"a1f6b87daa26c01635b64d63207b2e20df07c508"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"fc747decd2a6ecddd5e94260e889f592685980d9","unresolved":false,"context_lines":[{"line_number":300,"context_line":"   *"},{"line_number":301,"context_line":"   */"},{"line_number":302,"context_line":"  humanizeNumbers: function (number) {"},{"line_number":303,"context_line":"    return number.toString().replace(/\\B(?\u003d(\\d{3})+(?!\\d))/g, \u0027,\u0027);"},{"line_number":304,"context_line":"  },"},{"line_number":305,"context_line":""},{"line_number":306,"context_line":"  /*"}],"source_content_type":"text/javascript","patch_set":5,"id":"1a4dcd0f_e96ab2ed","line":303,"updated":"2015-08-05 21:59:24.000000000","message":"This is quite wrong!\nhttps://en.wikipedia.org/wiki/Decimal_mark#Examples_of_use\n\n1,000 does not universally mean one thousand. In many countries this would mean one.\n\nWe should get rid of this humanizeNumbers function until we can do a properly localizable version.","commit_id":"a1f6b87daa26c01635b64d63207b2e20df07c508"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"cf1f652657d0e2d63ff22e17a04005f3f6d1d808","unresolved":false,"context_lines":[{"line_number":300,"context_line":"   *"},{"line_number":301,"context_line":"   */"},{"line_number":302,"context_line":"  humanizeNumbers: function (number) {"},{"line_number":303,"context_line":"    return number.toString().replace(/\\B(?\u003d(\\d{3})+(?!\\d))/g, \u0027,\u0027);"},{"line_number":304,"context_line":"  },"},{"line_number":305,"context_line":""},{"line_number":306,"context_line":"  /*"}],"source_content_type":"text/javascript","patch_set":5,"id":"1a4dcd0f_6401dc05","line":303,"in_reply_to":"1a4dcd0f_e96ab2ed","updated":"2015-08-06 07:14:26.000000000","message":"I didn\u0027t originally write this method. So I can\u0027t comment on it\u0027s correctness.\nThe code was moved here from an Angular Module as it was only used here and I got comments regarding the same.\n\nI can propose another bug to address the incorrect function but I don\u0027t think it should in this patch.","commit_id":"a1f6b87daa26c01635b64d63207b2e20df07c508"},{"author":{"_account_id":11778,"name":"Diana Whitten","email":"hurgleburgler@gmail.com","username":"hurgleburgler"},"change_message_id":"cdc0e8a70899ea5c4674ac973526ba0b0eec7018","unresolved":false,"context_lines":[{"line_number":278,"context_line":"   *  horizon.utils.truncate(\"String that is too long.\", 18, true); -\u003e"},{"line_number":279,"context_line":"   *  \"String that is too\u0026hellip;\""},{"line_number":280,"context_line":"   *"},{"line_number":281,"context_line":"   */"},{"line_number":282,"context_line":"  truncate: function (string, size, includeEllipsis) {"},{"line_number":283,"context_line":"    if (string.length \u003e size) {"},{"line_number":284,"context_line":"      if (includeEllipsis) {"}],"source_content_type":"text/javascript","patch_set":9,"id":"da20952f_6225ec08","line":281,"updated":"2015-09-01 14:49:59.000000000","message":"There should be no reason to *ever* do this in JavaScript.  If we are truncating strings for display reasons, then we will do this in the CSS.  \n\nBut, I could be missing something that you had in mind ... in what scenario do you see this being necessary?\n\nI just removed vanilla javascript in our codebase that was doing just this.","commit_id":"569513469d1377ced64ffa5d71881ad965ccf17f"},{"author":{"_account_id":11778,"name":"Diana Whitten","email":"hurgleburgler@gmail.com","username":"hurgleburgler"},"change_message_id":"cdc0e8a70899ea5c4674ac973526ba0b0eec7018","unresolved":false,"context_lines":[{"line_number":297,"context_line":"   * Example:"},{"line_number":298,"context_line":"   *  horizon.utils.humanizeNumbers(1234); -\u003e \"1,234\""},{"line_number":299,"context_line":"   *  horizon.utils.humanizeNumbers(\"My Total: 1234\"); -\u003e \"My Total: 1,234\""},{"line_number":300,"context_line":"   *"},{"line_number":301,"context_line":"   */"},{"line_number":302,"context_line":"  humanizeNumbers: function (number) {"},{"line_number":303,"context_line":"    return number.toString().replace(/\\B(?\u003d(\\d{3})+(?!\\d))/g, \u0027,\u0027);"}],"source_content_type":"text/javascript","patch_set":9,"id":"da20952f_e25edc78","line":300,"updated":"2015-09-01 14:49:59.000000000","message":"This is wrong for international reasons:\n\nhttp://docs.oracle.com/cd/E19455-01/806-0169/overview-9/index.html","commit_id":"569513469d1377ced64ffa5d71881ad965ccf17f"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"853a153272966dab733e88eddb413b99533ebd45","unresolved":false,"context_lines":[{"line_number":295,"context_line":"   * Adds commas to any integer or numbers within a string for human display."},{"line_number":296,"context_line":"   *"},{"line_number":297,"context_line":"   * Example:"},{"line_number":298,"context_line":"   *  horizon.utils.humanizeNumbers(1234); -\u003e \"1,234\""},{"line_number":299,"context_line":"   *  horizon.utils.humanizeNumbers(\"My Total: 1234\"); -\u003e \"My Total: 1,234\""},{"line_number":300,"context_line":"   *"},{"line_number":301,"context_line":"   */"}],"source_content_type":"text/javascript","patch_set":16,"id":"7a2fa921_4a032310","line":298,"updated":"2015-10-05 15:33:06.000000000","message":"comment is wrong. this line and next. referring to old location","commit_id":"1758d7a1b729853bb2d3ba96489d60c37c4adff2"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"ed12968402d2c65e2a8f18dc77f606a0ddff7013","unresolved":false,"context_lines":[{"line_number":295,"context_line":"   * Adds commas to any integer or numbers within a string for human display."},{"line_number":296,"context_line":"   *"},{"line_number":297,"context_line":"   * Example:"},{"line_number":298,"context_line":"   *  horizon.utils.humanizeNumbers(1234); -\u003e \"1,234\""},{"line_number":299,"context_line":"   *  horizon.utils.humanizeNumbers(\"My Total: 1234\"); -\u003e \"My Total: 1,234\""},{"line_number":300,"context_line":"   *"},{"line_number":301,"context_line":"   */"}],"source_content_type":"text/javascript","patch_set":16,"id":"7a2fa921_dd805c49","line":298,"in_reply_to":"7a2fa921_4a032310","updated":"2015-10-05 16:43:30.000000000","message":"Done","commit_id":"1758d7a1b729853bb2d3ba96489d60c37c4adff2"}],"horizon/static/horizon/tests/jasmine/quota.legacy-spec.js":[{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"7560b6b9ea6f4333151c616317990b5337ac63d1","unresolved":false,"context_lines":[{"line_number":12,"context_line":"      expect(horizon.Quota.humanizeNumbers(1234)).toEqual(\u00271,234\u0027);"},{"line_number":13,"context_line":"    });"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"    it(\u0027should work wtesth multiple values through a string\u0027, function () {"},{"line_number":16,"context_line":"      expect(horizon.Quota.humanizeNumbers(\u0027My Total: 1234\u0027)).toEqual(\u0027My Total: 1,234\u0027);"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"      expect(horizon.Quota.humanizeNumbers(\u0027My Total: 1234, His Total: 1234567\u0027)).toEqual(\u0027My Total: 1,234, His Total: 1,234,567\u0027);"}],"source_content_type":"text/javascript","patch_set":14,"id":"9a1a9d01_be78eb2c","line":15,"updated":"2015-10-02 16:04:50.000000000","message":"wtesth? \"with\" maybe","commit_id":"9459aadfbe407236452ae0d9b09ef8adc9ce27c0"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"875ec2f0d41629d5b0185306828feebc859a2187","unresolved":false,"context_lines":[{"line_number":12,"context_line":"      expect(horizon.Quota.humanizeNumbers(1234)).toEqual(\u00271,234\u0027);"},{"line_number":13,"context_line":"    });"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"    it(\u0027should work wtesth multiple values through a string\u0027, function () {"},{"line_number":16,"context_line":"      expect(horizon.Quota.humanizeNumbers(\u0027My Total: 1234\u0027)).toEqual(\u0027My Total: 1,234\u0027);"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"      expect(horizon.Quota.humanizeNumbers(\u0027My Total: 1234, His Total: 1234567\u0027)).toEqual(\u0027My Total: 1,234, His Total: 1,234,567\u0027);"}],"source_content_type":"text/javascript","patch_set":14,"id":"7a2fa921_bdc9e0ae","line":15,"in_reply_to":"9a1a9d01_be78eb2c","updated":"2015-10-05 16:44:33.000000000","message":"Done","commit_id":"9459aadfbe407236452ae0d9b09ef8adc9ce27c0"}],"openstack_dashboard/static/app/app.module.js":[{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"a123f9ff7fcc8fb0be30670a6a4c574e08f363a2","unresolved":false,"context_lines":[{"line_number":67,"context_line":"  updateHorizon.$inject \u003d ["},{"line_number":68,"context_line":"    \u0027gettextCatalog\u0027,"},{"line_number":69,"context_line":"    \u0027horizon.framework.conf.spinner_options\u0027,"},{"line_number":70,"context_line":"    \u0027horizon.framework.util.tech-debt.helper-functions\u0027,"},{"line_number":71,"context_line":"    \u0027$cookieStore\u0027,"},{"line_number":72,"context_line":"    \u0027$http\u0027,"},{"line_number":73,"context_line":"    \u0027$cookies\u0027"}],"source_content_type":"text/javascript","patch_set":15,"id":"9a1a9d01_e1bf5e5e","side":"PARENT","line":70,"updated":"2015-10-05 04:33:54.000000000","message":"This is still needed for the loadAngular function.","commit_id":"8d008a73c484fba5e9d0bf5c232fd874eb48d1b8"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"a123f9ff7fcc8fb0be30670a6a4c574e08f363a2","unresolved":false,"context_lines":[{"line_number":76,"context_line":"  function updateHorizon("},{"line_number":77,"context_line":"    gettextCatalog,"},{"line_number":78,"context_line":"    spinnerOptions,"},{"line_number":79,"context_line":"    hzUtils,"},{"line_number":80,"context_line":"    $cookieStore,"},{"line_number":81,"context_line":"    $http,"},{"line_number":82,"context_line":"    $cookies) {"}],"source_content_type":"text/javascript","patch_set":15,"id":"9a1a9d01_81b6a288","side":"PARENT","line":79,"updated":"2015-10-05 04:33:54.000000000","message":"Still needed.","commit_id":"8d008a73c484fba5e9d0bf5c232fd874eb48d1b8"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"a123f9ff7fcc8fb0be30670a6a4c574e08f363a2","unresolved":false,"context_lines":[{"line_number":84,"context_line":"    $http.defaults.headers.post[\u0027X-CSRFToken\u0027] \u003d $cookies.csrftoken;"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    //expose the configuration for horizon legacy variable"},{"line_number":87,"context_line":"    horizon.utils \u003d hzUtils;"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"    horizon.conf.spinner_options \u003d spinnerOptions;"},{"line_number":90,"context_line":""}],"source_content_type":"text/javascript","patch_set":15,"id":"9a1a9d01_a1b9667b","side":"PARENT","line":87,"updated":"2015-10-05 04:33:54.000000000","message":"Still needed.","commit_id":"8d008a73c484fba5e9d0bf5c232fd874eb48d1b8"}]}
