mojaloop / project

Repo to track product development issues for the Mojaloop project.
Other
23 stars 15 forks source link

ET1: Duplicate checking on identifiers #3812

Open ei-nghon-phoo opened 6 months ago

ei-nghon-phoo commented 6 months ago

Background

Resource identifiers must be unique within a scheme and enforced by the hub.

Alpha comments: Duplicate checking on identifiers e.g. transferID is a requirement of the specification. Checks must be made by the hub on all incoming client chosen resource identifiers to ensure no duplicates are introduced to schemes. This has to be since the beginning of scheme time. Beta comments: Some code comments added but no concrete implementation since alpha.

Acceptance Criteria

  1. The hub must implement duplicate checking on all incoming client-chosen resource identifiers, such as transferID, as per the specification.
  2. Duplicate checking must be implemented from the beginning of scheme time, ensuring that all historical and future resource identifiers are checked for duplicates.
  3. Any duplicate resource identifiers found during the checking process must be flagged and appropriately handled according to the system's error handling procedures.
  4. The system must log all instances of duplicate resource identifiers detected during the checking process for audit and troubleshooting purposes.
  5. The system should provide feedback to clients when a duplicate resource identifier is detected, indicating the reason for rejection and any corrective actions required.