Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Added health check endpoint to api service #1855

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

themarolt
Copy link
Contributor

@themarolt themarolt commented Nov 20, 2023

Changes proposed ✍️

What

🤖[deprecated] Generated by Copilot at 29a5505

Added a middleware for the /health endpoint that reports the status of the backend services. The middleware uses modules from @crowd/temporal, sequelize, and @/database/databaseConnection to access the services.

🤖[deprecated] Generated by Copilot at 29a5505

/health is the path to the abyss
Where the middleware probes the darkness
sequelize and temporal are the tools of the trade
But databaseConnection is the master of our fate

Why

How

🤖[deprecated] Generated by Copilot at 29a5505

  • Add health check middleware for /health endpoint (link)
  • Import modules from @crowd/temporal and sequelize for temporal and database operations (link)
  • Import TemporalClient and Sequelize types for type annotations (link)
  • Import databaseInit function from @/database/databaseConnection to initialize database connection and get sequelize instance (link)

Checklist ✅

  • Label appropriately with Feature, Improvement, or Bug.
  • Add screenshots to the PR description for relevant FE changes
  • New backend functionality has been unit-tested.
  • API documentation has been updated (if necessary) (see docs on API documentation).
  • Quality standards are met.

@themarolt themarolt added the Improvement Created by Linear-GitHub Sync label Nov 20, 2023
@themarolt themarolt merged commit d6658a8 into main Nov 21, 2023
8 of 9 checks passed
@themarolt themarolt deleted the enhancement/api-health-checks branch November 21, 2023 07:16
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Improvement Created by Linear-GitHub Sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants