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

Nomad Services: job routes, model, and serializer updates #14226

Merged
merged 15 commits into from
Aug 26, 2022

Conversation

philrenaud
Copy link
Contributor

@philrenaud philrenaud commented Aug 23, 2022

Adds a jobs/:jobid/services route and child routes

image
image

TODO:

  • Acceptance tests
  • Mirage fixtures

Side-effects:

  • former service model renamed to service-fragment; still in use on allocations page
  • Adds a replace flag to watchRelationships method, that when true, will unload all instances of a type from the store.
    • Previous instances of watchable routes (like deployments, job/clients, etc.) are additive: any new fetches of those resources can safely be added on in the UI.
    • In our case, however, we don't want to show older / invalid services. by adding an unloadAll when the replace flag is set, we only see those services that were returned in the latest refresh.
  • Adds a relationship between jobs and services, now that jobs have a /services endpoint

Resolves #14202
Resolves #14213

@github-actions
Copy link

github-actions bot commented Aug 23, 2022

Ember Asset Size action

As of 25ccc3b

Files that got Bigger 🚨:

File raw gzip
nomad-ui.js +18.5 kB +2.31 kB
nomad-ui.css +59 B -56 B

Files that stayed the same size 🤷‍:

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

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.

There's about 8 test files. That can/should be removed.

@philrenaud philrenaud changed the title jobs/jobid/services route and watchable services Nomad Services: job routes, model, and serializer updates Aug 26, 2022
@philrenaud philrenaud merged commit 7a7278f into f-ui/service-discovery Aug 26, 2022
@philrenaud philrenaud deleted the 14202-scaffold-new-parent-route branch August 26, 2022 03:22
ChaiWithJai pushed a commit that referenced this pull request Aug 26, 2022
* Added to subnav and basic table implemented

* Existing services become service fragments, and services tab aggregated beneath job route

* Index page within jobs/job/services

* Watchable services

* Lintfixes

* Links to clients and individual services set up

* Child service route

* Keyboard shortcuts on service page

* Model that shows consul services as well, plus level and provider cols

* lintfix

* Level as query param

* Watch job for service name changes too

* Lintfix

* Testfixes

* Placeholder mirage route
philrenaud added a commit that referenced this pull request Aug 31, 2022
* Added to subnav and basic table implemented

* Existing services become service fragments, and services tab aggregated beneath job route

* Index page within jobs/job/services

* Watchable services

* Lintfixes

* Links to clients and individual services set up

* Child service route

* Keyboard shortcuts on service page

* Model that shows consul services as well, plus level and provider cols

* lintfix

* Level as query param

* Watch job for service name changes too

* Lintfix

* Testfixes

* Placeholder mirage route
philrenaud added a commit that referenced this pull request Sep 7, 2022
* Added to subnav and basic table implemented

* Existing services become service fragments, and services tab aggregated beneath job route

* Index page within jobs/job/services

* Watchable services

* Lintfixes

* Links to clients and individual services set up

* Child service route

* Keyboard shortcuts on service page

* Model that shows consul services as well, plus level and provider cols

* lintfix

* Level as query param

* Watch job for service name changes too

* Lintfix

* Testfixes

* Placeholder mirage route
@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 25, 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