feat(health): add postgres redis and queue dependency checks#712
Open
mijinummi wants to merge 1 commit into
Open
feat(health): add postgres redis and queue dependency checks#712mijinummi wants to merge 1 commit into
mijinummi wants to merge 1 commit into
Conversation
|
@mijinummi Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 Summary
Closes #671
Implements comprehensive application health checks using @nestjs/terminus to enable orchestrators, load balancers, and monitoring systems to verify service readiness.
The new /health endpoint validates:
PostgreSQL connectivity
Redis connectivity
Queue service connectivity
Overall application health
The endpoint returns detailed dependency status information and correctly reports degraded service conditions when any dependency becomes unavailable.
closes #672
Implements scheduled reminder jobs for user engagement and retention.
The scheduler automatically:
Sends coupon expiry reminders 24 hours before expiration
Sends daily digests for incomplete/pending tasks
Uses the existing notification infrastructure for delivery
Supports configurable cron schedules
Includes comprehensive unit tests
This provides proactive user communication and helps improve coupon redemption rates while reducing forgotten tasks.
Closes #673
Implements admin-controlled healer role management APIs, allowing authorized administrators to:
Assign healer roles to users
Revoke healer roles from users
Record all role changes in the audit trail
Prevent unauthorized role modifications
This removes the need for direct database intervention when onboarding or managing healthcare professionals.
Closes #657
Adds a user profile update endpoint that allows authenticated users to modify their personal information after registration.
The implementation includes:
Profile update API endpoint
DTO validation
User service update logic
Unit tests
Proper ownership enforcement (users can only update their own profile)
This enables users to keep healthcare-related contact information current.