Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
9e961fe0
Commit
9e961fe0
authored
7 years ago
by
Michael Lange
Browse files
Options
Download
Email Patches
Plain Diff
Ensure the task group is present whenever an allocation row is rendered
parent
030e229f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ui/app/components/allocation-row.js
+3
-0
ui/app/components/allocation-row.js
ui/app/models/job.js
+5
-0
ui/app/models/job.js
with
8 additions
and
0 deletions
+8
-0
ui/app/components/allocation-row.js
+
3
-
0
View file @
9e961fe0
...
...
@@ -58,6 +58,9 @@ function qualifyJob() {
job
,
originalJobId
:
null
,
});
if
(
job
.
get
(
'
isPartial
'
))
{
job
.
reload
();
}
}
else
{
this
.
get
(
'
store
'
)
.
findRecord
(
'
job
'
,
allocation
.
get
(
'
originalJobId
'
))
...
...
This diff is collapsed.
Click to expand it.
ui/app/models/job.js
+
5
-
0
View file @
9e961fe0
...
...
@@ -84,6 +84,11 @@ export default Model.extend({
taskGroups
:
fragmentArray
(
'
task-group
'
,
{
defaultValue
:
()
=>
[]
}),
summary
:
belongsTo
(
'
job-summary
'
),
// A job model created from the jobs list response will be lacking
// task groups. This is an indicator that it needs to be reloaded
// if task group information is important.
isPartial
:
equal
(
'
taskGroups.length
'
,
0
),
// If a job has only been loaded through the list request, the task groups
// are still unknown. However, the count of task groups is available through
// the job-summary model which is embedded in the jobs list response.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help