-
Notifications
You must be signed in to change notification settings - Fork 70
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
17573/17467: Support for Manufacturer and HomeDealer QS Applicant Reviews #2687
Conversation
/gcbrun |
|
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 |
There was a problem hiding this comment.
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), |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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 🤔
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 👍
There was a problem hiding this 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))( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻
Issue #:
bcgov/entity#17573
bcgov/entity#17467
Note: Hide White Space changes for easier reviewing 👍
Description of changes:
Home Dealer Applicant 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](https://private-user-images.githubusercontent.com/53542131/298139542-ce5e551a-3830-402b-9beb-a45859ba2433.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MDEzMTYsIm5iZiI6MTczODkwMTAxNiwicGF0aCI6Ii81MzU0MjEzMS8yOTgxMzk1NDItY2U1ZTU1MWEtMzgzMC00MDJiLTliZWItYTQ1ODU5YmEyNDMzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDA0MDMzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYxMzVhYzA2ZTY5ZDVmZDI0NDViNWI1YWZiYmQ3OTY4MDQzOTQ0MWU1OTY4Nzc1MTNhYTUxNWJiMWZkYWQ4ZTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.vY9Qbp57B58Lo3hZXzoNBVvTUTFlUETnLVj_dlyVw2c)
![Screenshot 2024-01-19 at 8 28 55 AM](https://private-user-images.githubusercontent.com/53542131/298139567-07873b08-ab02-4a8f-a127-09c32ec5bbbd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MDEzMTYsIm5iZiI6MTczODkwMTAxNiwicGF0aCI6Ii81MzU0MjEzMS8yOTgxMzk1NjctMDc4NzNiMDgtYWIwMi00YThmLWExMjctMDljMzJlYzViYmJkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDA0MDMzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQwOTcxOWU3MzM0NzlhNzdjNWMyZTM0NmU5MTgxNWExMzljYzIwMDdjZGYwMDBiN2Y2OGVhOWMxNzQwYTkwNGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.0nSqBSYCJirqS6kFBc9o0hu8zn2wZnOf5WZ0lm3yKiM)
![Screenshot 2024-01-19 at 8 30 55 AM](https://private-user-images.githubusercontent.com/53542131/298139609-cdd74432-4b41-4fb8-82c2-849d74b08ef4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJ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UwMjA3VDA0MDMzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUzODg0ZWFhMGU1Yzg4NzEzMDkxYzkwM2JhOTljYjJlOTI3ZjVhNGFkMGQ0MTQ5Mzc4ZjIzM2FkNDdjM2U1YWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.BCwvvmGkQdsYzKYf-XRZvD9Gp6gKOnRa3zWoz8VssNM)
Manufacturer Flow:
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).