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

Residential Exemptions in MHR table #1584

Merged
merged 7 commits into from
Oct 20, 2023

Conversation

dimak1
Copy link
Collaborator

@dimak1 dimak1 commented Oct 13, 2023

Issue #:

Description of changes:

  • Updates to MHR Table after filing Res Exemptions
  • Add unit tests

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 Oct 13, 2023

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://bcregistry-assets-dev--pr-1584-c0u4dv1t.web.app

@codecov
Copy link

codecov bot commented Oct 13, 2023

Codecov Report

Merging #1584 (eb5e7f6) into main (9255e77) will increase coverage by 4.99%.
Report is 298 commits behind head on main.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1584      +/-   ##
==========================================
+ Coverage   72.35%   77.34%   +4.99%     
==========================================
  Files         307      379      +72     
  Lines       12767     6995    -5772     
  Branches     2630     1115    -1515     
==========================================
- Hits         9237     5410    -3827     
+ Misses       3518     1553    -1965     
- Partials       12       32      +20     
Flag Coverage Δ
pprui 77.34% <ø> (+4.99%) ⬆️

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 39 more

... and 276 files with indirect coverage changes

Copy link
Collaborator

@doug-lovett doug-lovett left a comment

Choose a reason for hiding this comment

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

LGTM.

<v-list-item
@click="handleAction(item, TableActions.REMOVE)"
data-test-id="remove-mhr-row-btn"
>
Copy link
Collaborator

Choose a reason for hiding this comment

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

We will have some conflicts here, looks like several changes in this area overlap.

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 can resolve, as your PR is bigger and should go first.

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 to me!
That being said, whomever goes in 2nd will have some conflicts to resolve in the TableRow.
Have a look at my TableRow changes and let me know what you think, i'm good with either or 👍

Copy link
Contributor

@RuoxuanPengBC RuoxuanPengBC left a comment

Choose a reason for hiding this comment

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

looks great

@dimak1 dimak1 force-pushed the feat/mhr-table-exemptions branch from 5a74ea1 to 197b40c Compare October 17, 2023 00:30
@dimak1
Copy link
Collaborator Author

dimak1 commented Oct 17, 2023

/gcbrun

@dimak1
Copy link
Collaborator Author

dimak1 commented Oct 17, 2023

@cameron-eyds sync'ed with main, resolved conflicts... if you want to take another quick look.

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://bcregistry-assets-dev--pr-1584-c0u4dv1t.web.app

@dimak1 dimak1 changed the title Residential Exemptions in MHR table WIP: Residential Exemptions in MHR table Oct 17, 2023
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.

Still looks good :)

@dimak1 dimak1 force-pushed the feat/mhr-table-exemptions branch from 197b40c to 4f12c07 Compare October 17, 2023 21:24
@dimak1
Copy link
Collaborator Author

dimak1 commented Oct 17, 2023

/gcbrun

@dimak1 dimak1 changed the title WIP: Residential Exemptions in MHR table Residential Exemptions in MHR table Oct 17, 2023
@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://bcregistry-assets-dev--pr-1584-c0u4dv1t.web.app

@dimak1 dimak1 force-pushed the feat/mhr-table-exemptions branch from 4f12c07 to 94db353 Compare October 18, 2023 14:52
@dimak1
Copy link
Collaborator Author

dimak1 commented Oct 18, 2023

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://bcregistry-assets-dev--pr-1584-c0u4dv1t.web.app

@@ -820,14 +820,14 @@ export default defineComponent({
const today = new Date()
const expireDate = new Date()
// expireDate.setDate(expireDate.getDate() + days)
var dateExpiry = moment(new Date(
var dateExpiry = moment.utc(new Date(
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 the change I made (+ unit test update) for fix the dates issue. @cameron-eyds

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not fully familiar with moment or the implications but if you are confident than so am i :)

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 verified that before and after this change, the number of days to expire was the same. Also, we are using UTC format in the Date() inside the moment function.

@dimak1 dimak1 requested a review from cameron-eyds October 18, 2023 19:51
@dimak1 dimak1 force-pushed the feat/mhr-table-exemptions branch from 028487b to eb5e7f6 Compare October 20, 2023 22:48
@dimak1 dimak1 merged commit c7db1fd into bcgov:main Oct 20, 2023
6 of 7 checks passed
@dimak1 dimak1 deleted the feat/mhr-table-exemptions 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.

5 participants