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

16995 - Change Store Actions Types #519

Merged
merged 3 commits into from
Jul 26, 2023
Merged

Conversation

leodube-aot
Copy link
Collaborator

Issue #: /bcgov/entity#16995

Description of changes:

  • Updated all instances of "ActionBindingIF" to the specific type used in the Store

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

@@ -34,7 +34,7 @@ export interface NameRequestIF {
details?: NameRequestDetailsIF
expiry?: string
filingId?: number
legalName: string
legalName?: string
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is needed to prevent a type error in filing-template-mixins.ts at FilingTemplateMixin::parseCorrectionFiling. When it tries to store the name request with this.setNameRequest, the filing.correction.nameRequest has legalName as an optional value.

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK

Copy link
Collaborator

Choose a reason for hiding this comment

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

Leo, you can resolve this conversation (unless you want it visible still).

this.stateModel.tombstone.userInfo = userInfo
},
setOrgInfo (orgInfo) {
setOrgInfo (orgInfo: any) {
Copy link
Collaborator Author

@leodube-aot leodube-aot Jul 24, 2023

Choose a reason for hiding this comment

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

Should I create a new interface for orgInfo (and userInfo) to avoid using any? The corresponding get call also uses any.

Copy link
Collaborator

@JazzarKarim JazzarKarim Jul 26, 2023

Choose a reason for hiding this comment

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

Unless other reviewers disagree, I believe any here should be OK.

Copy link
Collaborator

Choose a reason for hiding this comment

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

This and userInfo above are declared as any in the TombStoneIF, so this is OK with me.

Ideally, we'd have an interface for both of these, but that's outside the scope of this ticket so don't worry about it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Leo, you can resolve this conversation (unless you want it visible still).

@codecov
Copy link

codecov bot commented Jul 24, 2023

Codecov Report

Merging #519 (924ded0) into main (e481296) will increase coverage by 0.08%.
Report is 5 commits behind head on main.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #519      +/-   ##
==========================================
+ Coverage   87.11%   87.20%   +0.08%     
==========================================
  Files         207      208       +1     
  Lines        3919     3938      +19     
  Branches      510      511       +1     
==========================================
+ Hits         3414     3434      +20     
+ Misses        491      490       -1     
  Partials       14       14              
Files Changed Coverage Δ
...erfaces/state-interfaces/name-request-interface.ts 100.00% <ø> (ø)
src/store/state/state-model.ts 100.00% <ø> (ø)
src/App.vue 100.00% <100.00%> (ø)
src/components/Alteration/AlterationSummary.vue 100.00% <100.00%> (ø)
src/components/Alteration/Articles/Articles.vue 100.00% <100.00%> (ø)
...components/Alteration/Articles/ResolutionDates.vue 100.00% <100.00%> (ø)
src/components/Alteration/summary/BusinessType.vue 100.00% <100.00%> (ø)
src/components/Conversion/ConversionNOB.vue 100.00% <100.00%> (ø)
src/components/Restoration/ExtendTimeLimit.vue 100.00% <100.00%> (ø)
src/components/SpecialResolution/Memorandum.vue 100.00% <100.00%> (ø)
... and 45 more

@leodube-aot
Copy link
Collaborator Author

@severinbeauvais Can you add some reviewers to this PR? Thanks

src/store/store.ts Outdated Show resolved Hide resolved
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 Leo (after fixing comments and rebasing)! 👍 Awesome stuff.

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.

This looks amazing! (I love variable/function typing.) Good job. Just a couple small comments.

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.

3 participants