-
-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Business name should be mandatory for vendors #4677
Comments
Hi @cielf, hope you are well! If possible, I would love to take this issue. This would be my first contribution, but my job uses Rails and Rspec so I feel very comfortable with the scope of this ticket. No worries at all if it would be preferable for me to take one tagged as a good first time issue. If that would be alright, I do have one implementation question!I was reviewing to determine whether the validation should be added to the Vendor model itself or the shared Provideable concern where the "business name or contact name" validation currently exists. It feels like Provideable would be a better fit to avoid validating the field twice with differing criteria, but then the business name would be mandatory for ProductDriveParticipant as well. Would it be okay to introduce that requirement and do spec changes and the backfill via migration for both, or would we want to limit the scope to only affecting Vendor at this time? |
I'm assigning it to you, then! What's your question? |
Awesome, thank you very much! I was reviewing to determine whether the validation should be added to the Vendor model itself or the shared Provideable concern where the "business name or contact name" validation currently exists. It feels like Provideable would be a better fit to avoid validating the field twice with differing criteria, but then the business name would be mandatory for ProductDriveParticipant as well. Would it be okay to introduce that requirement and do spec changes and the backfill via migration for both, or would we want to limit the scope to only affecting Vendor at this time? |
Hmmm.. I think that a product drive participant could be an individual. Let me check what the production data looks like for those. |
Yeah... more than 10 % of our Product Drive Participants have no business name. In fact it looks like business name was added later -- that we started out without it! So put it only on the Vendor, please. |
Will do, thank you for your clarification! |
#Summary
The business name is not currently mandatory for vendors it should be.
Why?
It's shown in drop downs, and it's a bit silly to have a blank there.
Details
Vendors can be entered under Community | Vendors, but also in a popup under Purchases | New Purchase (click on the vendor field and there is an option to enter a new vendor).
We do have 1 case where the business name is not entered in production, but the contact name makes sense as the business name.
Also do a migration to bring the contact name into the business name if the business name is blank.
Criteria for completion
The text was updated successfully, but these errors were encountered: