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">
|
<t.sort-by @prop="name">
|
||||||
Name
|
Name
|
||||||
</t.sort-by>
|
</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>
|
<t.sort-by @prop="submitTime" data-test-jobs-submit-time-header>
|
||||||
Submitted At
|
Submitted At
|
||||||
</t.sort-by>
|
</t.sort-by>
|
||||||
<t.sort-by @prop="status">
|
<t.sort-by @prop="status">
|
||||||
Status
|
Status
|
||||||
</t.sort-by>
|
</t.sort-by>
|
||||||
<t.sort-by @prop="type">
|
|
||||||
Type
|
|
||||||
</t.sort-by>
|
|
||||||
<t.sort-by @prop="priority">
|
|
||||||
Priority
|
|
||||||
</t.sort-by>
|
|
||||||
<th>
|
<th>
|
||||||
Groups
|
Groups
|
||||||
</th>
|
</th>
|
||||||
|
|
|
@ -25,11 +25,13 @@
|
||||||
|
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
</td>
|
</td>
|
||||||
|
{{#if (not (eq @context "child"))}}
|
||||||
{{#if this.system.shouldShowNamespaces}}
|
{{#if this.system.shouldShowNamespaces}}
|
||||||
<td data-test-job-namespace>
|
<td data-test-job-namespace>
|
||||||
{{this.job.namespace.name}}
|
{{this.job.namespace.name}}
|
||||||
</td>
|
</td>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
{{#if (eq @context "child")}}
|
{{#if (eq @context "child")}}
|
||||||
<td data-test-job-submit-time>
|
<td data-test-job-submit-time>
|
||||||
{{format-month-ts this.job.submitTime}}
|
{{format-month-ts this.job.submitTime}}
|
||||||
|
@ -40,12 +42,14 @@
|
||||||
{{this.job.status}}
|
{{this.job.status}}
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
|
{{#if (not (eq @context "child"))}}
|
||||||
<td data-test-job-type>
|
<td data-test-job-type>
|
||||||
{{this.job.displayType.type}}
|
{{this.job.displayType.type}}
|
||||||
</td>
|
</td>
|
||||||
<td data-test-job-priority>
|
<td data-test-job-priority>
|
||||||
{{this.job.priority}}
|
{{this.job.priority}}
|
||||||
</td>
|
</td>
|
||||||
|
{{/if}}
|
||||||
<td data-test-job-task-groups>
|
<td data-test-job-task-groups>
|
||||||
{{#if this.job.taskGroupCount}}
|
{{#if this.job.taskGroupCount}}
|
||||||
{{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;
|
return parent;
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'display namespace in children table': async function (job, assert) {
|
"don't display namespace in children table": async function (job, assert) {
|
||||||
assert.ok(JobDetail.jobsHeader.hasNamespace);
|
assert.notOk(JobDetail.jobsHeader.hasNamespace);
|
||||||
assert.equal(JobDetail.jobs[0].namespace, job.namespace);
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -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;
|
return parent;
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'display namespace in children table': async function (job, assert) {
|
"don't display namespace in children table": async function (job, assert) {
|
||||||
assert.ok(JobDetail.jobsHeader.hasNamespace);
|
assert.notOk(JobDetail.jobsHeader.hasNamespace);
|
||||||
assert.equal(JobDetail.jobs[0].namespace, job.namespace);
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
@ -108,6 +108,8 @@ export default create({
|
||||||
scope: '[data-test-jobs-header]',
|
scope: '[data-test-jobs-header]',
|
||||||
hasSubmitTime: isPresent('[data-test-jobs-submit-time-header]'),
|
hasSubmitTime: isPresent('[data-test-jobs-submit-time-header]'),
|
||||||
hasNamespace: isPresent('[data-test-jobs-namespace-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]', {
|
jobs: collection('[data-test-job-row]', {
|
||||||
|
|
Loading…
Reference in New Issue