Skip to content

VSN-1999 : Improving integration logic of importation to cover reactive messages coming from import errors auditing.

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

MR Description: Importation Status Enhancements and Integration Fixes

Summary

This merge request introduces enhancements and refactors related to the handling of importation status within the application. The changes cover defining a new type to represent importation status, refactoring the way the last importation status is retrieved, and rectifying the overall importation logic to align with recent modifications. These improvements aim to make the importation tracking more robust, consistent, and easier to maintain.

Details of Changes

1. feat: Defining new type

  • Introduced a new type specifically for representing the status of an importation.
  • The type encapsulates key attributes, including success flags and potential error messages.
  • This change allows for more structured handling of importation responses across the system, replacing previous less-structured representations.

2. refactor: Refactoring importation status call

  • Refactored the existing logic used to retrieve the last importation status.
  • Optimized method calls to ensure better readability and maintainability.
  • Reduced redundant code and improved handling for scenarios where importation data may be incomplete or inconsistent.

3. refactor: Rectifying importation logic

  • Corrected the integration logic of importation processes to account for recent modifications.
  • Ensured the importation workflow now accurately reflects the current system state and handles status updates appropriately.
  • Fixed minor inconsistencies that could lead to incorrect status reporting or potential edge-case failures.

Impact

  • All modules that rely on importation status are now aligned with the new type definition.
  • The refactored logic improves reliability when checking the last importation status.
  • Any automated processes or API endpoints consuming importation status will now receive a structured and consistent data response.

Testing

  • Verified that importation status retrieval works correctly under normal and edge-case scenarios.
  • Ensured that changes did not break any existing importation workflows.
  • Manual testing of integration points and validation of status handling across modules has been performed.

Notes

  • Developers should update any local references to importation status types to use the new structured type.
  • This MR lays the foundation for future enhancements, such as adding additional metadata or audit logging for importation actions.

Closes VSN-1999

Modification effectuée par yassine.elazami

Rapports de requête de fusion