VSN-1994 : Adding test on last data saving completion + exposing it via controller & using it during the mass importation of prepared passengers.
Merge Request Description
Overview
This merge request introduces multiple improvements and new features related to the import service, service layer refactoring, controller exposure, exception handling, and project configuration updates. It also includes enhancements to auditing logic, mass importation validation, and documentation updates.
Changes Summary
1. refactor(pom) : Starter
- Updated the parent starter project reference to the latest release (version 79).
2. feat(service) : Import service
- Added a new method signature to test whether the data-saving operation of an import process has been completed.
3. feat(impl) : Service implementation
- Implemented the newly introduced data-saving test method inside the import service implementation.
4. refactor(service) : Method name
- Renamed the method
isImportDataSavedtoisLastImportDataSavingActionCompletedfor clearer semantics.
5. feat(paths) : New endpoint URL
- Introduced a new endpoint URL to allow external systems to test whether an importation is currently in progress.
6. feat(controller) : Endpoint exposure
- Exposed the new feature within the controller layer via a dedicated endpoint.
7. feat(exception) : New exception defined
- Added a new exception case:
LAST_IMPORTATION_STILL_ONGOING, triggered when a second import operation is attempted while one is already active.
8. refactor(pom) : Starter latest release
- Re-updated the starter parent project to the latest available release (final synchronization with upstream).
9. refactor(service) : Real last audit call
- Updated the service logic to fetch the most recent import audit entry using the repository's dedicated method.
10. refactor(service) : Mass importation refactor
- Strengthened mass importation logic by validating the completion of the last import operation before starting a new one.
11. refactor(service) : Testing method enhancement
- Improved the testing logic to correctly handle scenarios where the audit table may be empty.
12. docs(changelog) : Changelog update
- Updated the project's changelog to reflect all newly introduced features, refactors, and fixes.
Technical Impact
- Improved reliability and consistency of mass import handling.
- Better alignment of naming conventions with actual functional behavior.
- Stabilized auditing logic for edge cases such as empty datasets.
- Extended controller exposure to allow status checks for external integrations.
- Increased maintainability via method refactors and clearer error signaling.
- Ensured compatibility with the latest starter project dependencies.
Testing
- Unit tests updated where applicable.
- Manual testing performed on import status verification and endpoint exposure.
- Validation of auditing logic under various scenarios (existing audit records and empty table).
Documentation
- Changelog updated to include all newly introduced modifications.
Closes VSN-1994