-
Notifications
You must be signed in to change notification settings - Fork 47
Fix build #259
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 #259
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThis update introduces Firebase Cloud Messaging integration, beneficiary consent OTP handling, and a dynamic form system. It adds new REST controllers, services, repositories, DTOs, and entity classes, along with corresponding configuration properties and dependencies. Additional changes include JWT utility refactoring, consent field additions, and enhanced logging and error handling. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant BeneficiaryConsentController
participant BeneficiaryOTPHandlerImpl
participant SMS Gateway
Client->>BeneficiaryConsentController: POST /beneficiaryConsent/sendConsent (mobNo)
BeneficiaryConsentController->>BeneficiaryOTPHandlerImpl: sendOTP(request)
BeneficiaryOTPHandlerImpl->>BeneficiaryOTPHandlerImpl: Generate OTP & encrypt
BeneficiaryOTPHandlerImpl->>SMS Gateway: Send OTP SMS
SMS Gateway-->>BeneficiaryOTPHandlerImpl: SMS Response
BeneficiaryOTPHandlerImpl-->>BeneficiaryConsentController: OTP send result
BeneficiaryConsentController-->>Client: OutputResponse
Client->>BeneficiaryConsentController: POST /beneficiaryConsent/validateConsent (mobNo, otp)
BeneficiaryConsentController->>BeneficiaryOTPHandlerImpl: validateOTP(request)
BeneficiaryOTPHandlerImpl->>BeneficiaryOTPHandlerImpl: Validate OTP
BeneficiaryOTPHandlerImpl-->>BeneficiaryConsentController: Validation result
BeneficiaryConsentController-->>Client: OutputResponse
sequenceDiagram
participant Client
participant FirebaseNotificationController
participant FirebaseNotificationService
participant FirebaseMessaging
Client->>FirebaseNotificationController: POST /firebaseNotification/sendNotification (NotificationMessage)
FirebaseNotificationController->>FirebaseNotificationService: sendNotification(notification)
FirebaseNotificationService->>FirebaseMessaging: send(message)
FirebaseMessaging-->>FirebaseNotificationService: Send result
FirebaseNotificationService-->>FirebaseNotificationController: Response
FirebaseNotificationController-->>Client: Response
sequenceDiagram
participant Client
participant DynamicFormController
participant ModuleService
participant FormTypeService
participant ModuleRepository
participant FormTypeRepository
Client->>DynamicFormController: POST /masterFrom/modules (ModuleEntityDTO)
DynamicFormController->>ModuleService: save(moduleDTO)
ModuleService->>ModuleRepository: save(entity)
ModuleRepository-->>ModuleService: ModuleEntity
ModuleService-->>DynamicFormController: ModuleEntity
DynamicFormController-->>Client: ModuleEntity
Client->>DynamicFormController: POST /masterFrom/modules/{moduleId}/form-types (FormTypeEntityDTO)
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
Enhancements
Bug Fixes
Refactor
Chores