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] Allocation route services table: show task-level services #14199

Merged
merged 6 commits into from
Aug 22, 2022

Conversation

philrenaud
Copy link
Contributor

(resolves #14198)

Adds service fragments to allocations and union taskGroup and task services. Works with both Consul and Nomad service providers.

Before (Nomad)

image

After (Nomad)

image

After (Consul)

image

@github-actions
Copy link

github-actions bot commented Aug 19, 2022

Ember Asset Size action

As of f14031c

Files that got Bigger 🚨:

File raw gzip
nomad-ui.js +797 B +145 B

Files that stayed the same size 🤷‍:

File raw gzip
vendor.js 0 B 0 B
nomad-ui.css 0 B 0 B
vendor.css 0 B 0 B

@github-actions
Copy link

github-actions bot commented Aug 19, 2022

Ember Test Audit comparison

main 065df46 change
passes 1410 1409 -1
failures 0 1 +1
flaky 0 0 0
duration 10m 25s 385ms 000ms -10m 25s 385ms

Copy link
Contributor

@ChaiWithJai ChaiWithJai left a comment

Choose a reason for hiding this comment

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

I think that Service Discovery is supposed to be a real-time feature. Giving this an approval so you're not blocked on me, however.

@@ -47,10 +48,22 @@ export default class IndexController extends Controller.extend(Sortable) {
}

@computed('model.taskGroup.services.@each.name')
get services() {
get groupServices() {
return (this.get('model.taskGroup.services') || []).sortBy('name');
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion: This is an asynchronous request. allocations.allocation does not load the TaskGroup and this should trigger a fetch request. TaskGroup can fail as a request here and we won't notify the user.

return (this.get('model.taskGroup.services') || []).sortBy('name');
}

@computed('model.states.@each.services')
Copy link
Contributor

Choose a reason for hiding this comment

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

question: Is this the correct dependent key?

@philrenaud
Copy link
Contributor Author

I think that Service Discovery is supposed to be a real-time feature. Giving this an approval so you're not blocked on me, however.

Hey @ChaiWithJai — you're correct that the Service Discovery UI feature will be realtime. However, you might call this pre-work: the existing services table, currently on the allocations page in the UI, does not show any task-level services. All this PR seeks to do is to extend that already-existing functionality to include task-level services, too.

Copy link
Member

@shoenig shoenig left a comment

Choose a reason for hiding this comment

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

neat!

@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 21, 2022
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.

Show Task-level services on the alloc page
3 participants