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

20779 Implemented Easy Legal Name Fix #570

Merged
merged 7 commits into from
Apr 22, 2024

Conversation

JazzarKarim
Copy link
Collaborator

@JazzarKarim JazzarKarim commented Apr 17, 2024

Issue #: /bcgov/entity#20779

Description of changes:

  • Synced code from the feature branch to main
  • Implemented the Easy legal name fix
  • Implemented with feature flag
  • Lots of misc. fixes that I brought from the legal name branch to here
  • Fixed/updated unit tests
  • Brought in the vitest wrapper factory

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

@JazzarKarim JazzarKarim self-assigned this Apr 17, 2024
@JazzarKarim
Copy link
Collaborator Author

/gcbrun

@bcgov bcgov deleted a comment from bcregistry-sre Apr 19, 2024
@severinbeauvais
Copy link
Collaborator

As I have a PR that I've been working on for a couple of weeks (!) and am final-testing, I'd really appreciate if my PR could go first and then you could apply your changes on top. Is that OK?

@JazzarKarim
Copy link
Collaborator Author

As I have a PR that I've been working on for a couple of weeks (!) and am final-testing, I'd really appreciate if my PR could go first and then you could apply your changes on top. Is that OK?

Absolutely, I wanted to mention this to you. Some of it also overlaps with what I have here. So, you can merge yours first and then I'll rebase. No problem!

@JazzarKarim JazzarKarim force-pushed the 20779-legal-name-easy-fix branch from 86004c2 to fe72e66 Compare April 22, 2024 17:56
@JazzarKarim
Copy link
Collaborator Author

/gcbrun

[]
))

// store Provisions Removed
if (filing.alteration.provisionsRemoved) this.setProvisionsRemoved(true)

// store Office Addresses **from snapshot** (because we don't change office addresses in an alteration)
this.setOfficeAddresses(cloneDeep(entitySnapshot.addresses))
this.setOfficeAddresses(cloneDeep(entitySnapshot?.addresses || null))
Copy link
Collaborator

Choose a reason for hiding this comment

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

In the future, I think it would be better to check if addresses exists before setting them (and same for all other data below). That way, we can leave the initial values in the store and don't need to re-assign those values here as fallbacks. (Initial values in 1 place only.)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Got it, noted! Let me know if you want me to change that here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Not here. Future.

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.

That's a lot of changes post-merge but they look OK to me.

@JazzarKarim JazzarKarim requested a review from tshyun24 April 22, 2024 20:24
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

Copy link
Collaborator

@leodube-aot leodube-aot 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 JazzarKarim merged commit 4ce2563 into bcgov:main Apr 22, 2024
4 of 5 checks passed
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