[UXPROD-4347] 'Borrower.' filter is not working in API calls Created: 12/Jun/23 Updated: 30/Nov/23 |
|
| Status: | Open |
| Project: | UX Product |
| Components: | None |
| Affects versions: | None |
| Fix versions: | TBD |
| Type: | New Feature | Priority: | P3 |
| Reporter: | Sandhya Sharma | Assignee: | Stephanie Buck |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original estimate: | Not Specified | ||
| Attachments: |
|
| Release: | Not Scheduled |
| Development Team: | Vega |
| PO Rank: | 0 |
| Description |
|
Overview: Query in circulation/loans does not work correctly when making a query in the API 'circulation/loans'. • Follow the persistent link • When we use 'borrower.firstName' as 2nd filter in the API call, it just returns the result for the first filter API call alone. • When we use 'borrower.firstName' as 1st filter in the API call, it just returns zero results. Expected Results: Api call should return the result with both the filters applied. • When we use 'borrower.firstName' as 2nd filter in the API call, it just returns the result for the first filter API call alone. • When we use 'borrower.firstName' as 1st filter in the API call, it just returns zero results. Additional Information: This issue persist in Orchid and Nolana bugfest also. |
| Comments |
| Comment by Stephanie Buck [ 12/Jun/23 ] |
|
Sandhya Sharma and Mamidi Likhitha, how often is this query run? What is the impact to daily operations? |
| Comment by Mamidi Likhitha [ 12/Jun/23 ] |
|
Hi Stephanie Buck, library use this query often as they check the records of specific users with specific Service Points. |
| Comment by Roman Barannyk [ 12/Jun/23 ] |
|
Sandhya Sharma, please try to use the next query: /circulation/loans?query=checkoutServicePointId=97cbff79-97e9-4cb2-b8c9-fb4fc584c66d and borrower.firstName=Claudia |
| Comment by Oleksandr Vidinieiev [ 13/Jun/23 ] |
|
Sandhya Sharma, you can't search loans by borrower's name because loans stored in the DB (in mod-circulation-storage) do not have the "borrower" property. When you call "GET circulation/loans?query=..." mod-circulation does the following:
We have faced a very similar issue recently while working on
Stephanie Buck I'd say it's not a bug. |
| Comment by Stephanie Buck [ 13/Jun/23 ] |
|
This change is feature level work and not a bug. Searching by borrower hasn't been implemented yet. I'll move this to a feature, but am unable to say when this work could be done. |