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

Fix General Collateral Pre-fill #1620

Merged
merged 4 commits into from
Nov 10, 2023
Merged

Conversation

dimak1
Copy link
Collaborator

@dimak1 dimak1 commented Nov 10, 2023

Issue #: /bcgov/entity#18303

Description of changes:

  • Fix switch/case statement

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

@dimak1
Copy link
Collaborator Author

dimak1 commented Nov 10, 2023

@cameron-eyds based on this fix, the switch/case in App.vue probably won't work either.

case (
          ErrorCodes.BCOL_ACCOUNT_CLOSED ||
          ErrorCodes.BCOL_USER_REVOKED ||
          ErrorCodes.BCOL_ACCOUNT_REVOKED ||
          ErrorCodes.BCOL_UNAVAILABLE
        ):

Copy link

codecov bot commented Nov 10, 2023

Codecov Report

Merging #1620 (668a796) into main (9255e77) will increase coverage by 4.89%.
Report is 323 commits behind head on main.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1620      +/-   ##
==========================================
+ Coverage   72.35%   77.24%   +4.89%     
==========================================
  Files         307      379      +72     
  Lines       12767     7017    -5750     
  Branches     2630     1122    -1508     
==========================================
- Hits         9237     5420    -3817     
+ Misses       3518     1565    -1953     
- Partials       12       32      +20     
Flag Coverage Δ
pprui 77.24% <ø> (+4.89%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
ppr-ui/src/App.vue 100.00% <ø> (+56.78%) ⬆️
ppr-ui/src/components/collateral/Collateral.vue 100.00% <ø> (+10.97%) ⬆️
...nents/collateral/generalCollateral/GenColAmend.vue 100.00% <ø> (+18.00%) ⬆️
...onents/collateral/generalCollateral/GenColEdit.vue 100.00% <ø> (+15.15%) ⬆️
...nts/collateral/generalCollateral/GenColSummary.vue 100.00% <ø> (+8.00%) ⬆️
...collateral/generalCollateral/GeneralCollateral.vue 100.00% <ø> (+6.66%) ⬆️
...ts/collateral/vehicleCollateral/EditCollateral.vue 100.00% <ø> (+22.58%) ⬆️
...collateral/vehicleCollateral/VehicleCollateral.vue 100.00% <ø> (+19.41%) ⬆️
...cleCollateral/factories/useCollateralValidation.ts 71.42% <ø> (ø)
...llateral/vehicleCollateral/factories/useVehicle.ts 70.14% <ø> (-0.91%) ⬇️
... and 34 more

... and 281 files with indirect coverage changes

Copy link
Collaborator

@cameron-eyds cameron-eyds 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!

@dimak1 dimak1 merged commit edf4675 into bcgov:main Nov 10, 2023
6 of 7 checks passed
@cameron-eyds
Copy link
Collaborator

ErrorCodes.BCOL_ACCOUNT_CLOSED

I've haven't bumped into this but your fix is definitely the way to fall-through cases, we can update handleErrorRegCreate() as well 👍

@dimak1 dimak1 deleted the fix/gen-col-required branch November 20, 2023 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants