<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>77924</bug_id>
          
          <creation_ts>2012-02-06 18:36:50 -0800</creation_ts>
          <short_desc>Dashboard on perf-o-matic should be sorted</short_desc>
          <delta_ts>2012-04-23 00:00:33 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Website</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Ryosuke Niwa">rniwa</assigned_to>
          <cc>abarth</cc>
    
    <cc>morrita</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>550514</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-02-06 18:36:50 -0800</bug_when>
    <thetext>Right now, the tests on the dashboard show up on random order( depends on how Python generates JSON, which in turn depends on how they order hashed strings). We should sort them nicely so that people don&apos;t have to keep looking for the tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>550521</commentid>
    <comment_count>1</comment_count>
      <attachid>125750</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-02-06 18:43:25 -0800</bug_when>
    <thetext>Created attachment 125750
Fixes the bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>551072</commentid>
    <comment_count>2</comment_count>
      <attachid>125750</attachid>
    <who name="Tony Chang">tony</who>
    <bug_when>2012-02-07 09:58:47 -0800</bug_when>
    <thetext>Comment on attachment 125750
Fixes the bug

View in context: https://bugs.webkit.org/attachment.cgi?id=125750&amp;action=review

&gt; Websites/webkit-perf.appspot.com/js/config.js:84
&gt; +        for (test in testToId)
&gt; +            tests.push(test);

Can you use Object.keys(testToId)?

&gt; Websites/webkit-perf.appspot.com/js/config.js:88
&gt; +        for (var i = 0; i &lt; tests.length; i++)
&gt; +            sortedTestToId[tests[i]] = testToId[tests[i]];
&gt; +        dashboardManifest[&apos;testToId&apos;] = sortedTestToId;

This is OK, but it would be more efficient to sort when you use dashboardManifest[&apos;testToId&apos;].  I guess that involves changing perfomatic code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>551107</commentid>
    <comment_count>3</comment_count>
      <attachid>125750</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-02-07 10:34:28 -0800</bug_when>
    <thetext>Comment on attachment 125750
Fixes the bug

View in context: https://bugs.webkit.org/attachment.cgi?id=125750&amp;action=review

&gt;&gt; Websites/webkit-perf.appspot.com/js/config.js:84
&gt;&gt; +            tests.push(test);
&gt; 
&gt; Can you use Object.keys(testToId)?

Sure.

&gt;&gt; Websites/webkit-perf.appspot.com/js/config.js:88
&gt;&gt; +        dashboardManifest[&apos;testToId&apos;] = sortedTestToId;
&gt; 
&gt; This is OK, but it would be more efficient to sort when you use dashboardManifest[&apos;testToId&apos;].  I guess that involves changing perfomatic code.

Right. And we can&apos;t sort tests on Mozilla&apos;s version (the order is hard-coded there).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>607508</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-04-23 00:00:33 -0700</bug_when>
    <thetext>Fixed in http://trac.webkit.org/changeset/106960.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>125750</attachid>
            <date>2012-02-06 18:43:25 -0800</date>
            <delta_ts>2012-02-07 10:34:28 -0800</delta_ts>
            <desc>Fixes the bug</desc>
            <filename>bug-77924-20120206184324.patch</filename>
            <type>text/plain</type>
            <size>1564</size>
            <attacher name="Ryosuke Niwa">rniwa</attacher>
            
              <data encoding="base64">SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBDaGFuZ2VMb2cJKHJldmlzaW9uIDEwNjg5
MSkKKysrIENoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE1IEBACisyMDEyLTAy
LTA2ICBSeW9zdWtlIE5pd2EgIDxybml3YUB3ZWJraXQub3JnPgorCisgICAgICAgIERhc2hib2Fy
ZCBvbiBwZXJmLW8tbWF0aWMgc2hvdWxkIGJlIHNvcnRlZAorICAgICAgICBodHRwczovL2J1Z3Mu
d2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9Nzc5MjQKKworICAgICAgICBSZXZpZXdlZCBieSBO
T0JPRFkgKE9PUFMhKS4KKworICAgICAgICBTb3J0IHRlc3RzIGluIHRoZSBmcm9udGVuZCB1c2lu
ZyB0aGUgZmFjdCBFUzUga2VlcHMgdGhlIHByb3BlcnR5IG9yZGVyIGluIHRoZSBpbnNlcnRpb24g
b3JkZXIuCisKKyAgICAgICAgKiBXZWJzaXRlcy93ZWJraXQtcGVyZi5hcHBzcG90LmNvbS9qcy9j
b25maWcuanM6CisgICAgICAgIChmZXRjaERhc2hib2FyZE1hbmlmZXN0KToKKwogMjAxMi0wMi0w
NiAgUnlvc3VrZSBOaXdhICA8cm5pd2FAd2Via2l0Lm9yZz4KIAogICAgICAgICBQZXJmLW8tbWF0
aWMgc2hvdWxkIHNob3cgbWluL21heC9zdGRldiBvbi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Vz
dFsndGVzdFRvSWQnXSA9IHNvcnRlZFRlc3RUb0lkOworICAgICAgICBjYWxsYmFjayhkYXNoYm9h
cmRNYW5pZmVzdCk7CisgICAgfSk7CiB9Cg==
</data>
<flag name="review"
          id="127334"
          type_id="1"
          status="+"
          setter="tony"
    />
          </attachment>
      

    </bug>

</bugzilla>