Y24-473 - Extract and generalize multiple source_identifier filtering logic #1490
Labels
Size: S
Small - low effort & risk
Technical Debt
Technical Debt
Value: 3
Value to the insitute is average
Describe the Housekeeping
The source_identifier filter logic currently implemented in the request_resource supports passing multiple values against a single field, enabling efficient matching of multiple barcodes in a single request and retrieving all records that match the valid barcodes.
traction-service/app/resources/v1/pacbio/request_resource.rb
Line 63 in 9df3648
Extracting this logic from the request_resource and refactoring it into a shared utility or module will allow this functionality to be reused across all resources. This approach ensures consistency, reduces code duplication, and improves maintainability.
The extracted filter should be designed to be flexible, accommodating the specific requirements of each resource while maintaining a standardized approach to barcode filtering.
Blocking issues
Describe any other issues or tickets that may be blocking this change.
Additional context
#1488 (review)_
The text was updated successfully, but these errors were encountered: