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

25376 fix mailing address form issue #721

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

Conversation

TVWerdal
Copy link
Collaborator

@TVWerdal TVWerdal commented Feb 25, 2025

Issue #: bcgov/entity#25376

Added a call to the current function that clears the address forms directly after pushing new director. If this is not done, it seems like the mailing address from the new director will overwrite the mailing address of any director you try to change the name of. It overwrites with null values in the mailing address, not allowing the user to fully commit changes.

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

@TVWerdal
Copy link
Collaborator Author

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://business-filings-dev--pr-721-ldoyrfrw.web.app

@TVWerdal
Copy link
Collaborator Author

Further testing are showing that this fix isn't working the way it seemed to previously - cancelling pull request.

…ed up in future director name change requests

Signed-off-by: Thayne Werdal <[email protected]>
…wDirector function in the editDirector function. It was causing the mailing address to set its fields to null.

Signed-off-by: Thayne Werdal <[email protected]>
@TVWerdal TVWerdal force-pushed the 25376-fix-mailing-address-form-issue branch from c0911b2 to d10267a Compare February 26, 2025 23:54
… been added to the director list

Signed-off-by: Thayne Werdal <[email protected]>
@TVWerdal
Copy link
Collaborator Author

/gcbrun

@TVWerdal
Copy link
Collaborator Author

@severinbeauvais @JazzarKarim This one is now ready for review

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://business-filings-dev--pr-721-ldoyrfrw.web.app

Copy link
Collaborator

@severinbeauvais severinbeauvais 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 so far.

Do you have a list of test cases (say, in the ticket)? Have you tested with Coops and corps ("base companies" such as BC, BEN, etc)?

@severinbeauvais
Copy link
Collaborator

@severinbeauvais @JazzarKarim This one is now ready for review

Can you click the "Ready for review" button in the panel near the bottom of this PR?

@JazzarKarim
Copy link
Collaborator

Great stuff fixing the issue where the mailing address was being set to null Thayne.
image

I've tested the other flows (change legal name) etc.. Looks good.

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.

Looks good 👍 (Please don't forget to mark this PR as ready for review).

@TVWerdal TVWerdal marked this pull request as ready for review February 27, 2025 23:22
@TVWerdal
Copy link
Collaborator Author

TVWerdal commented Mar 3, 2025

Looks good so far.

Do you have a list of test cases (say, in the ticket)? Have you tested with Coops and corps ("base companies" such as BC, BEN, etc)?

There were no test cases in the ticket itself - but I ran through what was there - BC, ULC, BEN, CCC all work fine. Coop does not have mailing address, just delivery address, but that still seems to function as expected as well.

@severinbeauvais
Copy link
Collaborator

There were no test cases in the ticket itself - but I ran through what was there - BC, ULC, BEN, CCC all work fine. Coop does not have mailing address, just delivery address, but that still seems to function as expected as well.

I meant, did you create a set of test cases in the ticket (for QA to review)?

Looks good. I'm going to approve momentarily.

@TVWerdal
Copy link
Collaborator Author

TVWerdal commented Mar 3, 2025

There were no test cases in the ticket itself - but I ran through what was there - BC, ULC, BEN, CCC all work fine. Coop does not have mailing address, just delivery address, but that still seems to function as expected as well.

I meant, did you create a set of test cases in the ticket (for QA to review)?

Looks good. I'm going to approve momentarily.

Added in test instructions for the two scenarios that previously caused issues, and steps for testing. https://app.zenhub.com/workspaces/entities---olga-65af15f59e89f5043c2911f7/issues/gh/bcgov/entity/25376

@TVWerdal
Copy link
Collaborator Author

TVWerdal commented Mar 4, 2025

/gcbrun

@bcregistry-sre
Copy link
Collaborator

bcregistry-sre commented Mar 4, 2025

@severinbeauvais
Copy link
Collaborator

I tested the preview URL with the original bug description, and the labels looked OK and the filing went through.

Good job! Merge when ready.

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