You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Addressing data gaps in ORGBOOK due to sync timing misalignment #24708
Here is one scenario where events could get missed by Orgbook (as described by David Roberts)
It does NOT apply to incorporations because the Business Number event happens later and gets all the correct data for the company.
• 09:59:58 filing happens in Modern application, this is “FILED AND PAID” date/time
• 09:59:59 different business files in COLIN, SOFI, or REGI
• 10:00:00 ORGBOOK selects the events for the last half hour including the COLIN/SOFI/REGI filing
• 10:00:01 modern filing inserted to CPRD with event_timestmp of 09:59:58
• 10:30:00 ORGBOOK selects all filings with event_timestmp > 09:59:59, missing the Modern filing
changed the title [-]Addressing Data Gaps in Third-Party Application Due to Sync Timing Misalignment[/-][+]Addressing data gaps in ORGBOOK due to sync timing misalignment[/+]on Dec 3, 2024
Please review and propose solutions. The goals are :
Resolve data gaps/missed data in ORGBOOK;
Avoid duplicates in ORGBOOK;
Avoid going into full scale development in modernized or legacy system
Possible solutions :
-larger offset between the two synchronizations
-adjust the time window for the ORGBOOK query
-some sort of buffer or grace period for the ORGBOOK query
-?
Option 1: ORGBOOK make changes - Need to check with ORGBOOK team if its feasible for them.
Option 2: Update COLIN Sync to use syncing time as event_timestmp instead of filing datetime (from LEAR). This will show a different filed date time in COLIN UI.
If the event_timestmp cannot be set to the current date/time then I’m thinking it would be a good idea to insert events into two tables. The existing EVENT table and a new table EVENT_INSERT with 3 columns: event_id, insert_date, corp_num.
Hi Vysakh - We discussed this at our meeting and Olga agreed to proceed. I have created the EVENT_INSERT table in CDEV and CTST. After you insert to the EVENT table please insert immediately to the EVENT_INSERT table. I have a foreign key on event_insert.event_id that it must exist in the event table. Here is the statement:
insert into event_insert(event_id,corp_num,insert_date) values(:event_id,:corp_num,sysdate);
Activity
[-]Addressing Data Gaps in Third-Party Application Due to Sync Timing Misalignment[/-][+]Addressing data gaps in ORGBOOK due to sync timing misalignment[/+]OlgaPotiagalova commentedon Dec 3, 2024
Please review and propose solutions. The goals are :
Possible solutions :
-larger offset between the two synchronizations
-adjust the time window for the ORGBOOK query
-some sort of buffer or grace period for the ORGBOOK query
-?
vysakh-menon-aot commentedon Dec 4, 2024
Option 1: ORGBOOK make changes - Need to check with ORGBOOK team if its feasible for them.
Option 2: Update COLIN Sync to use syncing time as
event_timestmpinstead of filing datetime (from LEAR). This will show a different filed date time in COLIN UI.We had Option 2 in place from the beginning of colin sync until it was reported as bug (https://app.zenhub.com/workspaces/entities---olga-65af15f59e89f5043c2911f7/issues/gh/bcgov/entity/20747)
droberts27 commentedon Dec 5, 2024
If the event_timestmp cannot be set to the current date/time then I’m thinking it would be a good idea to insert events into two tables. The existing EVENT table and a new table EVENT_INSERT with 3 columns: event_id, insert_date, corp_num.
droberts27 commentedon Dec 18, 2024
Hi Vysakh - We discussed this at our meeting and Olga agreed to proceed. I have created the EVENT_INSERT table in CDEV and CTST. After you insert to the EVENT table please insert immediately to the EVENT_INSERT table. I have a foreign key on event_insert.event_id that it must exist in the event table. Here is the statement:
insert into event_insert(event_id,corp_num,insert_date) values(:event_id,:corp_num,sysdate);