ui: remove redundant columns from child job table (#17645)
Namespace, job type, and priority are already available from the parent job header, so displaying them in the table caused it to be too crowded.
This commit is contained in:
parent
4e2d019639
commit
3d761e712b
|
@ -0,0 +1,3 @@
|
|||
```release-note:improvement
|
||||
ui: remove namespace, type, and priority columns from child job table
|
||||
```
|
|
@ -46,23 +46,12 @@
|
|||
<t.sort-by @prop="name">
|
||||
Name
|
||||
</t.sort-by>
|
||||
{{#if this.system.shouldShowNamespaces}}
|
||||
<t.sort-by @prop="namespace.name" data-test-jobs-namespace-header>
|
||||
Namespace
|
||||
</t.sort-by>
|
||||
{{/if}}
|
||||
<t.sort-by @prop="submitTime" data-test-jobs-submit-time-header>
|
||||
Submitted At
|
||||
</t.sort-by>
|
||||
<t.sort-by @prop="status">
|
||||
Status
|
||||
</t.sort-by>
|
||||
<t.sort-by @prop="type">
|
||||
Type
|
||||
</t.sort-by>
|
||||
<t.sort-by @prop="priority">
|
||||
Priority
|
||||
</t.sort-by>
|
||||
<th>
|
||||
Groups
|
||||
</th>
|
||||
|
|
|
@ -25,10 +25,12 @@
|
|||
|
||||
</LinkTo>
|
||||
</td>
|
||||
{{#if this.system.shouldShowNamespaces}}
|
||||
{{#if (not (eq @context "child"))}}
|
||||
{{#if this.system.shouldShowNamespaces}}
|
||||
<td data-test-job-namespace>
|
||||
{{this.job.namespace.name}}
|
||||
</td>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{#if (eq @context "child")}}
|
||||
<td data-test-job-submit-time>
|
||||
|
@ -40,12 +42,14 @@
|
|||
{{this.job.status}}
|
||||
</span>
|
||||
</td>
|
||||
<td data-test-job-type>
|
||||
{{#if (not (eq @context "child"))}}
|
||||
<td data-test-job-type>
|
||||
{{this.job.displayType.type}}
|
||||
</td>
|
||||
<td data-test-job-priority>
|
||||
</td>
|
||||
<td data-test-job-priority>
|
||||
{{this.job.priority}}
|
||||
</td>
|
||||
</td>
|
||||
{{/if}}
|
||||
<td data-test-job-task-groups>
|
||||
{{#if this.job.taskGroupCount}}
|
||||
{{this.job.taskGroupCount}}
|
||||
|
|
|
@ -171,6 +171,13 @@ moduleForJob(
|
|||
)
|
||||
);
|
||||
},
|
||||
"don't display redundant information in children table": async function (
|
||||
job,
|
||||
assert
|
||||
) {
|
||||
assert.notOk(JobDetail.jobsHeader.hasPriority);
|
||||
assert.notOk(JobDetail.jobsHeader.hasType);
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -186,9 +193,8 @@ moduleForJob(
|
|||
return parent;
|
||||
},
|
||||
{
|
||||
'display namespace in children table': async function (job, assert) {
|
||||
assert.ok(JobDetail.jobsHeader.hasNamespace);
|
||||
assert.equal(JobDetail.jobs[0].namespace, job.namespace);
|
||||
"don't display namespace in children table": async function (job, assert) {
|
||||
assert.notOk(JobDetail.jobsHeader.hasNamespace);
|
||||
},
|
||||
}
|
||||
);
|
||||
|
@ -216,6 +222,13 @@ moduleForJob(
|
|||
)
|
||||
);
|
||||
},
|
||||
"don't display redundant information in children table": async function (
|
||||
job,
|
||||
assert
|
||||
) {
|
||||
assert.notOk(JobDetail.jobsHeader.hasPriority);
|
||||
assert.notOk(JobDetail.jobsHeader.hasType);
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -231,9 +244,8 @@ moduleForJob(
|
|||
return parent;
|
||||
},
|
||||
{
|
||||
'display namespace in children table': async function (job, assert) {
|
||||
assert.ok(JobDetail.jobsHeader.hasNamespace);
|
||||
assert.equal(JobDetail.jobs[0].namespace, job.namespace);
|
||||
"don't display namespace in children table": async function (job, assert) {
|
||||
assert.notOk(JobDetail.jobsHeader.hasNamespace);
|
||||
},
|
||||
}
|
||||
);
|
||||
|
|
|
@ -108,6 +108,8 @@ export default create({
|
|||
scope: '[data-test-jobs-header]',
|
||||
hasSubmitTime: isPresent('[data-test-jobs-submit-time-header]'),
|
||||
hasNamespace: isPresent('[data-test-jobs-namespace-header]'),
|
||||
hasType: isPresent('[data-test-jobs-type-header]'),
|
||||
hasPriority: isPresent('[data-test-jobs-priority-header]'),
|
||||
},
|
||||
|
||||
jobs: collection('[data-test-job-row]', {
|
||||
|
|
Loading…
Reference in New Issue