Fix rendering of metrics with dots in their name

[?]
Mar 25, 2016, 12:24 PM
RQTECBWX4URRO7RFU67V3KBY2TSSJK2MJ7Q67INAOF4R27VZKRDAC

Dependencies

  • [2] CVWVXXJU Scale the Y axis to the visible points
  • [3] T5BIOVJE Add support for tracking custom metrics
  • [4] BB2KXLXZ Move the build time chart to the job page
  • [5] 6GZZDDQB Move the store path size chart to the job page
  • [6] XAJFR6SR Add a chart to the job pages showing the closure size over time
  • [*] IK53RV4V
  • [*] ODNCGFQ5 * Improved the navigation bar: don't include all projects (since that

Change contents

  • edit in src/root/common.tt at line 577
    [4.763]
    [4.763]
    var id = "[%id%]";
  • replacement in src/root/common.tt at line 605
    [4.1418][4.1418:1481]()
    var plot = $.plot($("#[%id%]-chart"), [d], options);
    [4.1418]
    [4.1481]
    var plot = $.plot($("#" + id + "-chart"), [d], options);
  • replacement in src/root/common.tt at line 607
    [4.1482][4.1482:1544]()
    var overview = $.plot($("#[%id%]-overview"), [d], {
    [4.1482]
    [4.1544]
    var overview = $.plot($("#" + id + "-overview"), [d], {
  • replacement in src/root/common.tt at line 619
    [4.1858][4.1858:1935]()
    $("#[%id%]-chart").bind("plotselected", function (event, ranges) {
    [4.1858]
    [2.0]
    $("#" + id + "-chart").bind("plotselected", function (event, ranges) {
  • replacement in src/root/common.tt at line 628
    [4.1965][4.1965:2016]()
    plot = $.plot($("#[%id%]-chart"), [d],
    [4.1965]
    [4.2016]
    plot = $.plot($("#" + id + "-chart"), [d],
  • replacement in src/root/common.tt at line 638
    [4.2288][4.2288:2368]()
    $("#[%id%]-overview").bind("plotselected", function (event, ranges) {
    [4.2288]
    [4.2368]
    $("#" + id + "-overview").bind("plotselected", function (event, ranges) {
  • replacement in src/root/common.tt at line 642
    [4.2422][4.2422:2495]()
    $("#[%id%]-chart").bind("plotclick", function (e, pos, item) {
    [4.2422]
    [4.2495]
    $("#" + id + "-chart").bind("plotclick", function (e, pos, item) {
  • replacement in src/root/job.tt at line 105
    [3.8913][3.8913:9053]()
    [% INCLUDE createChart id="metric-${metric.name}" dataUrl=c.uri_for('/job' project.name jobset.name job.name 'metric' metric.name) %]
    [3.8913]
    [3.9053]
    [% id = "metric-" _ metric.name;
    id = id.replace('\.', '_');
    INCLUDE createChart dataUrl=c.uri_for('/job' project.name jobset.name job.name 'metric' metric.name); %]