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

15538 Don't set initial restoration type + misc cleanup #693

Merged
merged 3 commits into from
Sep 18, 2024

Conversation

severinbeauvais
Copy link
Collaborator

Issue #: bcgov/entity#15538

Description of changes:

  • app version = 7.3.24
  • misc package updates
  • refactored restoration filing init (to support null type)
  • refactored restoration filing resume
  • deleted unneeded application types

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

- misc package updates
- refactored restoration filing init (to support null type)
- refactored restoration filing resume
- deleted unneeded application types
@severinbeauvais
Copy link
Collaborator Author

Sample initial draft filing (type=null):

image

Sample initial restoration application (no initial type):

image

@severinbeauvais
Copy link
Collaborator Author

@hfekete I added you as reviewer since this is Filings UI code and you might want to incorporate these changes in the new business dashboard.

@bcgov bcgov deleted a comment from bcregistry-sre Sep 18, 2024
@bcregistry-sre
Copy link
Collaborator

bcregistry-sre commented Sep 18, 2024

* @returns the filing body
*/
buildRestorationFiling (restorationType = FilingSubTypes.FULL_RESTORATION): RestorationFilingIF {
buildRestorationFiling (restorationType: FilingSubTypes): RestorationFilingIF {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just use what's passed in -- don't fall back to Full Restoration.

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 👍

- updated unit tests
Copy link

sonarcloud bot commented Sep 18, 2024

} else if (restorationType === FilingSubTypes.LIMITED_RESTORATION_TO_FULL) {
url = `${this.getEditUrl}${this.getIdentifier}/limitedRestorationToFull?restoration-id=${id}`
} else {
url = `${this.getCreateUrl}restoration-business-name?id=${this.getIdentifier}`
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've added this direct route to step 1 of the restoration filing, which saves a default re-route and then another re-route for restorations.

Ditto in TodoList.

And also I updated the unit tests.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@hfekete Here's why a route is specified for Create UI ^^.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@patrickpeinanw FYI, and also see other changes in this PR. Thanks!

@severinbeauvais
Copy link
Collaborator Author

/gcbrun

@severinbeauvais severinbeauvais merged commit 5c062bf into bcgov:main Sep 18, 2024
6 checks passed
@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://business-filings-dev--pr-693-v4u2a128.web.app

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