-
Notifications
You must be signed in to change notification settings - Fork 33
API: Unrestricted rule for home dealers #2060
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
Conversation
| error_msg += validator_utils.validate_registration_state( | ||
| registration, staff, MhrRegistrationTypes.PERMIT, MhrDocumentTypes.REG_103, json_data | ||
| ) | ||
| if registration and group_name and group_name == MANUFACTURER_GROUP: |
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.
From the ticket description the removal of the restriction applies only to dealers. MANUFACTURER_GROUP applies to QS manufactures, which I do not think has changed.
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.
Definitely correct, only Dealers are changing.
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.
Yep! I will update it.
| ('Missing land status confirm MH_PARK', False, '000900', LOCATION_PARK_2, | ||
| validator_utils.STATUS_CONFIRMATION_REQUIRED, | ||
| REQUEST_TRANSPORT_PERMIT), | ||
| ('MANUFACTURER no existing lot', False, '000919', None, validator.MANUFACTURER_DEALER_INVALID, |
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.
If the validation change only applies to QS dealers then the manufacturer tests can remain as is.
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 will revert this change!
doug-lovett
left a comment
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.
Looks good, just a comment on scope - if QS manufacturer validation is changing? From the ticket description it looks like only QS dealer validation is changing.
* Enhanced Dealer Updates * clean up * Added Script Commands
* Dealer Civic Location Addition * Version Bump
* MHR API QS dealer endpoint updates Signed-off-by: Doug Lovett <doug@diamante.ca> * MHR API update lock file. Signed-off-by: Doug Lovett <doug@diamante.ca> --------- Signed-off-by: Doug Lovett <doug@diamante.ca>
Issue #: /bcgov/entity#24056
Description of changes:
NOTE: Since I am not comfortable to update the DB yet, I left the other 2 tasks.
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).