Open SSantiagoDev opened 1 year ago
What happened: HealthChecks UI timeline is not showing for the group when a check starts as Unhealthy
What you expected to happen: The timeline should always be displayed if there are some changed statuses (healthy to unhealthy for ex).
How to reproduce it (as minimally and precisely as possible):
.AddCheck(name: "Always Unhealthy", () => HealthCheckResult.Unhealthy()) .AddCheck(name: "Random", () => { int rndValue = rnd.Next(0, 10); return rndValue % 2 == 0 ? HealthCheckResult.Healthy() : HealthCheckResult.Unhealthy(); });
If you change the first check to Healthy or Degraded, then we have a timeline on the Random check.
Source code sample: https://github.com/grschtroumpf/HealthChecksUI-Issue/blob/DemoIssue/src/ProductService/Startup.cs
Anything else we need to know?:
Seems to be linked to this: https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks/blob/5325c5df44df87eb4d73ec4689053cdfc4a9b03e/src/HealthChecks.UI/Core/HostedService/HealthCheckReportCollector.cs#L192
The timeline is still displayed for the other microservices.
Environment:
PR is welcome.
What happened: HealthChecks UI timeline is not showing for the group when a check starts as Unhealthy
What you expected to happen: The timeline should always be displayed if there are some changed statuses (healthy to unhealthy for ex).
How to reproduce it (as minimally and precisely as possible):
If you change the first check to Healthy or Degraded, then we have a timeline on the Random check.
Source code sample: https://github.com/grschtroumpf/HealthChecksUI-Issue/blob/DemoIssue/src/ProductService/Startup.cs
Anything else we need to know?:
Seems to be linked to this: https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks/blob/5325c5df44df87eb4d73ec4689053cdfc4a9b03e/src/HealthChecks.UI/Core/HostedService/HealthCheckReportCollector.cs#L192
The timeline is still displayed for the other microservices.
Environment: