Skip to content

Commit

Permalink
Order health checks entries by name to have a consistent list when ad…
Browse files Browse the repository at this point in the history
…ding new health checks in microservices (#1996)
  • Loading branch information
valentinmarinro authored Aug 16, 2023
1 parent f4bb7cc commit a9168b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HealthChecks.UI/Middleware/UIApiEndpointMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public async Task InvokeAsync(HttpContext context)
foreach (var item in healthChecks.OrderBy(h => h.Id))
{
var execution = await db.Executions
.Include(le => le.Entries)
.Include(le => le.Entries.OrderBy(e => e.Name))
.Where(le => le.Name == item.Name)
.AsNoTracking()
.SingleOrDefaultAsync()
Expand Down

0 comments on commit a9168b9

Please sign in to comment.