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

19822 Fixed NR validation on submit #656

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

severinbeauvais
Copy link
Collaborator

Issue #: bcgov/entity#19822

Description of changes:
- app version = 5.9.1
- use applicant phone/email (if available) to fetch NR on app start
- use applicant phone/email (if available) to validate NR on file and pay
- save applicant phone/email to draft amalgamation, continuation in and restoration
- added store getter
- misc cleanup
- fixed unit tests

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

- use applicant phone/email (if available) to fetch NR on app start
- use applicant phone/email (if available) to validate NR on file and pay
- save applicant phone/email to draft amalgamation, continuation in and restoration
- added store getter
- misc cleanup
- fixed unit tests
@severinbeauvais severinbeauvais self-assigned this Feb 13, 2024
@severinbeauvais
Copy link
Collaborator Author

/gcbrun

@bcregistry-sre
Copy link
Collaborator

bcregistry-sre commented Feb 13, 2024

Temporary Url for review: https://business-create-dev--pr-656-j1e446e4.web.app

SB says, try this restoration filing (as staff) (with NR 6038389/1234/sss@ggg.ccc):
https://business-create-dev--pr-656-j1e446e4.web.app/restoration-business-name?id=BC0871154&accountid=3040

SB says, try this incorporation application (as BCREG0020/Severin Dev Account):
https://business-create-dev--pr-656-j1e446e4.web.app/incorporation-define-company?id=TBv5Dc0hRP&accountid=2288
(In this example, there is no applicant email or phone but the NR is affiliated to the current account.) (This should also work with IDIR login because staff don't need to be affiliated.)

this.nameRequestInvalidErrorDialog = true
})
const applicantPhone = filing[filing.header?.name].nameRequest.applicantPhone // may be undefined
const applicantEmail = filing[filing.header?.name].nameRequest.applicantEmail // may be undefined
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sample filing JSON:

image

@@ -857,6 +862,8 @@ export default class FilingTemplateMixin extends Mixins(AmalgamationMixin, DateM
filing.restoration.nameRequest.correctNameOption = CorrectNameOptions.CORRECT_NEW_NR
filing.restoration.nameRequest.legalName = this.getNameRequestApprovedName
filing.restoration.nameRequest.nrNumber = this.getNameRequestNumber
filing.restoration.nameRequest.applicantPhone = this.getNameRequestApplicant.phoneNumber
filing.restoration.nameRequest.applicantEmail = this.getNameRequestApplicant.emailAddress
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sample filing JSON: (same screenshot as above)

image

Copy link
Collaborator

@kzdev420 kzdev420 left a comment

Choose a reason for hiding this comment

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

LGTM

@JazzarKarim
Copy link
Collaborator

Temporary Url for review: https://business-create-dev--pr-656-j1e446e4.web.app

SB says, try this restoration filing (as staff) (with NR 6038389/1234/sss@ggg.ccc): https://business-create-dev--pr-656-j1e446e4.web.app/restoration-business-name?id=BC0871154&accountid=3040

SB says, try this incorporation application (as BCREG0020/Severin Dev Account): https://business-create-dev--pr-656-j1e446e4.web.app/incorporation-define-company?id=TBv5Dc0hRP&accountid=2288 (In this example, there is no applicant email or phone but the NR is affiliated to the current account.) (This should also work with IDIR login because staff don't need to be affiliated.)

For some reason, I can't open both links (This filing type is not available at the moment. Please check again later.). Pretty sure it's unrelated to the work here though.

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 Sev.

@severinbeauvais
Copy link
Collaborator Author

For some reason, I can't open both links (This filing type is not available at the moment. Please check again later.). Pretty sure it's unrelated to the work here though.

Weird. I just accessed both from my cell! Login with IDIR for the first one and BCREG0020 for the second one.

Copy link
Collaborator

@ketaki-deodhar ketaki-deodhar left a comment

Choose a reason for hiding this comment

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

Looks good

@severinbeauvais severinbeauvais merged commit 964251f into bcgov:main Feb 14, 2024
5 checks passed
@severinbeauvais
Copy link
Collaborator Author

  • app version = 5.9.1

Oops, this should have been 5.9.0. Not that it matters much, and I do think this is a large enough change (since it affects at least 3 filings) to merit a minor version bump.

JazzarKarim pushed a commit to JazzarKarim/business-create-ui that referenced this pull request Feb 23, 2024
- use applicant phone/email (if available) to fetch NR on app start
- use applicant phone/email (if available) to validate NR on file and pay
- save applicant phone/email to draft amalgamation, continuation in and restoration
- added store getter
- misc cleanup
- fixed unit tests

Co-authored-by: Severin Beauvais <severin.beauvais@gov.bc.ca>
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.

5 participants