Skip to content

OLMIS-7779: Add supplyingFacility query parameter to /api/requisitions/search#125

Merged
michaldev0 merged 2 commits into
masterfrom
OLMIS-7779-supplying-facility-search-param
Jun 1, 2026
Merged

OLMIS-7779: Add supplyingFacility query parameter to /api/requisitions/search#125
michaldev0 merged 2 commits into
masterfrom
OLMIS-7779-supplying-facility-search-param

Conversation

@michaldev0

@michaldev0 michaldev0 commented May 25, 2026

Copy link
Copy Markdown
Contributor

External integrations (MSupply) can now filter requisitions by supplyingFacility server-side instead of pulling all and filtering client-side.


This change is Reviewable

@michaldev0 michaldev0 force-pushed the OLMIS-7779-supplying-facility-search-param branch 2 times, most recently from 1fa8748 to 9efc737 Compare May 25, 2026 10:38
…s/search

External integrations (MSupply) can now filter requisitions by supplyingFacility server-side instead of pulling all and filtering client-side.
@michaldev0 michaldev0 force-pushed the OLMIS-7779-supplying-facility-search-param branch from 9efc737 to 24ab6d8 Compare May 25, 2026 14:20

@mgrochalskisoldevelo mgrochalskisoldevelo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please add an integration test for the supplyingFacility filter in the RequisitionRepositoryIntegrationTest. Every other filter has one. The test could save two requisitions with different supplyingFacilityId values, then search using withSupplyingFacility(...) and assert that only the matching one is returned.

@mgrochalskisoldevelo mgrochalskisoldevelo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@sonarqubecloud

Copy link
Copy Markdown

@michaldev0 michaldev0 merged commit f84e4b6 into master Jun 1, 2026
4 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