-
Notifications
You must be signed in to change notification settings - Fork 32
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
Task #141211 chore: Order View for Vendor in frontend #30
base: release-1.4.4
Are you sure you want to change the base?
Conversation
The inspection completed: 7 new issues, 2 updated code elements |
* | ||
* @since __DEPLOY_VERSION__ | ||
*/ | ||
public function validateVendor($userId, $client) |
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.
@amit4106udale the function name needs to be updated as per the functionality of the method.
The function seems to be checking if a user is already a vendor and if he is not then adding him as a vendor.
What exactly we are validating in this function?
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.
@ankush-maherwal - We are checking the user is a vendor or not. If the user is not a vendor then make him. if he is a vendor the returning the id as it is. Discussed this with @twsvaishali @thite-amol
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.
@thite-amol @twsvaishali @amit4106udale Seems the function is wrongly named....validateVendor sounds as if we are performing some kind of validation for the vendor (Creating the vendor should not be the part of this function). To check if a user is a vendor for some client we already have a function named "checkVendor"
No description provided.