-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
My suggestion is that this table isn’t sufficiently useful to keep around with the combinatoric explosion of other lifecycle phases. The logic was that someone might wonder “why isn’t my main task starting?” and this table would show that the prestart tasks hadn’t yet completed. One might wonder the same about any task that has prerequisites, so should a poststart task have a table that shows main tasks? And so on. Since the route hierarchy guarantees that one has already passed through a template that shows the lifecycle chart before one can reach the template where this table is displayed, I believe this table is redundant. It also conveys information in a more abstract way than the chart, which is dense and more easily understood, to me.
- Loading branch information
Showing
3 changed files
with
0 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,10 @@ | ||
import Controller from '@ember/controller'; | ||
import { computed } from '@ember/object'; | ||
import { computed as overridable } from 'ember-overridable-computed'; | ||
import { task } from 'ember-concurrency'; | ||
import classic from 'ember-classic-decorator'; | ||
|
||
@classic | ||
export default class IndexController extends Controller { | ||
@computed('[email protected]') | ||
get otherTaskStates() { | ||
const taskName = this.model.task.name; | ||
return this.model.allocation.states.rejectBy('name', taskName); | ||
} | ||
|
||
@computed('[email protected]') | ||
get prestartTaskStates() { | ||
return this.otherTaskStates.filterBy('task.lifecycle'); | ||
} | ||
|
||
@overridable(() => { | ||
// { title, description } | ||
return null; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters