-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Sorting by Websites not working in product grid in backoffice #20511 #20512
Sorting by Websites not working in product grid in backoffice #20511 #20512
Conversation
Hi @XxXgeoXxX. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
@magento-engcom-team give me test instance |
Hi @vpodorozh. Thank you for your request. I'm working on Magento instance for you |
Hi @vpodorozh, here is your new Magento instance. |
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.
@XxXgeoXxX - thank you for your contribution.
Could you please take a look at my "change request"?
Also, it would be awesome if you would add the MFTF test for product grid sorting by website.
Thank you!
app/code/Magento/Catalog/Ui/Component/Listing/Columns/Websites.php
Outdated
Show resolved
Hide resolved
app/code/Magento/Catalog/Ui/Component/Listing/Columns/Websites.php
Outdated
Show resolved
Hide resolved
@XxXgeoXxX - what about MFTF test? |
Please add it, thx! |
Hi @vpodorozh |
Hi @vpodorozh, thank you for the review. |
<!--Create new website --> | ||
<actionGroup ref="AdminCreateWebsiteActionGroup" stepKey="createAdditionalWebsite"> | ||
<argument name="newWebsiteName" value="Second Website"/> | ||
<argument name="websiteCode" value="second_website"/> |
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 would recommend to use data entity customWebsite
.
It will create unique WebSite Name and WebSite code.
Arguments will look like this
<argument name="newWebsiteName" value="{{customWebsite.name}}"/>
<argument name="websiteCode" value="{{customWebsite.code}}"/>
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.
done
</before> | ||
<after> | ||
<actionGroup ref="AdminDeleteWebsiteActionGroup" stepKey="deleteTestWebsite"> | ||
<argument name="websiteName" value="Second Website"/> |
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.
Once you will use customWebsite
entity, you should also specify it here: <argument name="websiteName" value="{{customWebsite.name}}"/>
And also you should specify {{customWebsite.name}}
in all actions you specified 'Second Website'
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.
done
Hi @okolesnyk |
✔️ QA passed |
@magento-engcom-team give me 2.3-develop instance |
Hi @okolesnyk. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @okolesnyk, here is your Magento instance. |
@magento-engcom-team give me 2.3-develop instance |
Hi @okolesnyk. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @okolesnyk, here is your Magento instance. |
92a7749
to
a6f266d
Compare
Hi @XxXgeoXxX, thank you for your contribution! |
issue #20511
Description (*)
Preconditions (*)
Magento Version : CE 2.2X
Magento Version : CE 2.3.X
Steps to reproduce (*)
Navigate to admin catalog product grid
Using "Columns" selection add Websites'' column in the grid
Expected result (*)
Sort by 'Websites' should be working fine.
Actual result (*)
Sort by 'websites' product attribute not working.
Manual testing scenarios (*)
Navigate to admin catalog product grid
Using "Columns" selection add Websites'' column in the grid
Contribution checklist (*)