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: Ensure proxy instance health is taken into account in Service Instance Listings #12279

Merged
merged 9 commits into from
Feb 10, 2022

Conversation

johncowen
Copy link
Contributor

We noticed that the Service Instance listing on both Node and Service views where not taking into account proxy instance health. This fixes that up so that the small health check information in each Service Instance row includes the proxy instances health checks when displaying Service Instance health (afterall if the proxy instance is unhealthy then so is the service instance that it should be proxying)

I also took the opportunity to simplify the component we use for this and add documentation for both the Consul::InstanceChecks and Consul::ServiceInstance::List components.

Service > Service Instances: Preview link This view shows both node and service (inc proxy) checks.

Node > Service Instances: Preview link This view does not need to show Node health checks so only shows service (inc proxy) checks.

@johncowen johncowen added theme/ui Anything related to the UI backport/1.11 labels Feb 7, 2022
@johncowen johncowen requested review from jgwhite, amyrlam, a user and natmegs February 7, 2022 11:12
Copy link
Collaborator

@jgwhite jgwhite left a comment

Choose a reason for hiding this comment

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

Code looks good, preview links look good. Love your approach to documentation 👍

@vercel vercel bot temporarily deployed to Preview – consul-ui-staging February 10, 2022 15:15 Inactive
@vercel vercel bot temporarily deployed to Preview – consul February 10, 2022 15:15 Inactive
@johncowen johncowen merged commit d49ee8e into main Feb 10, 2022
@johncowen johncowen deleted the ui/bugfix/include-proxy-health branch February 10, 2022 15:28
@hc-github-team-consul-core
Copy link
Collaborator

🍒 If backport labels were added before merging, cherry-picking will start automatically.

To retroactively trigger a backport after merging, add backport labels and re-run https://circleci.com/gh/hashicorp/consul/579379.

@hc-github-team-consul-core
Copy link
Collaborator

🍒✅ Cherry pick of commit d49ee8e onto release/1.11.x succeeded!

hc-github-team-consul-core pushed a commit that referenced this pull request Feb 10, 2022
…tance Listings (#12279)

We noticed that the Service Instance listing on both Node and Service views where not taking into account proxy instance health. This fixes that up so that the small health check information in each Service Instance row includes the proxy instances health checks when displaying Service Instance health (afterall if the proxy instance is unhealthy then so is the service instance that it should be proxying)

* Refactor Consul::InstanceChecks with docs

* Add to-hash helper, which will return an object keyed by a prop

* Stop using/relying on ember-data type things, just use a hash lookup

* For the moment add an equivalent "just give me proxies" model prop

* Start stitching things together, this one requires an extra HTTP request

..previously we weren't even requesting proxies instances here

* Finish up the stitching

* Document Consul::ServiceInstance::List while I'm here

* Fix up navigation mocks Name > Service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/ui Anything related to the UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants