New Backoffice: Health check controller refactor (#13763)

* Refactor AllHealthCheckGroupController to return just the names of the groups + changes in the HealthCheckFactory

* Introduce a new "get by name without results" endpoint

* Create a "check" endpoint

* View models changes

* Factory renaming changes

* Remove Task.FromResult

* Update OpenApi.json

* Minor updates

* Inject HealthCheckCollection directly into the factory
This commit is contained in:
Elitsa Marinovska
2023-02-08 14:16:21 +01:00
committed by GitHub
parent fdf416550a
commit 20534b7a97
17 changed files with 218 additions and 123 deletions

View File

@@ -54,7 +54,7 @@ public class ExecuteActionHealthCheckController : HealthCheckControllerBase
Type = "Error",
};
return await Task.FromResult(BadRequest(invalidModelProblem));
return BadRequest(invalidModelProblem);
}
HealthCheckStatus result = healthCheck.ExecuteAction(_umbracoMapper.Map<HealthCheckAction>(action)!);