Skip to content

VSN-2137 : Optimized Exportation of default template related to passengers.

yassine.elazami a demandé de fusionner VSN-2137 vers develop

Merge Request Description

Documentation Update

A changelog entry was added to ensure that the new modifications are properly tracked and documented. This provides visibility into the changes introduced and maintains consistency in project history.

Refactoring Template Generation

The template generation code was refactored to improve maintainability and readability. This restructuring enhances the efficiency of template handling and reduces complexity in the codebase.

Utility Cache Class

A new utility cache class was introduced to optimize repeated operations. Specifically, a template loader was defined to avoid multiple accesses to S3, improving performance and reducing unnecessary overhead.

Feature Exposition

A new feature was exposed through the controller layer. This makes the functionality accessible to external consumers and aligns with the service’s integration requirements.

File Exportation Implementation

The file exportation feature was implemented within the PassengerImportAppServiceImpl. This enables the generation and export of passenger-related files, supporting operational workflows.

New Action Signature

A new action signature generateFileWithReferences was defined. This signature is directly related to the default passengers template exportation action, ensuring clarity and consistency in method usage.

New Data Transfer Object (DTO)

A new DTO, ReferenceSheetRequest, was added to support passengers template exportation actions. This DTO structures the necessary data for the export process, improving reliability and clarity in data handling.

Closes VSN-2137

Rapports de requête de fusion