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

19561 corpNumber to identifier in foreign amalgamating business #644

Merged
merged 3 commits into from
Feb 2, 2024

Conversation

vysakh-menon-aot
Copy link
Collaborator

@vysakh-menon-aot vysakh-menon-aot commented Feb 1, 2024

Issue #: /bcgov/entity#19561

Description of changes:

  • corpNumber -> identifier in foreign amalgamating business to reflect the latest schema change

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

@vysakh-menon-aot vysakh-menon-aot self-assigned this Feb 1, 2024
@vysakh-menon-aot
Copy link
Collaborator Author

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://business-create-dev--pr-644-nq6dlj73.web.app

// no auth info and business info means foreign, otherwise LEAR (affiliated or non-affiliated)
if (!tingBusiness.authInfo && !tingBusiness.businessInfo) {
// check if foreign
if (item.foreignJurisdiction) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think I like this.

Can you remove the comment on line 301 now?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

sure

Copy link
Collaborator

Choose a reason for hiding this comment

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

Karim, this should work, right?

legalName: item.legalName,
foreignJurisdiction: item.foreignJurisdiction
} as AmalgamatingBusinessIF
} else {
const tingBusiness = await this.fetchAmalgamatingBusinessInfo(item.identifier)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This assumes that all business info is successfully fetched but that's probably OK.

Copy link
Collaborator

@JazzarKarim JazzarKarim left a comment

Choose a reason for hiding this comment

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

LGTM

@vysakh-menon-aot vysakh-menon-aot merged commit 4261f17 into bcgov:main Feb 2, 2024
4 of 5 checks passed
@vysakh-menon-aot vysakh-menon-aot deleted the feature/19561 branch February 2, 2024 00:07
JazzarKarim pushed a commit to JazzarKarim/business-create-ui that referenced this pull request Feb 23, 2024
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.

4 participants