-
Notifications
You must be signed in to change notification settings - Fork 40
Add language id on beneficiary details to retrieve the language #102
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
base: develop
Are you sure you want to change the base?
Conversation
WalkthroughThe update reformats the Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant IdentityService
participant Queue
participant Repository
Client->>IdentityService: createIdentity(identityDTO)
IdentityService->>Queue: synchronized access
alt Queue is empty
IdentityService->>Repository: fetch up to 10,000 unprovisioned records
Repository-->>IdentityService: return records
IdentityService->>Queue: add records
end
IdentityService->>Queue: remove first element
IdentityService->>Repository: mark as reserved, set created date if null, save
IdentityService->>Repository: mark as provisioned
IdentityService->>IdentityService: convertIdentityDTOToMBeneficiarydetail(identityDTO)
Note right of IdentityService: preferredLanguageId now mapped
Possibly related PRs
Poem
π Recent review detailsConfiguration used: CodeRabbit UI π Files selected for processing (1)
π§ Files skipped from review as they are similar to previous changes (1)
β° Context from checks skipped due to timeout of 90000ms (2)
β¨ 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 (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
π§Ή Nitpick comments (1)
src/main/java/com/iemr/common/identity/service/IdentityService.java (1)
984-1038
: Map preferredLanguageId in the edit DTO converter.The
convertIdentityEditDTOToMBeneficiarydetail
method currently mapspreferredLanguage
but notpreferredLanguageId
. IfIdentityEditDTO
exposes agetPreferredLanguageId()
field, add analogous mapping here:beneficiarydetail.setPreferredLanguage(dto.getPreferredLanguage()); + if (dto.getPreferredLanguageId() != null) { + beneficiarydetail.setPreferredLanguageId(BigInteger.valueOf(dto.getPreferredLanguageId())); + }
π Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
π Files selected for processing (1)
src/main/java/com/iemr/common/identity/service/IdentityService.java
(2 hunks)
β° Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: Analyze (java)
- GitHub Check: Build_and_analyse
π Additional comments (2)
src/main/java/com/iemr/common/identity/service/IdentityService.java (2)
1335-1335
: Validate type consistency for preferredLanguageId mapping.Ensure that
dto.getPreferredLanguageId()
matches the type expected byMBeneficiarydetail.setPreferredLanguageId
(e.g.,BigInteger
). For consistency with other ID fields (e.g.,religionId
), you may need to wrap the value:-beneficiarydetail.setPreferredLanguageId(dto.getPreferredLanguageId()); +if (dto.getPreferredLanguageId() != null) { + beneficiarydetail.setPreferredLanguageId(BigInteger.valueOf(dto.getPreferredLanguageId())); +}
1047-1072
: Reformatting only; no logic changes.The indentation and braces in
createIdentity
were adjusted for readability. There are no functional modifications in this block.
|
π Description
JIRA ID:
AMM-1388
β 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
Style