)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"6d4d04293e316a4c63e7eeba947a38bfb13be6e1","unresolved":false,"context_lines":[{"line_number":13,"context_line":"show more than what was available rather than max. A \u0027maxLimit\u0027"},{"line_number":14,"context_line":"property was added to accommodate validity. This patch also adds"},{"line_number":15,"context_line":"validation UI to warn user when over quota."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Closes-Bug: 1434303"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Change-Id: I552a1a28fce755119eb91bf6afce8494e0aa1791"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":25,"id":"3acd31a7_e09656ef","line":16,"updated":"2015-05-03 01:41:53.000000000","message":"One other comment, there are a lot of changes here.  Might be better to try to break this out in the future.","commit_id":"4f116b370d4f3797f4a36b59a48f90633c95a3a8"}],"horizon/static/angular/charts/charts.js":[{"author":{"_account_id":13785,"name":"Kelly Domico","email":"kelly.domico@hp.com","username":"kdomico"},"change_message_id":"d37d5635e8d0db4880cc1dcabd6d9df5cdfd0f5c","unresolved":false,"context_lines":[{"line_number":44,"context_line":"    .constant(\u0027chartSettings\u0027, {"},{"line_number":45,"context_line":"      innerRadius: 24,"},{"line_number":46,"context_line":"      outerRadius: 30,"},{"line_number":47,"context_line":"      titleClass: \u0027pie-chart-title-medium\u0027,"},{"line_number":48,"context_line":"      showTitle: true,"},{"line_number":49,"context_line":"      showLabel: true,"},{"line_number":50,"context_line":"      showLegend: true,"}],"source_content_type":"text/javascript","patch_set":4,"id":"fa963961_aed1bcfd","line":47,"updated":"2015-03-26 18:34:59.000000000","message":"What do you think of using Bootstrap\u0027s headings classes (http://getbootstrap.com/css/#type)? That way you don\u0027t need to define a medium vs large. \n\nDefault can be .h5.","commit_id":"7af0822aaa97c1bba749ab1f62019942c89cf385"},{"author":{"_account_id":13785,"name":"Kelly Domico","email":"kelly.domico@hp.com","username":"kdomico"},"change_message_id":"98545da2b3c35fec9bddff2fed23f97e9516b395","unresolved":false,"context_lines":[{"line_number":44,"context_line":"    .constant(\u0027chartSettings\u0027, {"},{"line_number":45,"context_line":"      innerRadius: 24,"},{"line_number":46,"context_line":"      outerRadius: 30,"},{"line_number":47,"context_line":"      titleClass: \u0027pie-chart-title-medium\u0027,"},{"line_number":48,"context_line":"      showTitle: true,"},{"line_number":49,"context_line":"      showLabel: true,"},{"line_number":50,"context_line":"      showLegend: true,"}],"source_content_type":"text/javascript","patch_set":4,"id":"fa963961_4d522c15","line":47,"in_reply_to":"fa963961_376df904","updated":"2015-03-27 00:02:18.000000000","message":"Ah, those pesky margins and line heights. Sounds good Brian.","commit_id":"7af0822aaa97c1bba749ab1f62019942c89cf385"},{"author":{"_account_id":11098,"name":"Brian Tully","email":"brian.tully@hpe.com","username":"btully"},"change_message_id":"5ef019d0520c3f7130cd0b3375850fb61d7925cb","unresolved":false,"context_lines":[{"line_number":44,"context_line":"    .constant(\u0027chartSettings\u0027, {"},{"line_number":45,"context_line":"      innerRadius: 24,"},{"line_number":46,"context_line":"      outerRadius: 30,"},{"line_number":47,"context_line":"      titleClass: \u0027pie-chart-title-medium\u0027,"},{"line_number":48,"context_line":"      showTitle: true,"},{"line_number":49,"context_line":"      showLabel: true,"},{"line_number":50,"context_line":"      showLegend: true,"}],"source_content_type":"text/javascript","patch_set":4,"id":"fa963961_376df904","line":47,"in_reply_to":"fa963961_aed1bcfd","updated":"2015-03-26 23:16:07.000000000","message":"@Kelly Believe it or not I actually tried that! Great minds think alike? :P The trouble was that I had to then override margin and line-height so it turned out more trouble than it was worth. The current class just affects font-size which is really all we need, IMHO","commit_id":"7af0822aaa97c1bba749ab1f62019942c89cf385"}],"horizon/static/angular/charts/pie-chart.html":[{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"c6fef0bdaabc20b424e052b154ee0d9b477557a9","unresolved":false,"context_lines":[{"line_number":14,"context_line":"      \u003cg class\u003d\"slices\"\u003e\u003c/g\u003e"},{"line_number":15,"context_line":"      \u003cg ng-if\u003d\"::model.settings.showLabel \u0026\u0026 chartData.label\" class\u003d\"pie-chart-label\"\u003e"},{"line_number":16,"context_line":"        \u003ctext dy\u003d\"0.35em\" ng-style\u003d\"model.settings.label\""},{"line_number":17,"context_line":"              ng-class\u003d\"{ \u0027danger\u0027: chartData.overQuota }\"\u003e{$ chartData.label $}\u003c/text\u003e"},{"line_number":18,"context_line":"      \u003c/g\u003e"},{"line_number":19,"context_line":"    \u003c/g\u003e"},{"line_number":20,"context_line":"  \u003c/svg\u003e"}],"source_content_type":"text/html","patch_set":21,"id":"5ad0253b_e9b44fd2","line":17,"updated":"2015-04-28 23:04:37.000000000","message":"nit: odd that a generic \"pie\" chart has \"overQuota\". If a generic pie chart is the goal, consider a more generic \"overMax\" to match the setting used to control the label.","commit_id":"a1dd9c1cbf9afe2282baff4110820324de3fa615"},{"author":{"_account_id":11098,"name":"Brian Tully","email":"brian.tully@hpe.com","username":"btully"},"change_message_id":"4af052aa21b3cd3c430757dd82bd4386d46bfcc9","unresolved":false,"context_lines":[{"line_number":14,"context_line":"      \u003cg class\u003d\"slices\"\u003e\u003c/g\u003e"},{"line_number":15,"context_line":"      \u003cg ng-if\u003d\"::model.settings.showLabel \u0026\u0026 chartData.label\" class\u003d\"pie-chart-label\"\u003e"},{"line_number":16,"context_line":"        \u003ctext dy\u003d\"0.35em\" ng-style\u003d\"model.settings.label\""},{"line_number":17,"context_line":"              ng-class\u003d\"{ \u0027danger\u0027: chartData.overQuota }\"\u003e{$ chartData.label $}\u003c/text\u003e"},{"line_number":18,"context_line":"      \u003c/g\u003e"},{"line_number":19,"context_line":"    \u003c/g\u003e"},{"line_number":20,"context_line":"  \u003c/svg\u003e"}],"source_content_type":"text/html","patch_set":21,"id":"3acd31a7_7c4a11c7","line":17,"in_reply_to":"3acd31a7_e1957f40","updated":"2015-04-30 22:12:34.000000000","message":"Done","commit_id":"a1dd9c1cbf9afe2282baff4110820324de3fa615"},{"author":{"_account_id":11098,"name":"Brian Tully","email":"brian.tully@hpe.com","username":"btully"},"change_message_id":"4af052aa21b3cd3c430757dd82bd4386d46bfcc9","unresolved":false,"context_lines":[{"line_number":14,"context_line":"      \u003cg class\u003d\"slices\"\u003e\u003c/g\u003e"},{"line_number":15,"context_line":"      \u003cg ng-if\u003d\"::model.settings.showLabel \u0026\u0026 chartData.label\" class\u003d\"pie-chart-label\"\u003e"},{"line_number":16,"context_line":"        \u003ctext dy\u003d\"0.35em\" ng-style\u003d\"model.settings.label\""},{"line_number":17,"context_line":"              ng-class\u003d\"{ \u0027danger\u0027: chartData.overQuota }\"\u003e{$ chartData.label $}\u003c/text\u003e"},{"line_number":18,"context_line":"      \u003c/g\u003e"},{"line_number":19,"context_line":"    \u003c/g\u003e"},{"line_number":20,"context_line":"  \u003c/svg\u003e"}],"source_content_type":"text/html","patch_set":21,"id":"3acd31a7_9c3bad38","line":17,"in_reply_to":"5ad0253b_e9b44fd2","updated":"2015-04-30 22:12:34.000000000","message":"Done","commit_id":"a1dd9c1cbf9afe2282baff4110820324de3fa615"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"061f05ca42a255ad95d3eed619241970ebb40f02","unresolved":false,"context_lines":[{"line_number":14,"context_line":"      \u003cg class\u003d\"slices\"\u003e\u003c/g\u003e"},{"line_number":15,"context_line":"      \u003cg ng-if\u003d\"::model.settings.showLabel \u0026\u0026 chartData.label\" class\u003d\"pie-chart-label\"\u003e"},{"line_number":16,"context_line":"        \u003ctext dy\u003d\"0.35em\" ng-style\u003d\"model.settings.label\""},{"line_number":17,"context_line":"              ng-class\u003d\"{ \u0027danger\u0027: chartData.overQuota }\"\u003e{$ chartData.label $}\u003c/text\u003e"},{"line_number":18,"context_line":"      \u003c/g\u003e"},{"line_number":19,"context_line":"    \u003c/g\u003e"},{"line_number":20,"context_line":"  \u003c/svg\u003e"}],"source_content_type":"text/html","patch_set":21,"id":"3acd31a7_e1957f40","line":17,"in_reply_to":"5ad0253b_e9b44fd2","updated":"2015-04-30 04:40:47.000000000","message":"This seems like a good idea to fix to me.","commit_id":"a1dd9c1cbf9afe2282baff4110820324de3fa615"}],"horizon/static/angular/charts/pie-chart.js":[{"author":{"_account_id":13785,"name":"Kelly Domico","email":"kelly.domico@hp.com","username":"kdomico"},"change_message_id":"7e33b7e70acd42871fc196486721b01fb75cbc00","unresolved":false,"context_lines":[{"line_number":102,"context_line":"          scope.model \u003d model;"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"          function updateChart() {"},{"line_number":105,"context_line":"            scope.model.total \u003d scope.chartData.maxLimit ? scope.chartData.maxLimit :"},{"line_number":106,"context_line":"              d3.sum(scope.chartData.data, function(d) { return d.value; });"},{"line_number":107,"context_line":"            scope.model.totalLabel \u003d scope.chartData.maxLimit ? gettext(\u0027Max\u0027) :"},{"line_number":108,"context_line":"              gettext(\u0027Total\u0027);"}],"source_content_type":"text/javascript","patch_set":5,"id":"baa041b7_9fba6c22","line":105,"updated":"2015-04-03 04:03:33.000000000","message":"I guess since limit can be 0, use angular.isDefined(scope.chartData.maxLimit) instead. Same for below.","commit_id":"a3cb1c591d1f2e57aca6042aece455e0de2a6418"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"c6fef0bdaabc20b424e052b154ee0d9b477557a9","unresolved":false,"context_lines":[{"line_number":20,"context_line":"     *    title: \u0027Total Instances\u0027,"},{"line_number":21,"context_line":"     *    label: \u002725%\u0027,"},{"line_number":22,"context_line":"     *    maxLimit: 10,"},{"line_number":23,"context_line":"     *    overQuota: false,"},{"line_number":24,"context_line":"     *    data: ["},{"line_number":25,"context_line":"     *      { label: quotaChartDefaults.usageLabel, value: 1, colorClass: quotaChartDefaults.usageColorClass},"},{"line_number":26,"context_line":"     *      { label: quotaChartDefaults.addedLabel, value: 1, colorClass: quotaChartDefaults.addedColorClass },"}],"source_content_type":"text/javascript","patch_set":21,"id":"5ad0253b_89db9b1b","line":23,"updated":"2015-04-28 23:04:37.000000000","message":"nit: maxLimit and overQuota are related but use different terms. Consider standardizing on Max.","commit_id":"a1dd9c1cbf9afe2282baff4110820324de3fa615"},{"author":{"_account_id":11098,"name":"Brian Tully","email":"brian.tully@hpe.com","username":"btully"},"change_message_id":"4af052aa21b3cd3c430757dd82bd4386d46bfcc9","unresolved":false,"context_lines":[{"line_number":20,"context_line":"     *    title: \u0027Total Instances\u0027,"},{"line_number":21,"context_line":"     *    label: \u002725%\u0027,"},{"line_number":22,"context_line":"     *    maxLimit: 10,"},{"line_number":23,"context_line":"     *    overQuota: false,"},{"line_number":24,"context_line":"     *    data: ["},{"line_number":25,"context_line":"     *      { label: quotaChartDefaults.usageLabel, value: 1, colorClass: quotaChartDefaults.usageColorClass},"},{"line_number":26,"context_line":"     *      { label: quotaChartDefaults.addedLabel, value: 1, colorClass: quotaChartDefaults.addedColorClass },"}],"source_content_type":"text/javascript","patch_set":21,"id":"3acd31a7_3c1379ba","line":23,"in_reply_to":"3acd31a7_a19f875e","updated":"2015-04-30 22:12:34.000000000","message":"Done","commit_id":"a1dd9c1cbf9afe2282baff4110820324de3fa615"},{"author":{"_account_id":11098,"name":"Brian Tully","email":"brian.tully@hpe.com","username":"btully"},"change_message_id":"4af052aa21b3cd3c430757dd82bd4386d46bfcc9","unresolved":false,"context_lines":[{"line_number":20,"context_line":"     *    title: \u0027Total Instances\u0027,"},{"line_number":21,"context_line":"     *    label: \u002725%\u0027,"},{"line_number":22,"context_line":"     *    maxLimit: 10,"},{"line_number":23,"context_line":"     *    overQuota: false,"},{"line_number":24,"context_line":"     *    data: ["},{"line_number":25,"context_line":"     *      { label: quotaChartDefaults.usageLabel, value: 1, colorClass: quotaChartDefaults.usageColorClass},"},{"line_number":26,"context_line":"     *      { label: quotaChartDefaults.addedLabel, value: 1, colorClass: quotaChartDefaults.addedColorClass },"}],"source_content_type":"text/javascript","patch_set":21,"id":"3acd31a7_5c4515b1","line":23,"in_reply_to":"5ad0253b_89db9b1b","updated":"2015-04-30 22:12:34.000000000","message":"Done","commit_id":"a1dd9c1cbf9afe2282baff4110820324de3fa615"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"061f05ca42a255ad95d3eed619241970ebb40f02","unresolved":false,"context_lines":[{"line_number":20,"context_line":"     *    title: \u0027Total Instances\u0027,"},{"line_number":21,"context_line":"     *    label: \u002725%\u0027,"},{"line_number":22,"context_line":"     *    maxLimit: 10,"},{"line_number":23,"context_line":"     *    overQuota: false,"},{"line_number":24,"context_line":"     *    data: ["},{"line_number":25,"context_line":"     *      { label: quotaChartDefaults.usageLabel, value: 1, colorClass: quotaChartDefaults.usageColorClass},"},{"line_number":26,"context_line":"     *      { label: quotaChartDefaults.addedLabel, value: 1, colorClass: quotaChartDefaults.addedColorClass },"}],"source_content_type":"text/javascript","patch_set":21,"id":"3acd31a7_a19f875e","line":23,"in_reply_to":"5ad0253b_89db9b1b","updated":"2015-04-30 04:40:47.000000000","message":"overMax makes more sense to me as well.","commit_id":"a1dd9c1cbf9afe2282baff4110820324de3fa615"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"061f05ca42a255ad95d3eed619241970ebb40f02","unresolved":false,"context_lines":[{"line_number":33,"context_line":"     * maxLimit - the max limit for current item (optional)"},{"line_number":34,"context_line":"     *  - if a maxLimit is specified, (# Max) will get added to the chart title"},{"line_number":35,"context_line":"     *  - otherwise (# Total) will be added to the chart title"},{"line_number":36,"context_line":"     * overQuota - used to notify view when quota is surpassed so that we can"},{"line_number":37,"context_line":"     *  dynamically alter UI to warn the user (optional)"},{"line_number":38,"context_line":"     * data - the data used to render chart"},{"line_number":39,"context_line":"     *"}],"source_content_type":"text/javascript","patch_set":21,"id":"3acd31a7_01ecfbc5","line":36,"updated":"2015-04-30 04:40:47.000000000","message":"overMax here too.","commit_id":"a1dd9c1cbf9afe2282baff4110820324de3fa615"},{"author":{"_account_id":11098,"name":"Brian Tully","email":"brian.tully@hpe.com","username":"btully"},"change_message_id":"4af052aa21b3cd3c430757dd82bd4386d46bfcc9","unresolved":false,"context_lines":[{"line_number":33,"context_line":"     * maxLimit - the max limit for current item (optional)"},{"line_number":34,"context_line":"     *  - if a maxLimit is specified, (# Max) will get added to the chart title"},{"line_number":35,"context_line":"     *  - otherwise (# Total) will be added to the chart title"},{"line_number":36,"context_line":"     * overQuota - used to notify view when quota is surpassed so that we can"},{"line_number":37,"context_line":"     *  dynamically alter UI to warn the user (optional)"},{"line_number":38,"context_line":"     * data - the data used to render chart"},{"line_number":39,"context_line":"     *"}],"source_content_type":"text/javascript","patch_set":21,"id":"3acd31a7_1c167da7","line":36,"in_reply_to":"3acd31a7_01ecfbc5","updated":"2015-04-30 22:12:34.000000000","message":"Done","commit_id":"a1dd9c1cbf9afe2282baff4110820324de3fa615"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"c6fef0bdaabc20b424e052b154ee0d9b477557a9","unresolved":false,"context_lines":[{"line_number":103,"context_line":"          scope.model \u003d model;"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"          function updateChart() {"},{"line_number":106,"context_line":"            scope.model.total \u003d angular.isDefined(scope.chartData.maxLimit) ?"},{"line_number":107,"context_line":"              scope.chartData.maxLimit :"},{"line_number":108,"context_line":"              d3.sum(scope.chartData.data, function(d) { return d.value; });"},{"line_number":109,"context_line":"            scope.model.totalLabel \u003d angular.isDefined(scope.chartData.maxLimit)  ?"}],"source_content_type":"text/javascript","patch_set":21,"id":"5ad0253b_e92a0f2c","line":106,"updated":"2015-04-28 23:04:37.000000000","message":"nit: \"? :\" syntax here is hard to read, especially since 106 and 109 are the same check. A single if/else is easier to understand.","commit_id":"a1dd9c1cbf9afe2282baff4110820324de3fa615"},{"author":{"_account_id":11098,"name":"Brian Tully","email":"brian.tully@hpe.com","username":"btully"},"change_message_id":"4af052aa21b3cd3c430757dd82bd4386d46bfcc9","unresolved":false,"context_lines":[{"line_number":103,"context_line":"          scope.model \u003d model;"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"          function updateChart() {"},{"line_number":106,"context_line":"            scope.model.total \u003d angular.isDefined(scope.chartData.maxLimit) ?"},{"line_number":107,"context_line":"              scope.chartData.maxLimit :"},{"line_number":108,"context_line":"              d3.sum(scope.chartData.data, function(d) { return d.value; });"},{"line_number":109,"context_line":"            scope.model.totalLabel \u003d angular.isDefined(scope.chartData.maxLimit)  ?"}],"source_content_type":"text/javascript","patch_set":21,"id":"3acd31a7_dc0fe586","line":106,"in_reply_to":"3acd31a7_41e2f3d6","updated":"2015-04-30 22:12:34.000000000","message":"Done","commit_id":"a1dd9c1cbf9afe2282baff4110820324de3fa615"},{"author":{"_account_id":11098,"name":"Brian Tully","email":"brian.tully@hpe.com","username":"btully"},"change_message_id":"4af052aa21b3cd3c430757dd82bd4386d46bfcc9","unresolved":false,"context_lines":[{"line_number":103,"context_line":"          scope.model \u003d model;"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"          function updateChart() {"},{"line_number":106,"context_line":"            scope.model.total \u003d angular.isDefined(scope.chartData.maxLimit) ?"},{"line_number":107,"context_line":"              scope.chartData.maxLimit :"},{"line_number":108,"context_line":"              d3.sum(scope.chartData.data, function(d) { return d.value; });"},{"line_number":109,"context_line":"            scope.model.totalLabel \u003d angular.isDefined(scope.chartData.maxLimit)  ?"}],"source_content_type":"text/javascript","patch_set":21,"id":"3acd31a7_fc0ce195","line":106,"in_reply_to":"5ad0253b_e92a0f2c","updated":"2015-04-30 22:12:34.000000000","message":"Done","commit_id":"a1dd9c1cbf9afe2282baff4110820324de3fa615"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"061f05ca42a255ad95d3eed619241970ebb40f02","unresolved":false,"context_lines":[{"line_number":103,"context_line":"          scope.model \u003d model;"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"          function updateChart() {"},{"line_number":106,"context_line":"            scope.model.total \u003d angular.isDefined(scope.chartData.maxLimit) ?"},{"line_number":107,"context_line":"              scope.chartData.maxLimit :"},{"line_number":108,"context_line":"              d3.sum(scope.chartData.data, function(d) { return d.value; });"},{"line_number":109,"context_line":"            scope.model.totalLabel \u003d angular.isDefined(scope.chartData.maxLimit)  ?"}],"source_content_type":"text/javascript","patch_set":21,"id":"3acd31a7_41e2f3d6","line":106,"in_reply_to":"5ad0253b_e92a0f2c","updated":"2015-04-30 04:40:47.000000000","message":"Single if would be easier to read in this case.","commit_id":"a1dd9c1cbf9afe2282baff4110820324de3fa615"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"1fc905adc918b03c77211a3346d34d9e165b5395","unresolved":false,"context_lines":[{"line_number":103,"context_line":"          scope.model \u003d model;"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"          function updateChart() {"},{"line_number":106,"context_line":"            // set labels depending on whether this is a quota or total chart"},{"line_number":107,"context_line":"            if (angular.isDefined(scope.chartData.maxLimit)) {"},{"line_number":108,"context_line":"              scope.model.total \u003d scope.chartData.maxLimit;"},{"line_number":109,"context_line":"              scope.model.totalLabel \u003d gettext(\u0027Max\u0027);"}],"source_content_type":"text/javascript","patch_set":23,"id":"3acd31a7_92c4a95f","line":106,"updated":"2015-05-01 14:41:13.000000000","message":"nit: comment change to \"...on whether this is a max or total chart\"","commit_id":"a7243660e74f1accfc71af8e43656c301e06941b"},{"author":{"_account_id":11098,"name":"Brian Tully","email":"brian.tully@hpe.com","username":"btully"},"change_message_id":"d2d9c02cf963e975f8609e26852c4ea299601ccc","unresolved":false,"context_lines":[{"line_number":103,"context_line":"          scope.model \u003d model;"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"          function updateChart() {"},{"line_number":106,"context_line":"            // set labels depending on whether this is a quota or total chart"},{"line_number":107,"context_line":"            if (angular.isDefined(scope.chartData.maxLimit)) {"},{"line_number":108,"context_line":"              scope.model.total \u003d scope.chartData.maxLimit;"},{"line_number":109,"context_line":"              scope.model.totalLabel \u003d gettext(\u0027Max\u0027);"}],"source_content_type":"text/javascript","patch_set":23,"id":"3acd31a7_7d279912","line":106,"in_reply_to":"3acd31a7_92c4a95f","updated":"2015-05-01 19:42:03.000000000","message":"Done","commit_id":"a7243660e74f1accfc71af8e43656c301e06941b"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"1fc905adc918b03c77211a3346d34d9e165b5395","unresolved":false,"context_lines":[{"line_number":109,"context_line":"              scope.model.totalLabel \u003d gettext(\u0027Max\u0027);"},{"line_number":110,"context_line":"            } else {"},{"line_number":111,"context_line":"              scope.model.total \u003d d3.sum(scope.chartData.data, function(d) { return d.value; });"},{"line_number":112,"context_line":"              scope.model.totalLabel \u003d gettext(\u0027Total\u0027);"},{"line_number":113,"context_line":"            }"},{"line_number":114,"context_line":"            scope.model.tooltipData.enabled \u003d false;"},{"line_number":115,"context_line":""}],"source_content_type":"text/javascript","patch_set":23,"id":"3acd31a7_52ba91c1","line":112,"updated":"2015-05-01 14:41:13.000000000","message":"nit: Consider adding test code for the \"total\" case. It looks like the max case has a test, but I didn\u0027t see code for \"total\".","commit_id":"a7243660e74f1accfc71af8e43656c301e06941b"},{"author":{"_account_id":11098,"name":"Brian Tully","email":"brian.tully@hpe.com","username":"btully"},"change_message_id":"d2d9c02cf963e975f8609e26852c4ea299601ccc","unresolved":false,"context_lines":[{"line_number":109,"context_line":"              scope.model.totalLabel \u003d gettext(\u0027Max\u0027);"},{"line_number":110,"context_line":"            } else {"},{"line_number":111,"context_line":"              scope.model.total \u003d d3.sum(scope.chartData.data, function(d) { return d.value; });"},{"line_number":112,"context_line":"              scope.model.totalLabel \u003d gettext(\u0027Total\u0027);"},{"line_number":113,"context_line":"            }"},{"line_number":114,"context_line":"            scope.model.tooltipData.enabled \u003d false;"},{"line_number":115,"context_line":""}],"source_content_type":"text/javascript","patch_set":23,"id":"3acd31a7_5d229d02","line":112,"in_reply_to":"3acd31a7_52ba91c1","updated":"2015-05-01 19:42:03.000000000","message":"Done. Also added test case for OverMax","commit_id":"a7243660e74f1accfc71af8e43656c301e06941b"}],"horizon/static/angular/charts/pie-chart.spec.js":[{"author":{"_account_id":13785,"name":"Kelly Domico","email":"kelly.domico@hp.com","username":"kdomico"},"change_message_id":"a355b1cb1bf4f0ef54dfc9a222011f1f3dcf1dfe","unresolved":false,"context_lines":[{"line_number":26,"context_line":"      title: \u0027Total Instances\u0027,"},{"line_number":27,"context_line":"      label: \u002725%\u0027,"},{"line_number":28,"context_line":"      maxLimit: 8,"},{"line_number":29,"context_line":"      //data: ["},{"line_number":30,"context_line":"      //  { label: \u0027Current\u0027, value: 1, color: \u0027#1f83c6\u0027 },"},{"line_number":31,"context_line":"      //  { label: \u0027Added\u0027, value: 1, color: \u0027#81c1e7\u0027 },"},{"line_number":32,"context_line":"      //  { label: \u0027Remaining\u0027, value: 6, color: \u0027#d1d3d4\u0027, hideKey: true }"}],"source_content_type":"text/javascript","patch_set":8,"id":"baa041b7_6e159f3e","line":29,"updated":"2015-04-03 22:25:59.000000000","message":"Take out comment :)","commit_id":"66e5b0e37e77afac5b3d1d9047546e710ab5000a"}],"openstack_dashboard/static/dashboard/launch-instance/flavor/flavor.js":[{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"c6fef0bdaabc20b424e052b154ee0d9b477557a9","unresolved":false,"context_lines":[{"line_number":211,"context_line":"      }"},{"line_number":212,"context_line":"    };"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"    this.getChartData \u003d function (title, added, totalUsed, maxAllowed) {"},{"line_number":215,"context_line":""},{"line_number":216,"context_line":"      var used \u003d this.defaultIfUndefined(totalUsed, 0);"},{"line_number":217,"context_line":"      var allowed \u003d this.defaultIfUndefined(maxAllowed, 1);"}],"source_content_type":"text/javascript","patch_set":21,"id":"5ad0253b_c902b33e","line":214,"updated":"2015-04-28 23:04:37.000000000","message":"nit: Rather than injecting the defaults, then making each consumer build the chartData, consider moving getChartData to a getQuotaChartData service that simply returns the needed data structure.","commit_id":"a1dd9c1cbf9afe2282baff4110820324de3fa615"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"003fc1a91321102e06aa72d9e77525775f3b6d44","unresolved":false,"context_lines":[{"line_number":215,"context_line":""},{"line_number":216,"context_line":"      var used \u003d this.defaultIfUndefined(totalUsed, 0);"},{"line_number":217,"context_line":"      var allowed \u003d this.defaultIfUndefined(maxAllowed, 1);"},{"line_number":218,"context_line":"      var quotaCalc \u003d Math.ceil((used + added) / allowed * 100);"},{"line_number":219,"context_line":"      var overMax \u003d quotaCalc \u003e 100 ? true : false;"},{"line_number":220,"context_line":""},{"line_number":221,"context_line":"      var usageData \u003d {"}],"source_content_type":"text/javascript","patch_set":25,"id":"3acd31a7_80d562ba","line":218,"updated":"2015-05-03 01:37:12.000000000","message":"Why doesn\u0027t this use Math.round instead of Math.ceil or Math.floor.  It does funny things like make 11 used out of 10 allowed to be 111%.\n\nMath.ceil((0+11) / 10 *100);\n111\n\nSwitching that to Math.floor works here:\n\nMath.floor((0+11) / 10 *100);\n\n110\n\nBut then Math.floor is wrong in other cases (9 out of 11 used is 81.81%:\n\nMath.floor((1+8) / 11 *100);\n\n81\n\nMath.ceil looks right here:\n\nMath.ceil((1+8) / 11 *100);\n\n82\n\nBut Math.round seems to work in both cases:\n\nMath.round((1+8) / 11 * 100);\n\n82\n\nMath.round((0+11) / 10 * 100);\n\n110","commit_id":"4f116b370d4f3797f4a36b59a48f90633c95a3a8"}],"openstack_dashboard/static/dashboard/launch-instance/flavor/select-flavor-table.html":[{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"c6fef0bdaabc20b424e052b154ee0d9b477557a9","unresolved":false,"context_lines":[{"line_number":102,"context_line":"      \u003ch5\u003e{$ ::quotaImpactLabel $}\u003c/h5\u003e"},{"line_number":103,"context_line":"      \u003cpie-chart chart-data\u003d\"item.instancesChartData\""},{"line_number":104,"context_line":"                 chart-settings\u003d\"chartSettings\""},{"line_number":105,"context_line":"                 ng-class\u003d\"{ \u0027danger\u0027: item.instancesChartData.overQuota }\"\u003e\u003c/pie-chart\u003e"},{"line_number":106,"context_line":"      \u003cpie-chart chart-data\u003d\"item.vcpusChartData\""},{"line_number":107,"context_line":"                 chart-settings\u003d\"chartSettings\""},{"line_number":108,"context_line":"                 ng-class\u003d\"{ \u0027danger\u0027: item.vcpusChartData.overQuota }\"\u003e\u003c/pie-chart\u003e"}],"source_content_type":"text/html","patch_set":21,"id":"5ad0253b_096d4b04","line":105,"updated":"2015-04-28 23:04:37.000000000","message":"nit: since I set a maxLimit for this chart...why do I have to set the danger class? I\u0027d prefer pie-chart does that for me. Consider allowing the user to simply pass in an overQuota attribute to pie-chart...or specializing pie-chart to quota-pie-chart so that it can automatically calculate overQuota.","commit_id":"a1dd9c1cbf9afe2282baff4110820324de3fa615"},{"author":{"_account_id":11098,"name":"Brian Tully","email":"brian.tully@hpe.com","username":"btully"},"change_message_id":"4af052aa21b3cd3c430757dd82bd4386d46bfcc9","unresolved":false,"context_lines":[{"line_number":102,"context_line":"      \u003ch5\u003e{$ ::quotaImpactLabel $}\u003c/h5\u003e"},{"line_number":103,"context_line":"      \u003cpie-chart chart-data\u003d\"item.instancesChartData\""},{"line_number":104,"context_line":"                 chart-settings\u003d\"chartSettings\""},{"line_number":105,"context_line":"                 ng-class\u003d\"{ \u0027danger\u0027: item.instancesChartData.overQuota }\"\u003e\u003c/pie-chart\u003e"},{"line_number":106,"context_line":"      \u003cpie-chart chart-data\u003d\"item.vcpusChartData\""},{"line_number":107,"context_line":"                 chart-settings\u003d\"chartSettings\""},{"line_number":108,"context_line":"                 ng-class\u003d\"{ \u0027danger\u0027: item.vcpusChartData.overQuota }\"\u003e\u003c/pie-chart\u003e"}],"source_content_type":"text/html","patch_set":21,"id":"3acd31a7_bc40a9a6","line":105,"in_reply_to":"5ad0253b_096d4b04","updated":"2015-04-30 22:12:34.000000000","message":"Done","commit_id":"a1dd9c1cbf9afe2282baff4110820324de3fa615"}],"openstack_dashboard/static/dashboard/launch-instance/launch-instance.js":[{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"c01cde2822b9817694d8f4bbdbc0adad83f66865","unresolved":false,"context_lines":[{"line_number":60,"context_line":"  });"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"  // quota chart default settings"},{"line_number":63,"context_line":"  module.constant(\u0027quotaChartDefaults\u0027, {"},{"line_number":64,"context_line":"    dataCurrentUsageLabel: gettext(\u0027Current Usage\u0027),"},{"line_number":65,"context_line":"    dataCurrentUsageColor: \u0027#1f83c6\u0027,"},{"line_number":66,"context_line":"    dataAddedLabel: gettext(\u0027Added\u0027),"}],"source_content_type":"text/javascript","patch_set":1,"id":"1a6ced46_a9abb5d4","line":63,"updated":"2015-03-24 19:55:35.000000000","message":"I don\u0027t think this has a good reason to live in launch instance. Quota charts are features that will likely be useful on other components in horizon. Move this to a different module, perhaps hz.dashboard.constants.","commit_id":"de797cf6f983f81af7054e70fe3e9b2b42dfeca8"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"c01cde2822b9817694d8f4bbdbc0adad83f66865","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"  // quota chart default settings"},{"line_number":63,"context_line":"  module.constant(\u0027quotaChartDefaults\u0027, {"},{"line_number":64,"context_line":"    dataCurrentUsageLabel: gettext(\u0027Current Usage\u0027),"},{"line_number":65,"context_line":"    dataCurrentUsageColor: \u0027#1f83c6\u0027,"},{"line_number":66,"context_line":"    dataAddedLabel: gettext(\u0027Added\u0027),"},{"line_number":67,"context_line":"    dataAddedColor: \u0027#81c1e7\u0027,"}],"source_content_type":"text/javascript","patch_set":1,"id":"1a6ced46_de542523","line":64,"updated":"2015-03-24 19:55:35.000000000","message":"property is very verbose. Instead, how about:\n\nusageLabel, addedLabel, remainingLabel","commit_id":"de797cf6f983f81af7054e70fe3e9b2b42dfeca8"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"c01cde2822b9817694d8f4bbdbc0adad83f66865","unresolved":false,"context_lines":[{"line_number":62,"context_line":"  // quota chart default settings"},{"line_number":63,"context_line":"  module.constant(\u0027quotaChartDefaults\u0027, {"},{"line_number":64,"context_line":"    dataCurrentUsageLabel: gettext(\u0027Current Usage\u0027),"},{"line_number":65,"context_line":"    dataCurrentUsageColor: \u0027#1f83c6\u0027,"},{"line_number":66,"context_line":"    dataAddedLabel: gettext(\u0027Added\u0027),"},{"line_number":67,"context_line":"    dataAddedColor: \u0027#81c1e7\u0027,"},{"line_number":68,"context_line":"    dataRemainingLabel: gettext(\u0027Remaining\u0027),"}],"source_content_type":"text/javascript","patch_set":1,"id":"1a6ced46_de4a65ab","line":65,"updated":"2015-03-24 19:55:35.000000000","message":"Can colors move to variables.scss to allow easier restyling?","commit_id":"de797cf6f983f81af7054e70fe3e9b2b42dfeca8"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"c01cde2822b9817694d8f4bbdbc0adad83f66865","unresolved":false,"context_lines":[{"line_number":89,"context_line":"    $scope.workflow \u003d launchInstanceWorkflow;"},{"line_number":90,"context_line":"    $scope.model \u003d launchInstanceModel;"},{"line_number":91,"context_line":"    $scope.model.initialize(true);"},{"line_number":92,"context_line":"    $scope.quotaChartDefaults \u003d quotaChartDefaults;"},{"line_number":93,"context_line":"    $scope.submit \u003d $scope.model.createInstance;"},{"line_number":94,"context_line":"  }"},{"line_number":95,"context_line":""}],"source_content_type":"text/javascript","patch_set":1,"id":"1a6ced46_5eed958a","line":92,"updated":"2015-03-24 19:55:35.000000000","message":"wizard doesn\u0027t use quota charts itself. Instead, inject this dependency into the steps that actually make charts.","commit_id":"de797cf6f983f81af7054e70fe3e9b2b42dfeca8"}],"openstack_dashboard/static/dashboard/launch-instance/source/source.js":[{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"c6fef0bdaabc20b424e052b154ee0d9b477557a9","unresolved":false,"context_lines":[{"line_number":377,"context_line":"      var instance_count \u003d $scope.model.newInstanceSpec.instance_count || 1;"},{"line_number":378,"context_line":""},{"line_number":379,"context_line":"      var data \u003d $scope.instanceStats.data;"},{"line_number":380,"context_line":"      var added \u003d selection.length * instance_count;"},{"line_number":381,"context_line":"      var remaining \u003d Math.max(0, maxTotalInstances - totalInstancesUsed - added);"},{"line_number":382,"context_line":""},{"line_number":383,"context_line":"      $scope.instanceStats.maxLimit \u003d maxTotalInstances;"}],"source_content_type":"text/javascript","patch_set":21,"id":"5ad0253b_291da773","line":380,"updated":"2015-04-28 23:04:37.000000000","message":"nit: much of this logic is similar to what flavor getChartData has to do. Consider merging it together into a common service that reduces duplication and makes for easier testing.","commit_id":"a1dd9c1cbf9afe2282baff4110820324de3fa615"}],"openstack_dashboard/static/dashboard/launch-instance/source/source.scss":[{"author":{"_account_id":12826,"name":"Rob Cresswell","display_name":"robcresswell","email":"robert.cresswell@outlook.com","username":"rob-cresswell"},"change_message_id":"b35ff91e7b105f9f65801c3ad3f3c15077b351c3","unresolved":false,"context_lines":[{"line_number":10,"context_line":"    padding-right: 30px;"},{"line_number":11,"context_line":"  }"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"  .selected-source {"},{"line_number":15,"context_line":"    background: #eee;"},{"line_number":16,"context_line":"    padding: 12px 18px;"}],"source_content_type":"text/x-scss","patch_set":26,"id":"1aca2d91_197eb9e4","line":13,"updated":"2015-05-06 12:30:17.000000000","message":"nit:whitespace","commit_id":"80b4dd26c87bb0abb5d14b4efd3aaa81ceeb2c61"},{"author":{"_account_id":11098,"name":"Brian Tully","email":"brian.tully@hpe.com","username":"btully"},"change_message_id":"d6bb037071d1cf7e5c1f1dd962725511af8b6732","unresolved":false,"context_lines":[{"line_number":10,"context_line":"    padding-right: 30px;"},{"line_number":11,"context_line":"  }"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"  .selected-source {"},{"line_number":15,"context_line":"    background: #eee;"},{"line_number":16,"context_line":"    padding: 12px 18px;"}],"source_content_type":"text/x-scss","patch_set":26,"id":"1aca2d91_e348d92f","line":13,"in_reply_to":"1aca2d91_197eb9e4","updated":"2015-05-06 19:29:32.000000000","message":"Done","commit_id":"80b4dd26c87bb0abb5d14b4efd3aaa81ceeb2c61"},{"author":{"_account_id":12826,"name":"Rob Cresswell","display_name":"robcresswell","email":"robert.cresswell@outlook.com","username":"rob-cresswell"},"change_message_id":"b35ff91e7b105f9f65801c3ad3f3c15077b351c3","unresolved":false,"context_lines":[{"line_number":21,"context_line":"      width: 99%;"},{"line_number":22,"context_line":"      margin-bottom: 0;"},{"line_number":23,"context_line":"      padding: 0 10px 10px 10px;"},{"line_number":24,"context_line":"      margin-top: -5px;"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"      @media (min-width: 768px) {"},{"line_number":27,"context_line":"        border-left: 1px solid #ccc;"}],"source_content_type":"text/x-scss","patch_set":26,"id":"1aca2d91_744b745a","line":24,"updated":"2015-05-06 12:30:17.000000000","message":"I might be missing a trick here, but wouldn\u0027t it be easier just to remove the top padding on the \"Total Instances\" title, rather than negative margins?","commit_id":"80b4dd26c87bb0abb5d14b4efd3aaa81ceeb2c61"},{"author":{"_account_id":11098,"name":"Brian Tully","email":"brian.tully@hpe.com","username":"btully"},"change_message_id":"d6bb037071d1cf7e5c1f1dd962725511af8b6732","unresolved":false,"context_lines":[{"line_number":21,"context_line":"      width: 99%;"},{"line_number":22,"context_line":"      margin-bottom: 0;"},{"line_number":23,"context_line":"      padding: 0 10px 10px 10px;"},{"line_number":24,"context_line":"      margin-top: -5px;"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"      @media (min-width: 768px) {"},{"line_number":27,"context_line":"        border-left: 1px solid #ccc;"}],"source_content_type":"text/x-scss","patch_set":26,"id":"1aca2d91_802c7b4b","line":24,"in_reply_to":"1aca2d91_744b745a","updated":"2015-05-06 19:29:32.000000000","message":"I don\u0027t make a habit of using negative margins, but this was used specifically for the source step instance in order to match the mockup and allow the top of the vertical rule to start before the chart title. I\u0027ve removed it for now in the hopes to get this patch approved since it is blocking a dependent patch that is a bug fix.","commit_id":"80b4dd26c87bb0abb5d14b4efd3aaa81ceeb2c61"}],"openstack_dashboard/static/dashboard/scss/_variables.scss":[{"author":{"_account_id":12826,"name":"Rob Cresswell","display_name":"robcresswell","email":"robert.cresswell@outlook.com","username":"rob-cresswell"},"change_message_id":"b35ff91e7b105f9f65801c3ad3f3c15077b351c3","unresolved":false,"context_lines":[{"line_number":192,"context_line":"$chart-quota-danger-color: $brand-danger !default;"},{"line_number":193,"context_line":"$chart-slice-legend-padding: 0.2em 0 !default;"},{"line_number":194,"context_line":"$chart-title-font-color: #555 !default;"},{"line_number":195,"context_line":"$chart-title-font-size: .9em !default;"},{"line_number":196,"context_line":"$chart-title-font-size-large: 1.1em !default;"},{"line_number":197,"context_line":"$chart-title-padding: 0.5em 0 !default;"},{"line_number":198,"context_line":"$chart-title-weight: 600 !default;"}],"source_content_type":"text/x-scss","patch_set":26,"id":"1aca2d91_94da9077","line":195,"updated":"2015-05-06 12:30:17.000000000","message":"If you remove the title top padding, and the -5px margin, this can be left as 1em and aligns nicer IMO. Also means less CSS.","commit_id":"80b4dd26c87bb0abb5d14b4efd3aaa81ceeb2c61"},{"author":{"_account_id":11098,"name":"Brian Tully","email":"brian.tully@hpe.com","username":"btully"},"change_message_id":"d6bb037071d1cf7e5c1f1dd962725511af8b6732","unresolved":false,"context_lines":[{"line_number":192,"context_line":"$chart-quota-danger-color: $brand-danger !default;"},{"line_number":193,"context_line":"$chart-slice-legend-padding: 0.2em 0 !default;"},{"line_number":194,"context_line":"$chart-title-font-color: #555 !default;"},{"line_number":195,"context_line":"$chart-title-font-size: .9em !default;"},{"line_number":196,"context_line":"$chart-title-font-size-large: 1.1em !default;"},{"line_number":197,"context_line":"$chart-title-padding: 0.5em 0 !default;"},{"line_number":198,"context_line":"$chart-title-weight: 600 !default;"}],"source_content_type":"text/x-scss","patch_set":26,"id":"1aca2d91_40442373","line":195,"in_reply_to":"1aca2d91_94da9077","updated":"2015-05-06 19:29:32.000000000","message":".9em matches the mockups more closely, IMHO. We can certainly revisit this on Invision along with any other changes to the chart design, but ideally we could push this patch through ASAP (since it fixes some bugs and is blocking a dependent patch) and file a separate bug for additional suggestions :)","commit_id":"80b4dd26c87bb0abb5d14b4efd3aaa81ceeb2c61"}]}
