Foo Developer created FINERACT-2714:
---------------------------------------
Summary: Client search: add ability to exclude closed clients from
results
Key: FINERACT-2714
URL: https://issues.apache.org/jira/browse/FINERACT-2714
Project: Apache Fineract
Issue Type: Improvement
Components: Client
Reporter: Foo Developer
Assignee: Foo Developer
The {{POST /v2/clients/search}} endpoint currently returns matching clients
regardless of status, including closed ones, with no way for the caller to
filter them out.
h3. Steps to Reproduce
# Create a client, then close their account.
# Call {{POST /v2/clients/search}} with search text matching that client (e.g.
by name or account number).
# The closed client appears in the results alongside open ones.
h3. Expected Behavior
Callers should be able to opt in to excluding closed clients from the search
results.
h3. Proposed Change
* Add an optional {{excludeClosed}} boolean field to the search request body
({{{}ClientTextSearch{}}}).
* When {{{}excludeClosed=true{}}}, the search specification
({{{}SearchingClientRepositoryImpl{}}}) excludes clients whose status is
{{{}CLOSED{}}}.
* When omitted or {{{}false{}}}, behavior is unchanged — fully backward
compatible, no change to existing callers.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)