Bug 476024 - Include the test plan name in the Product dashboard Test case tab. patch by maparent@miranda.com; r=ghendricks

git-svn-id: svn://10.0.0.236/trunk@257877 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ghendricks%novell.com
2009-07-30 20:44:47 +00:00
parent 88497320a8
commit ad82661a98
4 changed files with 13 additions and 7 deletions

View File

@@ -28,6 +28,7 @@
#
# Contributor(s): Greg Hendricks <ghendricks@novell.com>
# Jeff Dayley <jedayley@novell.com>
# M-A Parent <maparent@miranda.com>
package Bugzilla::Testopia::TestCase;
@@ -1674,6 +1675,7 @@ sub TO_JSON {
$obj->{$field} = $self->{$field};
}
$obj->{'plan_name'} = ${$self->plans}[0]->name;
$obj->{'run_count'} = $self->run_count;
$obj->{'author_name'} = $self->author->name if $self->author;
$obj->{'default_tester'} = $self->default_tester->name if $self->default_tester;

View File

@@ -18,6 +18,7 @@
* Contributor(s): Greg Hendricks <ghendricks@novell.com>
* Ryan Hamilton <rhamilton@novell.com>
* Daniel Parker <dparker1@novell.com>
* M-A Parent<maparent@miranda.com>
*/
CasePanel = function(params,cfg){
@@ -102,8 +103,8 @@ CaseGrid = function(params, cfg){
{name: "product_id", mapping:"product_id"},
{name: "component", mapping:"component"},
{name: "modified", mapping:"modified"},
{name: "isautomated", mapping:"isautomated"}
{name: "isautomated", mapping:"isautomated"},
{name: "plan_name", mapping:"plan_name"}
]}),
remoteSort: true,
sortInfo: {field: 'case_id', direction: "ASC"},
@@ -173,7 +174,8 @@ CaseGrid = function(params, cfg){
name: 'requirement'
}))
},
{header: "Plan", width: 40, sortable: true, dataIndex: 'plan_id', hidden: true, renderer: tutil.plan_link, groupRenderer: function(v){return v;}},
{header: "Plan", width: 40, sortable: true, dataIndex: 'plan_id', hidden: true, renderer: tutil.plan_link,
groupRenderer: function(v, u, r){return v + ': "' + r.get('plan_name') + '"';}},
{header: "Run Count", width: 40, sortable: false, dataIndex: 'run_count', hidden: true}
];
this.view = new Ext.grid.GroupingView({

View File

@@ -3036,6 +3036,7 @@ PlanClonePopup = function(plan){
* Contributor(s): Greg Hendricks <ghendricks@novell.com>
* Ryan Hamilton <rhamilton@novell.com>
* Daniel Parker <dparker1@novell.com>
* M-A Parent<maparent@miranda.com>
*/
CasePanel = function(params,cfg){
@@ -3120,8 +3121,8 @@ CaseGrid = function(params, cfg){
{name: "product_id", mapping:"product_id"},
{name: "component", mapping:"component"},
{name: "modified", mapping:"modified"},
{name: "isautomated", mapping:"isautomated"}
{name: "isautomated", mapping:"isautomated"},
{name: "plan_name", mapping:"plan_name"}
]}),
remoteSort: true,
sortInfo: {field: 'case_id', direction: "ASC"},
@@ -3191,7 +3192,8 @@ CaseGrid = function(params, cfg){
name: 'requirement'
}))
},
{header: "Plan", width: 40, sortable: true, dataIndex: 'plan_id', hidden: true, renderer: tutil.plan_link, groupRenderer: function(v){return v;}},
{header: "Plan", width: 40, sortable: true, dataIndex: 'plan_id', hidden: true, renderer: tutil.plan_link,
groupRenderer: function(v, u, r){return v + ': "' + r.get('plan_name') + '"';}},
{header: "Run Count", width: 40, sortable: false, dataIndex: 'run_count', hidden: true}
];
this.view = new Ext.grid.GroupingView({

File diff suppressed because one or more lines are too long