Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

24593 Tombstone pipeline - implement conversion (exclude liquidation, invol dissolution, cont out) #3199

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

chenhongjing
Copy link
Collaborator

@chenhongjing chenhongjing commented Feb 4, 2025

Issue #: /bcgov/entity#24593

Description of changes:

  • Support conversion in pipeline
    • exclude liquidation, involuntary dissolution, continuation out related events
    • add TODOs in the code
  • Update legal-api to display conversion state changes in summary
  • Alter amalgamation_type in db & data model to add unknown enum
  • Misc updates for pipeline and legal-api

Testing
The following businesses are loaded in dev and affiliated to account 3446, but some business summaries are not properly displayed before the changes are merged.

BC0019921
BC0383434
BC0073657
BC0690494  # cannot load into dev due to amalgamation type error
C0318245
C0158429
BC0640661

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the lear license (Apache 2.0).

@chenhongjing chenhongjing self-assigned this Feb 4, 2025
Signed-off-by: Hongjing Chen <[email protected]>
@chenhongjing chenhongjing changed the title 24593 Tombstone pipeline - implement conversion (exclude liquidation, invol dissolution cont out) 24593 Tombstone pipeline - implement conversion (exclude liquidation, invol dissolution, cont out) Feb 4, 2025
@chenhongjing chenhongjing requested a review from argush3 February 4, 2025 16:56
@chenhongjing chenhongjing marked this pull request as ready for review February 4, 2025 16:56
EventFilings.CONVDSF_NULL: ['conversion', ('dissolution', 'involuntary')],
EventFilings.CONVDSL_NULL: 'conversion', # TODO: liquidation
EventFilings.CONVDSO_NULL: ['conversion', ('dissolution', 'unknown')],
EventFilings.CONVICORP_NULL: 'conversion',
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's problematic to map CONVICORP to the behaviour of IA and update business info because conv_event.effective_dt is null for all. Similar issues for CONVID1 and CONVID2, some don't have trigger_dt for involuntary dissolution stage transition.

Comment on lines +558 to +563
'identifier': jurisdiction.identifier or 'Not Available',
'legal_name': jurisdiction.legal_name or 'Not Available',
'tax_id': jurisdiction.tax_id,
'incorporation_date': formatted_incorporation_date,
'expro_identifier': jurisdiction.expro_identifier,
'expro_legal_name': jurisdiction.expro_legal_name,
'expro_legal_name': jurisdiction.expro_legal_name or 'Not Available',
Copy link
Collaborator Author

@chenhongjing chenhongjing Feb 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use Not Available as default values.

This update is to make sure we display XPRO info in summary only when expro_identifier is available instead of displaying XPRO info all the time (report template reference). However, we never get XPRO businesses in the extract(we can find it somewhere in COLIN db), and expro_legal_name will always be unavailable.

Here is an example.
image

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.

2 participants