-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Fixed indicating products that are invalid for publication #3147
Conversation
@aanchirinah What's the status on this? |
I have tested this out and everything is working fine. |
@zenweasel , I was still testing it out but everything works as it should now |
@aanchirinah So there appears to be quite a few problems here. The most obvious one being that when I add a product in a merchant shop, an error is thrown in the primary shop
Steps to reproduce
|
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.
Seeing errors when adding products in marketplace shops
…dax-fix-issue-2690
…dax-fix-issue-2690
@zenweasel , I just pulled recent |
When I correct the problems with a product in the marketplace shop, the red dot does not appear to get removed in the primary shop. Steps to replicate
You also have a lint error that needs to be resolved.
|
@zenweasel , I have fixed your requested changes |
Tested. Verified working. |
Fixed indicating products that are invalid for publication
Partly resolves #2690 ,
This PR adds a red badge at the top of products that have failed validation before being published. I added a
checkValidation
function ingridItemControlContainer.js
that uses Simple Schema validation method to check validity of a product including it's variants before publishing it. And also added a condition to also add the appropriate badge for when a product is invalid ingridItemControl.js
component.HOW TO TEST
Some context before proceeding to test, so initially it was quite confusing for a user to differentiate between products that require to be published and those that required all fields to be completed as it indicated a green info badge on the affected products in the product grid. To understand what is trying to be fixed here, the test below is going to include how to create these 2 instances of products.
How to test for the green badge
How to test for the red badge