Skip to content

feat: Batch & Batch details creation for the unmatched records. - #222

Merged
saifrazabc merged 12 commits into
devfrom
feat/wkl-unmatched-record
Apr 30, 2026
Merged

feat: Batch & Batch details creation for the unmatched records.#222
saifrazabc merged 12 commits into
devfrom
feat/wkl-unmatched-record

Conversation

@saifrazabc

Copy link
Copy Markdown
Collaborator

Description

This is a draft PR for handling unmatched records from the Weekly Response file.

Changes

1. Existing Batch Handling

  • Check whether the contact belongs to an existing batch.
  • If found:
    • Update the CSA status.
    • Sync updates back to ICM.

2. New Batch Creation

  • If no matching batch is found:
    • Check if the contact exists.
    • If the contact exists (i.e., new record from CRA):
      • Create a new batch and corresponding batch details.
      • Update the CSA status.
      • Sync updates back to ICM.

3. Data Integrity

  • Ensure batch status and batch detail records are updated correctly.

4. Unmatched Contacts

  • If no matching contact is found:
    • Currently skipped.
    • Planned: Store these records in a job table for further investigation (to be implemented in a subsequent PR).

@saifrazabc
saifrazabc requested a review from mdiapenabc April 27, 2026 16:45
@saifrazabc
saifrazabc merged commit 99c61ca into dev Apr 30, 2026
13 checks passed
@saifrazabc
saifrazabc deleted the feat/wkl-unmatched-record branch April 30, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants