Health Check API does not report "unhealthy" status when the UI does - pending DB migrations

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

When there are pending migrations, the health_check UI shows "current status Unhealthy"

image

Now if we run the health_check from this page we never get this failed state. The Status is always "OK".

image

Steps to reproduce

What is the current bug behavior?

The health_check in the UI and the health_check in the API are inconsistent.

What is the expected correct behavior?

UI and API should show the same health_check information.

Edited by 🤖 GitLab Bot 🤖