Bug #338
openAssign Therapy filter returns empty results for multiple valid filter combinations in Wellness Center Admin → History
0%
Description
Environment
- App: CalmSync iOS
- Build: 1.90
- Device: iPhone
- API: cs.api.stage.basilhealth.us (Stage)
- Module: Wellness Center Admin → History → Assign Therapy
Description
In the Wellness Center Admin account, when navigating to History → Assign Therapy, the therapy list filtering is inconsistent.
Some filter combinations return therapies correctly, while multiple valid filter combinations return empty JSON responses, even though therapies are expected to exist.
This is blocking the admin from assigning therapies using filters.
Steps to Reproduce
- Login with Wellness Center Admin account
- Navigate to History section
- Click Assign Therapy (when no therapy is assigned)
- Open therapy filters and apply combinations listed below
- Observe API responses
Working API Calls (Therapies returned)
Request 1
GET /api/therapies/filteredSearch?category=-&country=-&language=-&type=-
Request 2
GET /api/therapies/filteredSearch?category=-&country=India&language=English%20(US)&type=Video
Failing API Calls (Empty JSON Response)
Request 1
**
GET /api/therapies/filteredSearch?category=-&country=India&language=Hindi&type=Video**
Request 2
GET /api/therapies/filteredSearch?category=Journaling&country=India&language=Hindi&type=-
Request 3
GET /api/therapies/filteredSearch?category=Journaling&country=India&language=English%20(US)&type=-
Request 4
GET /api/therapies/filteredSearch?category=Meditative_Music&country=India&language=English%20(US)&type=-
Request 5
GET /api/therapies/filteredSearch?category=Storytelling&country=India&language=English%20(US)&type=-
Expected Result
Therapies should be returned for valid combinations of:
- Category
- Country (India)
- Language (Hindi / English US)
- Type (Video / All)
Admin should be able to assign therapies using filters.
Actual Result
API returns empty JSON response for several valid filter combinations, resulting in no therapies displayed in the UI.
No data to display