Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI: Add poststart and poststop lifecycle phases #8742

Merged
merged 5 commits into from
Sep 1, 2020

Conversation

backspace
Copy link
Contributor

@backspace backspace commented Aug 25, 2020

This adds new phases for the lifecycle chart. Poststart is treated as a subphase of Main, mostly just a label to hint at the alignment of tasks in the chart. Similarly to with the prestart phase, poststart sidecar task states are ignored when determining whether Main is showing as active.

I decided to make all phases show whenever there’s a non-main task. I removed the bulk of the acceptance test because it’s better covered in the integration test.

I also decided to entirely remove the “prestart tasks” table that formerly showed when viewing a main task, with explanation in 0d885be. It or something like it could be easily brought back with discussion of how to address the verbosity etc.

Here’s an example configuration chart:

image

Here’s a GIF of it sort of working with a build combining #8194 and #8390, though poststop seems to not work as I’d expect:

poststart-poststop

I don’t love submitting things for review without having verified functionality with a true API, but I think it’s okay in this case because it’s further permutations on values for the existing lifecycle model fragment.

@github-actions
Copy link

github-actions bot commented Aug 25, 2020

Ember Asset Size action

As of 685b97a

Files that got Bigger 🚨:

File raw gzip
nomad-ui.css +663 B +94 B

Files that got Smaller 🎉:

File raw gzip
nomad-ui.js -1.71 kB -69 B

Files that stayed the same size 🤷‍:

File raw gzip
vendor.js 0 B 0 B
vendor.css 0 B 0 B

@github-actions
Copy link

github-actions bot commented Aug 25, 2020

Ember Test Audit comparison

master 685b97a change
passes 1382 1384 +2
failures 0 0 0
flaky 0 1 +1
duration 6m 49s 543ms 6m 48s 640ms -903ms

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.
@DingoEatingFuzz DingoEatingFuzz added this to the 0.12.4 milestone Aug 26, 2020
@backspace backspace marked this pull request as ready for review August 26, 2020 21:36
Copy link
Contributor

@DingoEatingFuzz DingoEatingFuzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really good!

I read the commentary about removing the prestart task table and I think your justification is totally reasonable.

I noticed there are starting to be some unwieldy if/else chains, but I think it's okay considering there's still a finite number of states this chart will ever express. I also don't have any concrete suggestions for how to improve it 😅

ui/tests/integration/components/lifecycle-chart-test.js Outdated Show resolved Hide resolved
@DingoEatingFuzz DingoEatingFuzz merged commit 8e5671c into master Sep 1, 2020
@DingoEatingFuzz DingoEatingFuzz deleted the f-ui/poststart-poststop branch September 1, 2020 15:58
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants