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

Added task links to various alloc tables #14592

Merged
merged 10 commits into from
Sep 16, 2022
Merged

Conversation

philrenaud
Copy link
Contributor

@philrenaud philrenaud commented Sep 14, 2022

Resolves #14578

Adds a quicker way to dive a level or two deeper into Nomad via the UI, by optionally listing tasks beneath their parent allocations in four places:

  • Job page (shown by default, togglable)
  • Task Group page (shown by default, togglable)
  • Client page (hidden by default, togglable)
  • job/allocations sub-page (always shown)

In all cases, toggling sets a localStorage property for future usage.

image

@github-actions
Copy link

github-actions bot commented Sep 14, 2022

Ember Asset Size action

As of b1eac60

Files that got Bigger 🚨:

File raw gzip
nomad-ui.js +9.92 kB +1.58 kB
nomad-ui.css +169 B +92 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 Sep 15, 2022

Ember Test Audit comparison

main b1eac60 change
passes 1420 1421 +1
failures 0 0 0
flaky 0 0 0
duration 10m 24s 296ms 10m 32s 603ms +08s 307ms

Comment on lines +12 to +13
{{!-- TODO: in-page logs --}}
{{!-- <FlightIcon @name="logs" /> --}}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

(very temporary) placeholder: covered in #14579

@@ -0,0 +1,76 @@
import Ember from 'ember';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

All of this is largely ported from task-row, but updated to a glimmer component.

Comment on lines +44 to +46
&.with-collapsed-borders {
border-collapse: collapse;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Has the effect, with task-sub-rows having a white upper border, of having a same-container layout.

image

@@ -174,7 +174,7 @@
]
},
"dependencies": {
"@hashicorp/ember-flight-icons": "^2.0.5",
"@hashicorp/ember-flight-icons": "^2.0.12",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to include logs icon

Comment on lines +12 to +13
{{!-- TODO: in-page logs --}}
{{!-- <FlightIcon @name="logs" /> --}}
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Did you mean to commit this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, commented here: #14592 (review)

Comment on lines +15 to +24
constructor() {
super(...arguments);
// Kick off stats polling
const allocation = this.task.allocation;
if (allocation) {
this.fetchStats.perform();
} else {
this.fetchStats.cancelAll();
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

question will this stop polling when the component unmounts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep; inherited from our other stats fetchers, like task-row. On unmount, or even on hide, this will stop its stats polling.

ui/app/components/task-sub-row.js Outdated Show resolved Hide resolved
ui/app/components/task-sub-row.js Outdated Show resolved Hide resolved
@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 Jan 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ui] Task links as sub-items within allocation tables
2 participants