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: Serf Health Check warning notice #10194

Merged
merged 9 commits into from
May 13, 2021
Merged

Conversation

johncowen
Copy link
Contributor

When the Consul serf health check is failing, this means that the health checks registered with the agent may no longer be correct. Therefore we show a notice to the user when we detect that the serf health check is failing both for the health check listing for nodes and for service instances:

Screenshot 2021-05-06 at 11 18 21

Acceptance tests added for both Node and Service Instance pages.

There were a few little things we fixed up whilst we were here:

  1. We use our @replace decorator to replace an empty Type with serf in the model.
  2. We noticed that ServiceTags can be null, so we replace that with an empty array.
  3. We added docs for both our Notice component and the Consul::HealthCheck::List component. Notice now defaults to @type=info.

@vercel vercel bot temporarily deployed to Preview – consul May 7, 2021 16:15 Inactive
@vercel vercel bot temporarily deployed to Preview – consul-ui-staging May 7, 2021 16:15 Inactive
Copy link
Contributor

@kaxcode kaxcode left a comment

Choose a reason for hiding this comment

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

nice cleanup 🧹 👍

@johncowen johncowen merged commit 04bd576 into master May 13, 2021
@johncowen johncowen deleted the ui/feature/serf-check-warning branch May 13, 2021 10:36
@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/368324.

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

🍒✅ Cherry pick of commit 04bd576 onto release/1.10.x succeeded!

hc-github-team-consul-core pushed a commit that referenced this pull request May 13, 2021
When the Consul serf health check is failing, this means that the health checks registered with the agent may no longer be correct. Therefore we show a notice to the user when we detect that the serf health check is failing both for the health check listing for nodes and for service instances.

There were a few little things we fixed up whilst we were here:

- We use our @replace decorator to replace an empty Type with serf in the model.
- We noticed that ServiceTags can be null, so we replace that with an empty array.
- We added docs for both our Notice component and the Consul::HealthCheck::List component. Notice now defaults to @type=info.
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