Closed jonathanfallon closed 2 months ago
The latest update introduces several enhancements and fixes across the API. It refines configurations, optimizes type handling, improves middleware interfaces, standardizes string sanitization, and enriches export functionalities with new services and middleware actions. Additionally, timezone management has been streamlined, and significant improvements have been made in handling export parameters and authorization checks.
File(s) / Group of Files | Change Summary |
---|---|
api/.env.example |
Added configurations for timespan settings related to export services. |
api/src/config/time.ts |
Introduced defaultTimezone constant with timezone value "Europe/Paris". |
api/src/ilos/common/... |
Updated MiddlewareInterface , reorganized exports, removed FunctionMiddlewareInterface . |
api/src/ilios/core/... |
Replaced FunctionMiddlewareInterface with NextFunction in various methods. |
api/src/pdc/helpers/... |
Added sanitize function, updated date handling logic, and refactored helper functions. |
api/src/pdc/providers/... |
Introduced CastToArrayMiddleware , reordered bindings, and updated export routes for V2 and V3. |
api/src/pdc/services/export/... |
Added new actions, middlewares, and services; streamlined file creation and name handling functionalities. |
api/src/pdc/services/policy/... |
Integrated defaultTimezone ; updated default parameters in ApplyAction and FinalizeAction . |
api/src/pdc/services/export/models/ |
Introduced new methods and parameters adjustments in Campaign , CarpoolRow , Export , and ExportParams . |
api/src/pdc/services/export/... |
Refactored test cases for new and updated functionalities. |
sequenceDiagram
participant User
participant API
participant Middleware
participant ExportService
User->>API: Request export data
API->>Middleware: Validate request
Middleware->>ExportService: Process export
ExportService->>Middleware: Return processed data
Middleware->>API: Forward data
API->>User: Respond with export data
"In the code where changes flow, A bunny's joy begins to show. With sanitized strings and timezones tight, Middleware glides through the night. Exports and permissions, finely tuned, A developer's melody, perfectly attuned."
🐇✨🚀
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Refacto du service Export.
Tickets
2350
1772
1753
trip.list
Features
carpool_v2.carpools
à la place detrip.list
Summary by CodeRabbit
New Features
sanitize
function for string sanitization.CastToArrayMiddleware
for array casting properties.Bug Fixes
Tests
Chores
.env.example
related to export services.