-
Notifications
You must be signed in to change notification settings - Fork 45
Fix build #256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix build #256
Conversation
Caution Review failedThe pull request is closed. WalkthroughThis change introduces Firebase Cloud Messaging integration, dynamic form entities and controllers, OTP handling for beneficiary consent, and user token management. It adds new DTOs, entities, repositories, services, and controllers, updates configuration files, and refactors JWT utility and beneficiary identity handling. Additional logging and error handling improvements are included. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant BeneficiaryConsentController
participant BeneficiaryOTPHandlerImpl
participant SMSGateway
participant Cache
Client->>BeneficiaryConsentController: POST /beneficiaryConsent/sendConsent
BeneficiaryConsentController->>BeneficiaryOTPHandlerImpl: sendOTP(request)
BeneficiaryOTPHandlerImpl->>Cache: Store OTP (encrypted)
BeneficiaryOTPHandlerImpl->>SMSGateway: Send OTP SMS
BeneficiaryOTPHandlerImpl-->>BeneficiaryConsentController: OTP send result
BeneficiaryConsentController-->>Client: Response
Client->>BeneficiaryConsentController: POST /beneficiaryConsent/validateConsent
BeneficiaryConsentController->>BeneficiaryOTPHandlerImpl: validateOTP(request)
BeneficiaryOTPHandlerImpl->>Cache: Retrieve OTP (encrypted)
BeneficiaryOTPHandlerImpl-->>BeneficiaryConsentController: Validation result
BeneficiaryConsentController-->>Client: Response
sequenceDiagram
participant Client
participant FirebaseNotificationController
participant FirebaseNotificationService
participant FirebaseMessaging
Client->>FirebaseNotificationController: POST /firebaseNotification/sendNotification
FirebaseNotificationController->>FirebaseNotificationService: sendNotification(message)
FirebaseNotificationService->>FirebaseMessaging: send(message)
FirebaseMessaging-->>FirebaseNotificationService: Send result
FirebaseNotificationService-->>FirebaseNotificationController: Result
FirebaseNotificationController-->>Client: Response
sequenceDiagram
participant Client
participant DynamicFormController
participant ModuleService
participant FormTypeService
participant ModuleRepository
participant FormTypeRepository
Client->>DynamicFormController: POST /masterFrom/modules
DynamicFormController->>ModuleService: save(moduleDTO)
ModuleService->>ModuleRepository: save(moduleEntity)
ModuleRepository-->>ModuleService: moduleEntity
ModuleService-->>DynamicFormController: moduleEntity
DynamicFormController-->>Client: moduleEntity
Client->>DynamicFormController: POST /masterFrom/modules/{id}/form-types
DynamicFormController->>FormTypeService: createFormType(moduleId, formTypeDTO)
FormTypeService->>ModuleRepository: findById(moduleId)
ModuleRepository-->>FormTypeService: moduleEntity
FormTypeService->>FormTypeRepository: save(formEntity)
FormTypeRepository-->>FormTypeService: formEntity
FormTypeService-->>DynamicFormController: formEntity
DynamicFormController-->>Client: formEntity
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (35)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
📋 Description
JIRA ID:
Please provide a summary of the change and the motivation behind it. Include relevant context and details.
✅ Type of Change
ℹ️ Additional Information
Please describe how the changes were tested, and include any relevant screenshots, logs, or other information that provides additional context.
Summary by CodeRabbit
New Features
Configuration
Bug Fixes
Refactor
Style