Skip to content

Facility hierarchy inventory mapping and store field management#128

Merged
vishwab1 merged 18 commits intorelease-3.8.1from
vb/3.6.2-wl4
Mar 26, 2026
Merged

Facility hierarchy inventory mapping and store field management#128
vishwab1 merged 18 commits intorelease-3.8.1from
vb/3.6.2-wl4

Conversation

@vishwab1
Copy link
Copy Markdown
Member

📋 Description

JIRA ID: AMM-2197
AMM-2198

Please provide a summary of the change and the motivation behind it. Include relevant context and details.


Summary

  • Added updateStoreFields native query to dynamically update isMainFacility, mainFacilityID, storeType
  • New facilities (PSMID=NULL): store fields updated when linked/unlinked as child
  • Existing facilities (PSMID set): store fields never touched, only hierarchy columns added
  • Added findByProviderServiceMapIDOrNullOrderByFacilityName query for NULL PSMID support

Changes

  • MainStoreRepo.java: Added updateStoreFields native query + NULL PSMID query
  • StoreServiceImpl.java: PSMID check in create/update/delete hierarchy methods

Impact

  • No impact on MMU or other services
  • Existing store chain preserved for old facilities
  • New hierarchy facilities get correct store identity

✅ Type of Change

  • 🐞 Bug fix (non-breaking change which resolves an issue)
  • New feature (non-breaking change which adds functionality)
  • 🔥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 🛠 Refactor (change that is neither a fix nor a new feature)
  • ⚙️ Config change (configuration file or build script updates)
  • 📚 Documentation (updates to docs or readme)
  • 🧪 Tests (adding new or updating existing tests)
  • 🎨 UI/UX (changes that affect the user interface)
  • 🚀 Performance (improves performance)
  • 🧹 Chore (miscellaneous changes that don't modify src or test files)

ℹ️ Additional Information

Please describe how the changes were tested, and include any relevant screenshots, logs, or other information that provides additional context.

vishwab1 and others added 18 commits February 17, 2026 12:26
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Added updateStoreFields native query for dynamic store field updates
- Added PSMID null check: only update store fields for new hierarchy facilities
- Existing stores (PSMID set) keep their store chain intact
- Added findByProviderServiceMapIDOrNullOrderByFacilityName query

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 26, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 0bf5cd33-710d-4c96-9495-403229472aaf

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch vb/3.6.2-wl4

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@vishwab1 vishwab1 requested a review from vanitha1822 March 26, 2026 06:35
@vishwab1 vishwab1 changed the title acility hierarchy inventory mapping and store field management Facility hierarchy inventory mapping and store field management Mar 26, 2026
@vishwab1 vishwab1 merged commit 7f10a54 into release-3.8.1 Mar 26, 2026
1 of 3 checks passed
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