Skip to content

BAH-5328 | Seed bahmni.allowedDomains global property - #366

Merged
mohan-13 merged 2 commits into
masterfrom
BAH-5328
Nov 19, 2026
Merged

mohan-13 merged 2 commits into
masterfrom
BAH-5328

Conversation

@kousalyapt-tw

@kousalyapt-tw kousalyapt-tw commented Nov 19, 2026 •

Copy link
Copy Markdown

Adds a new bahmni.allowedDomains global property so a comma-separated list of allowed domains can be configured. It is empty by default. The property is also exposed through the admin module's app config.

Changes

  • Declare the bahmni.allowedDomains global property in the omod config.xml. It has an empty default and a description with an example value (example.com,sub.example.org).
  • Register bahmni.allowedDomains in BahmniCoreModuleConfig alongside the other Bahmni global properties, so the admin module config includes it.

Summary by CodeRabbit

  • New Features
    • Added an Allowed domains setting for administrators. It accepts a comma-separated list of domains, is empty by default, and can be configured through the global application properties. The setting is available with the other global application properties and allows administrators to specify the domains used by duplicate checking.

@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The module configuration defines bahmni.duplicateCheckExtensions.allowedDomains with an empty default and a comma-separated domain-list description. The admin configuration adds this property to the global app properties list.

Changes: Allowed Domains Property

Layer / File(s) Summary
Define and register the property
bahmnicore-omod/src/main/resources/config.xml, admin/src/main/java/org/bahmni/module/admin/config/BahmniCoreModuleConfig.java
The module configuration defines bahmni.duplicateCheckExtensions.allowedDomains with an empty default and a comma-separated domain-list description. The admin configuration adds it to the global app properties list.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Feature

Suggested reviewers: devsingh05298, lingeswarantw

Merge Risk: Minimal · up to ee5bd

This adds an empty-by-default global property and exposes it to app config. No concrete merge risk was identified.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Title check Inconclusive The title names BAH-5328 and says the change seeds the bahmni.allowedDomains global property. The changeset seeds a global property, but its name is bahmni.duplicateCheckExtensions.allowedDomains. The… Update the title to use the final property name, for example: BAH-5328 | Seed bahmni.duplicateCheckExtensions.allowedDomains global property.
Passed Passed checks: 3 passed

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names BAH-5328 and says the change seeds the bahmni.allowedDomains global property. The changeset seeds a global property, but its name is bahmni.duplicateCheckExtensions.allowedDomains. The PR objectives say the name changed from bahmni.allowedDomains to that longer name. The title therefore uses the old name and misses the main purpose of the change, which is duplicate-check extensions. It is partially related to the change, not fully matched.

Resolution

Update the title to use the final property name, for example: BAH-5328 | Seed bahmni.duplicateCheckExtensions.allowedDomains global property.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 985a220d-b5fa-45f9-8caf-629130821e17
Commits

Reviewing files that changed from the base of the PR and between 3361296 and ee5bd7a.

Files selected for processing: 2

  • admin/src/main/java/org/bahmni/module/admin/config/BahmniCoreModuleConfig.java
  • bahmnicore-omod/src/main/resources/config.xml

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

"bahmni.relationshipTypeMap",
"bahmni.primaryIdentifierType");
"bahmni.primaryIdentifierType",
"bahmni.allowedDomains");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this property too generic? Implementations might find it difficult to identify what is this used for ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renamed it to bahmni.duplicateCheckExtensions.allowedDomains

@sonarqubecloud

Copy link
Copy Markdown

@mohan-13
mohan-13 merged commit a96c8b8 into master Nov 19, 2026
12 checks passed
@mohan-13
mohan-13 deleted the BAH-5328 branch November 19, 2026 13:10
mohan-13 pushed a commit that referenced this pull request Nov 20, 2026
* BAH-5328 | Add. Seed bahmni.allowedDomains global property and expose it via the admin module config

* BAH-5328 | Update. Rename allowedDomains global property to bahmni.duplicateCheckExtensions.allowedDomains
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants