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

Task #141211 chore: Order View for Vendor in frontend #30

Open
wants to merge 1 commit into
base: release-1.4.4
Choose a base branch
from

Conversation

amit4106udale
Copy link
Contributor

No description provided.

@scrutinizer-notifier
Copy link

The inspection completed: 7 new issues, 2 updated code elements

*
* @since __DEPLOY_VERSION__
*/
public function validateVendor($userId, $client)
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

@ankush-maherwal ankush-maherwal Apr 17, 2019

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"

@manojLondhe manojLondhe changed the base branch from release-1.3.3 to release-1.3.5 October 22, 2019 10:18
@manojLondhe manojLondhe changed the base branch from release-1.3.5 to release-1.3.6 January 20, 2020 12:15
@manojLondhe manojLondhe changed the base branch from release-1.3.6 to release-1.4.2 August 25, 2020 05:02
@manojLondhe manojLondhe changed the base branch from release-1.4.2 to release-1.4.3 November 3, 2020 10:10
@manojLondhe manojLondhe changed the base branch from release-1.4.3 to release-1.4.4 July 26, 2021 07:07
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.

3 participants