Skip to content

Tombstone pipeline - update amalgamation logic to populate TING info #25252

Closed

Description

@argush3

We have built the initial logic to migrate amalgamation data for the tombstone pipeline in #24479.

In #24479, we did some investigation and brainstorming around how the TINGs will be migrated and linked to the TED. There were also scenarios where a TING that was previously a TED that needed to be addressed.

This ticket is to handle updating the tombstone pipeline to add any outstanding logic required to support bringing over tombstone data for amalgamations. In particular, the TING data will be the main focus of this ticket.

In general, the following is how the amalgamation data will be migrated as it relates to the tombstone pipeline.

Overall Steps

Assumption: the corp selection queries will be manually commented/uncommented for steps 1-3 for now. If not too much effort, can make the selection process automated.

  1. Migrate TINGs into LEAR. Exclude TINGs that were previously TEDs.
  2. Migrate all TINGs that were previously TEDs.
  3. Migrate remaining corps

Specific TING that was previously TED example

Assumptions:

  • business name is "business ABC"
  • when business was created via amalgamation as a TED, the TINGs were
    • TING 1
    • TING 2
  • "business ABC" is later involved in amalgamation where it is a TING and his made historical
  • the TED in this later amalgamation is "business XYZ" and TINGs are
    • business ABC
    • TING 3
  1. TING 1 & 2 are migrated
  2. Migrate business ABC which will reference LEAR TING 1 and TING 2 business_id in amalgamating_businesses table
  3. Migrate business XYZ which will reference LEAR business ABC and TING 3 business_id in amalgamating_businesses table

Tasks

  • Add corp processing query for selecting TINGS that were not previously TEDs
  • Add corp processing query for selecting TINGS that were previously TEDs
    - [ ] Automate corp processing selection priority if it makes sense and isn't too much effort As discussed, use manual process to have better control
  • Updates required to populate TINGS for amalgamations
  • Updates required to populate TEDS for amalgamation
  • Any other required updates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Entities - Data MigrationHigh PriorityNON-RELEASEPriority1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions