Repository navigation
Description
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.
- Migrate TINGs into LEAR. Exclude TINGs that were previously TEDs.
- Migrate all TINGs that were previously TEDs.
- 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
- TING 1 & 2 are migrated
- Migrate business ABC which will reference LEAR TING 1 and TING 2 business_id in amalgamating_businesses table
- 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 effortAs 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
Activity