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

17573/17467: Support for Manufacturer and HomeDealer QS Applicant Reviews #2687

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

cameron-eyds
Copy link
Collaborator

Issue #:
bcgov/entity#17573
bcgov/entity#17467

Note: Hide White Space changes for easier reviewing 👍

Description of changes:

Home Dealer Applicant Updates:

  • Support additional DBA Name Field
  • Minor Requirements configuration updates

Manufacturer Applicant Updates:

  • Fetch and parse data from dedicated Manufacturer endpoint via mhr api

  • Support for dba name fields, as well as Home/lot location data

  • Requirements configuration updates

  • Updated unit tests to verify all types of Qualified Supplier applicants

Some screenshots attached for context:

Home Dealer Flow:
Screenshot 2024-01-19 at 8 28 45 AM
Screenshot 2024-01-19 at 8 28 55 AM
Screenshot 2024-01-19 at 8 30 55 AM
Screenshot 2024-01-19 at 8 31 19 AM

Manufacturer Flow:

Screenshot 2024-01-19 at 8 40 40 AM
Screenshot 2024-01-19 at 8 40 51 AM
Screenshot 2024-01-19 at 8 41 33 AM

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

@cameron-eyds
Copy link
Collaborator Author

/gcbrun

Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://bcregistry-account-dev--pr-2687-01827awu.web.app

* @returns {QualifiedSupplierApplicant} The converted qualified supplier applicant.
*/
const formatManufacturer = (mfData: MhrManufacturerInfoIF): QualifiedSupplierApplicant => {
// Always 1 group with 1 owner in Manufacturer Owner record
Copy link
Collaborator

Choose a reason for hiding this comment

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

thanks for this

@@ -236,22 +273,58 @@ export default defineComponent({
}),
qsRequirements: computed((): QualifiedSupplierRequirementsConfig[] => {
return userAccessRequirements[props.taskDetails?.type]
})
}),
isLawyerNotaryApplication: computed((): boolean => props.taskDetails?.type === TaskType.MHR_LAWYER_NOTARY),
Copy link
Collaborator

Choose a reason for hiding this comment

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

cool, I wonder what's the difference between this and
computed<boolean>(()=> props.taskDetails?.type === TaskType.MHR_LAWYER_NOTARY)

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'm not sure!
It may be a case of either or. Both seem to do the trick.

Do you have a preference? I wonder if one is preferred in a more strict typing scenario 🤔

Copy link
Collaborator

Choose a reason for hiding this comment

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

either works I think, any feature flags or timing this needs to be released at? or can we just merge and push to prod anytime?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No feature flags required for this one!

Support to create these Qualified Supplier applications lives on our end and is flagged/unreleased.
This code can go anytime that works for Relationships release schedule 👍

Copy link

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

Looking good.

const orgName = wrapper.find('[data-test="qs-org-name"]').text()
expect(orgName).toContain('Test Business')
})
it.runIf([TaskType.MHR_MANUFACTURERS, TaskType.MHR_DEALERS].includes(taskType))(
Copy link
Contributor

Choose a reason for hiding this comment

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

👍🏻

@seeker25 seeker25 merged commit afcdc32 into bcgov:main Jan 22, 2024
6 checks passed
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.

5 participants