Skip to content

Commit

Permalink
Improve mirage modeling of allocations
Browse files Browse the repository at this point in the history
Pending allocations never have tasks
  • Loading branch information
DingoEatingFuzz committed Nov 10, 2018
1 parent 31045da commit 32954fa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ui/mirage/factories/allocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,8 @@ export default Factory.extend({
namespace,
jobId: job.id,
nodeId: node.id,
taskStateIds: states.mapBy('id'),
task_state_ids: states.mapBy('id'),
taskResourcesIds: resources.mapBy('id'),
taskStateIds: allocation.clientStatus === 'pending' ? [] : states.mapBy('id'),
taskResourcesIds: allocation.clientStatus === 'pending' ? [] : resources.mapBy('id'),
taskGroup: taskGroup.name,
name: allocation.name || `${taskGroup.name}.[${faker.random.number(10)}]`,
});
Expand Down

0 comments on commit 32954fa

Please sign in to comment.