Skip to content

Addressing data gaps in ORGBOOK due to sync timing misalignment #24708

Closed

Description

@OlgaPotiagalova

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

Activity

  1. added
    Entities Team
    on Dec 3, 2024
  2. 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
  3. OlgaPotiagalova commented on Dec 3, 2024

    @OlgaPotiagalova
    CollaboratorAuthor

    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
    -?

  4. vysakh-menon-aot commented on Dec 4, 2024

    @vysakh-menon-aot
    Contributor

    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.

    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)

  5. droberts27 commented on Dec 5, 2024

    @droberts27

    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.

  6. droberts27 commented on Dec 18, 2024

    @droberts27

    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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Entities TeamHometeam

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions