Closed nmrgt closed 4 months ago
The recent updates enhance the CarpoolAcquisitionService
by introducing a failedOnly
filter and modifying return types for better clarity in processing outcomes. Several repositories received syntax improvements and functional tweaks, particularly in handling parameters and query structuring. Additionally, a new ProcessGeoCommand
class enriches the command suite, and ESLint configurations have been adjusted to allow specific console methods.
File Path | Change Summary |
---|---|
.../carpool/providers/CarpoolAcquisitionService.ts |
Added failedOnly parameter, changed return type, and improved error handling. |
.../carpool/repositories/CarpoolGeoRepository.ts |
Introduced failedOnly parameter in findProcessable and adjusted error handling in updateGeoCodes . |
.../carpool/repositories/CarpoolRepository.ts |
Improved readability by adding space before ! operator. |
.../carpool/repositories/CarpoolRequestRepository.ts |
Reformatted SQL query string for better readability. |
.../services/acquisition/ServiceProvider.ts |
Added ProcessGeoCommand to command list. |
.../services/acquisition/commands/ProcessGeoCommand.ts |
New class for processing acquisition geo data with various controls. |
docker/lint/.eslintrc.js |
Modified ESLint rule to allow 'timeLog' . |
🐰✨ A hop, a skip, in the code we dive, New changes arrive, making data thrive. Through lines and queries, we refine and tweak, Ensuring the service is never weak. In the burrow of code, where the carrots grow, We celebrate updates, with a cheerful glow! 🌟🐇
docker/lint/.eslintrc.js (1)
`31-31`: Adding 'timeLog' to the 'allow' array in the 'no-console' rule is appropriate for enhanced debugging. Good addition.api/src/pdc/services/acquisition/commands/ProcessGeoCommand.ts (1)
`5-61`: The implementation of `ProcessGeoCommand` is well-structured and clear. The use of command options and the looping mechanism are correctly implemented.api/src/pdc/services/acquisition/ServiceProvider.ts (1)
`30-30`: The addition of `ProcessGeoCommand` to the service provider configuration is correctly implemented. Good integration.api/src/pdc/providers/carpool/repositories/CarpoolGeoRepository.ts (2)
`26-47`: > :memo: **NOTE** > This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [14-44] The modifications to the `findProcessable` method to accept a `failedOnly` parameter and handle it in the SQL query are correctly implemented. --- `72-72`: The update to the `errors` field in the `upsert` method is correctly implemented, ensuring better error handling.api/src/pdc/providers/carpool/repositories/CarpoolGeoRepository.integration.spec.ts (1)
`39-51`: The formatting changes in the test file improve readability and maintain the functionality of the tests. Good improvements.api/src/pdc/providers/carpool/providers/CarpoolAcquisitionService.ts (1)
`110-130`: The updates to the `processGeo` method, including the handling of the `failedOnly` parameter and the return of the number of items processed, are correctly implemented. Enhanced error handling and logging are also noted.
Summary by CodeRabbit