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(FSADT1-1042|FSADT1-1052): fixing boundaries and off-ramp cases #666

Merged
merged 79 commits into from
Jan 4, 2024

Conversation

paulushcgcj
Copy link
Contributor

@paulushcgcj paulushcgcj commented Dec 7, 2023

Description

Updating some off-ramp cases to prevent RSP (registered sole proprietor) in case they are owned by an organization (FSADT1-1042). Fixing the list of contact types

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality not to work as expected)

How Has This Been Tested?

  • New unit tests
  • New integrated tests

Checklist

  • I have read the CONTRIBUTING doc
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have already been accepted and merged

Further comments


Thanks for the PR!

Any successful deployments (not always required) will be available below.
Backend available
Frontend available
Legacy available

Once merged, code will be promoted and handed off to following workflow run.
Main Merge Workflow

@github-actions github-actions bot added the fix label Dec 7, 2023
Copy link
Contributor

github-actions bot commented Dec 7, 2023

Current changelog

Bug Fixes

Features

@github-actions github-actions bot added fix and removed fix labels Dec 8, 2023
@paulushcgcj paulushcgcj marked this pull request as ready for review December 8, 2023 20:46
@github-actions github-actions bot added fix and removed fix labels Jan 3, 2024
@github-actions github-actions bot added fix and removed fix labels Jan 3, 2024
@github-actions github-actions bot added fix and removed fix labels Jan 4, 2024
@github-actions github-actions bot added fix and removed fix labels Jan 4, 2024
Copy link

sonarqubecloud bot commented Jan 4, 2024

Quality Gate Failed Quality Gate failed for 'forest-client-frontend'

Failed conditions

4 Security Hotspots
78.1% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

Copy link
Contributor

github-actions bot commented Jan 4, 2024

Frontend unit Test Coverage

Coverage after merging fix/FSADT1-1042 into main will be
56.81%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   App.vue48.39%50%0%68.42%108, 36, 39–40, 44, 52–53, 62
   directivesMap.ts100%100%100%100%
src/components
   DataFetcher.vue85%60%83.33%95.83%33–35, 50, 55
   MainHeaderComponent.vue79.69%76.56%58.33%88.46%100, 107, 111, 122, 124, 134, 136, 147, 173, 176, 185, 201, 217, 217, 217, 230, 249, 41, 50–51, 55
   UserProfileComponent.vue80%33.33%100%85.71%17, 17, 19, 23
src/components/forms
   AutoCompleteInputComponent.vue75.37%58.14%80.95%84.29%111–112, 128, 133–134, 179, 208, 47, 60, 62, 62, 62, 62, 62–64, 66, 66, 66–68, 78, 81, 81, 81, 81, 81, 83, 85
   DropdownInputComponent.vue90.10%87.10%83.33%94.23%111, 136, 67, 81, 81, 81–82
   MultiselectInputComponent.vue92.55%91.67%85.71%95.92%100, 109, 80, 89
   RadioInputComponent.vue87.50%85.71%75%93.33%39, 44, 80, 89
   ReadOnlyComponent.vue66.67%100%100%66.67%2
   TextInputComponent.vue86.49%77.27%84.62%92.31%105, 129, 137, 156, 62, 91, 96–97
src/components/forms/DateInputComponent
   DateInputPart.vue91.30%75%100%100%46, 50
   common.ts100%100%100%100%
   index.vue81.32%75.28%75%86.18%137, 172–174, 182–185, 185, 185–186, 213, 215, 218–219, 225, 269–270, 280–281, 296–298, 300–301, 311–312, 316, 319–320, 330–333, 340, 352, 381, 384, 450, 460, 467, 473, 479
src/components/grouping
   AddressGroupComponent.vue1.21%0%0%2.70%105–106, 108, 108, 108, 112–113, 115–116, 116, 116, 116, 118, 125, 132, 141–142, 142, 142, 142, 144, 146, 148, 152, 154–155, 155, 155–156, 156, 156, 156, 158, 160, 162, 165, 169–170, 170, 170, 172, 174, 178–179, 179, 179, 179, 181, 183, 185, 189–190, 190, 190, 193, 195–196, 196–197, 197, 199, 20, 202, 204–206, 206, 206, 206, 206–208, 216, 218–219, 222, 224, 229–230, 230, 230–235, 235, 235–237, 240, 253, 253, 253, 260, 260, 260–261, 261, 261–262, 262, 266, 266, 266, 278, 278, 278–279, 279, 285, 285, 285, 287, 287, 287–288, 288, 288, 29, 290, 290, 298, 298, 298, 306, 306, 306–307, 307, 307, 311, 311, 311, 328, 328, 328–329, 329, 329, 343, 343, 343, 345, 345, 345, 35, 357, 357, 357, 36, 360, 360, 360–361, 361, 361, 365, 365, 367, 367, 367, 38, 41, 43, 43, 43, 47, 47, 47, 50–52, 54–55, 58, 62–64, 67–69, 73, 77, 77, 77, 77, 77, 77–78, 83, 85, 88–89, 89, 89, 89, 89–90, 93, 96
   ContactGroupComponent.vue66.89%84.91%40.63%65.15%106–107, 130, 155, 164, 171, 180, 187, 195, 205, 213, 227, 233, 238, 244, 268, 42, 55–56, 83, 83, 83–84, 90, 90, 90–91, 95, 95, 95–96
   ErrorNotificationGroupingComponent.vue77.14%64.52%66.67%90.91%110, 117, 117, 117, 121, 129, 129, 138, 150, 58, 63, 81, 90, 98
src/composables
   useElementVisibility.ts96.55%87.50%100%100%6
   useFetch.ts87.69%68.42%100%95.12%117, 121, 130, 17, 51, 62, 66, 88
   useFocus.ts37.04%19.23%50%44.19%114, 120, 120, 120, 120, 120–121, 124, 128–130, 130, 130–131, 133, 142, 145, 148, 34, 36–38, 50, 55, 57, 60, 63, 63, 63, 65–67, 67, 67, 69, 71, 77, 77, 77, 80–81, 84, 99, 99, 99
   useScreenSize.ts100%100%100%100%
   useSvg.ts100%100%100%100%
src/helpers
   CustomDirectives.ts92.86%82.61%100%100%19, 36, 43, 45
   DataConversors.ts75.61%79.17%50%73.33%33, 38, 38, 38, 38, 38–39, 4, 41
   ForestClientUserSession.ts22.73%8%27.27%28.85%

Copy link
Contributor

github-actions bot commented Jan 4, 2024

Frontend component Test Coverage

Coverage after merging fix/FSADT1-1042 into main will be
88.94%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   App.vue100%100%100%100%
   CoreConstants.ts100%100%100%100%
   directivesMap.ts100%100%100%100%
   main.ts100%100%100%100%
   routes.ts100%100%100%100%
   shims-vue.d.ts100%100%100%100%
src/components
   DataFetcher.vue97.14%80%100%100%33
   MainHeaderComponent.vue100%100%100%100%
   UserProfileComponent.vue100%100%100%100%
   types.ts100%100%100%100%
src/components/forms
   AutoCompleteInputComponent.vue92.19%89.19%85.71%95.71%179, 208, 41, 47, 68, 81, 83
   DropdownInputComponent.vue91.67%92.31%83.33%94.23%111, 136, 81, 81–82
   MultiselectInputComponent.vue92.31%90.48%85.71%95.92%100, 109, 47, 89
   RadioInputComponent.vue100%100%100%100%
   ReadOnlyComponent.vue100%100%100%100%
   TextInputComponent.vue90.14%84.21%84.62%94.87%105, 129, 137, 156, 62
src/components/forms/DateInputComponent
   DateInputPart.vue100%100%100%100%
   common.ts100%100%100%100%
   index.vue100%100%100%100%
src/components/grouping
   AddressGroupComponent.vue89.71%89.89%90.70%89.19%116, 132, 142, 148, 155–156, 156, 156, 156, 158, 160, 162, 179, 185, 196, 218–219, 235, 266, 311, 367
   ContactGroupComponent.vue91.22%96%87.50%89.39%227, 233, 255, 268, 84, 91, 95, 95–96
   ErrorNotificationGroupingComponent.vue100%100%100%100%
src/composables
   useElementVisibility.ts100%100%100%100%
   useFetch.ts100%100%100%100%
   useFocus.ts100%100%100%100%
   useScreenSize.ts100%100%100%100%
   useSvg.ts100%100%100%100%
src/dto
   ApplyClientNumberDto.ts100%100%100%100%
   CommonTypesDto.ts100%100%100%100%
src/helpers
   CustomDirectives.ts100%100%100%100%
   DataConversors.ts100%100%100%100%
   ForestClientUserSession.ts100%100%100%100%
src/helpers/validators
   BCeIDFormValidations.ts100%100%100%100%
   GlobalValidators.ts100%100%100%100%
   SubmissionValidators.ts100%100%100%100%
src/pages
   ErrorPage.vue100%100%100%100%
   FormBCSCPage.vue100%100%100%100%
   FormBCeIDPage.vue100%100%100%100%
   FormSubmittedPage.vue100%100%100%100%
   LandingPage.vue100%100%100%100%
   NotFoundPage.vue100%100%100%100%
   SubmissionListPage.vue100%100%100%100%
   SubmissionReviewPage.vue100%100%100%100%
   UserLoadingPage.vue100%100%100%100%
src/pages/bceidform
   AddressWizardStep.vue100%100%100%100%
   BusinessInformationWizardStep.vue100%100%100%100%
   ContactWizardStep.vue59.05%65.22%47.83%61.02%118, 118, 118, 123, 143, 150, 171, 173, 40, 40–41, 41, 41, 43–45, 48, 54–55, 64, 72–73, 76, 76–78, 80, 84–87
   ReviewWizardStep.vue100%100%100%100%
src/services
   ForestClientService.ts100%100%100%100%

Copy link
Contributor

github-actions bot commented Jan 4, 2024

Frontend e2e Test Coverage

Coverage after merging fix/FSADT1-1042 into main will be
82.02%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   App.vue83.87%75%50%100%62
   CoreConstants.ts100%100%100%100%
   directivesMap.ts100%100%100%100%
   main.ts100%100%100%100%
   routes.ts100%100%100%100%
   shims-vue.d.ts100%100%100%100%
src/components
   DataFetcher.vue97.14%80%100%100%33
   MainHeaderComponent.vue62.10%75%8.33%59.62%134, 173–176, 185, 197, 197, 197, 217, 230, 249, 41, 41–42, 50, 50, 50, 50–51, 53–55, 55–56, 56, 56–57, 59, 72, 81, 87, 87, 87–88, 90
   UserProfileComponent.vue80%33.33%100%85.71%17, 17, 19, 23
   types.ts100%100%100%100%
src/components/forms
   AutoCompleteInputComponent.vue92.97%91.89%85.71%95.71%179, 208, 47, 68, 81, 83
   DropdownInputComponent.vue96.88%96.15%94.44%98.08%111, 136
   MultiselectInputComponent.vue92.31%90.48%85.71%95.92%100, 109, 47, 89
   RadioInputComponent.vue88.89%75%83.33%96.67%39, 49, 80, 91
   ReadOnlyComponent.vue100%100%100%100%
   TextInputComponent.vue92.96%84.21%92.31%97.44%129, 137, 156, 62
src/components/forms/DateInputComponent
   DateInputPart.vue91.30%75%100%100%46, 50
   common.ts100%100%100%100%
   index.vue83.86%74.29%93.75%86.18%108, 117, 120, 122, 137, 149, 203, 218, 225, 269–270, 280–281, 296–298, 300–301, 311–312, 316, 330–333, 340–342, 344–345, 347–348, 350, 352, 352–353, 467, 473, 479
src/components/grouping
   AddressGroupComponent.vue89.71%89.89%90.70%89.19%116, 132, 142, 148, 155–156, 156, 156, 156, 158, 160, 162, 179, 185, 196, 218–219, 235, 266, 311, 367
   ContactGroupComponent.vue97.30%100%96.88%95.45%268, 84, 91
   ErrorNotificationGroupingComponent.vue40.91%14.81%66.67%57.58%110, 110, 117, 117, 117, 121, 121, 129, 129, 138, 138, 150, 150, 163, 30–31, 31, 34, 58–59, 59, 63, 63–64, 64, 64, 66–67, 67, 69, 73–74, 74, 76, 90, 98, 98
src/composables
   useElementVisibility.ts100%100%100%100%
   useFetch.ts100%100%100%100%
   useFocus.ts100%100%100%100%
   useScreenSize.ts100%100%100%100%
   useSvg.ts100%100%100%100%
src/dto
   ApplyClientNumberDto.ts100%100%100%100%
   CommonTypesDto.ts100%100%100%100%
src/helpers
   CustomDirectives.ts100%100%100%100%
   DataConversors.ts100%100%100%100%
   ForestClientUserSession.ts100%100%100%100%
src/helpers/validators
   BCeIDFormValidations.ts100%100%100%100%
   GlobalValidators.ts100%100%100%100%
   SubmissionValidators.ts100%100%100%100%
src/pages
   ErrorPage.vue25%100%100%25%11–12, 2
   FormBCSCPage.vue82.25%64.91%71.88%91.55%121–122, 135, 209, 270, 272, 281, 296–298, 306, 311, 323, 323, 323, 325–326, 331, 377, 463, 470, 477, 498, 50, 508, 51–52, 544, 544, 544, 63, 80
   FormBCeIDPage.vue56.45%48.81%33.33%67.18%110–112, 118, 118–119, 124, 124, 124, 127–128, 133, 239, 241, 250, 260–261, 261, 261, 261, 261, 261–264, 270, 276, 281, 281–286, 300, 300–301, 306, 306–307, 307–308, 308, 313, 319–320, 322, 322–324, 329–331, 340, 343–347, 357, 357, 359–361, 446, 468, 468, 468, 488, 488, 488, 497, 533, 536, 539, 539, 539, 558, 68–70, 89, 93–94, 96, 99
   FormSubmittedPage.vue61.11%25%0%83.33%12, 30, 32, 32, 32
   LandingPage.vue75%42.86%100%92.31%18, 18–19, 48, 58
   SubmissionListPage.vue93.10%77.78%100%96.36%153, 42–43, 46, 82, 85
   SubmissionReviewPage.vue73.71%69.14%64.29%79.69%100, 106–108, 117, 117–118, 118, 123–124, 124–127, 131, 131, 145, 170, 174, 179–180, 180, 180, 185, 191, 250, 445, 482, 486–487, 499, 520, 533, 551, 554, 558, 558, 558, 575, 80–81, 83, 89–90, 90–91, 97, 97, 97, 97–98
   UserLoadingPage.vue14.29%0%100%20%12, 14, 14, 14–15, 17
src/pages/bceidform
   AddressWizardStep.vue50.96%57.89%39.13%53.23%107–111, 122, 122, 122, 125, 141, 145, 163–165, 178, 37, 37–38, 38, 38, 40–42, 46, 46–50, 52, 52–53, 58, 76–79
   BusinessInformationWizardStep.vue76.15%75.29%84%75%103–104, 107, 111–113, 157, 157–159, 161, 161–163, 165, 165–169, 172, 193, 203–204, 206–208, 208, 208, 212–214, 223, 227, 230, 249, 256, 286, 336, 351, 369, 373, 373, 373, 49, 71, 75, 89
   ContactWizardStep.vue59.05%65.22%47.83%61.02%118, 118, 118, 123, 143, 150, 171, 173, 40, 40–41,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants