-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Issue 31043: Elastic Search interferes with the default sort order of products (changing newest first to oldest first) #36900
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
base: 2.4-develop
Are you sure you want to change the base?
Conversation
Hi @rogerdz. Thank you for your contribution! Add the comment under your pull request to deploy test or vanilla Magento instance:
❗ Automated tests can be triggered manually with an appropriate comment:
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento give me test instance |
Hi @rogerdz. Thank you for your request. I'm working on Magento instance for you. |
Hi @rogerdz, here is your Magento Instance: https://a961f7d4071fdb23cce8cdfa12c1651a.instances.magento-community.engineering |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento give me test instance |
Hi @Viper9x. Thank you for your request. I'm working on Magento instance for you. |
Hi @Viper9x, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later. |
@magento give me test instance |
Hi @Viper9x. Thank you for your request. I'm working on Magento instance for you. |
Hi @Viper9x, here is your Magento Instance: https://a961f7d4071fdb23cce8cdfa12c1651a.instances.magento-community.engineering |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run Functional Tests B2B, Functional Tests CE , Functional Tests EE |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@rogerdz Could you please resolve conflict? |
@magento run all tests |
@magento run all tests |
Hello @engcom-Hotel I have fixed all the failed automated test because of the changes done in PR. Also added automated test to verify the descending sort order functionality. Also taken care of the review comments. The 4th point is not included in the changes becuase that is no longer applicable since we are fetching the value from configuration. Could you please review the changes ? Moving this PR for review. Thanks! |
@magento run all tests |
@magento run all tests |
Hi @rogerdz, Thanks for the collaboration & contribution! ✔️ QA PassedPreconditions:
Steps to reproduce
Before: ✖️ ![]() ![]() After: ✔️ ![]() ![]() Builds are failed. Hence, moving this PR to Extended Testing. Thanks. |
Since we have introduced a new store configuration, SVC is failing because of it hence created internal approval JIRA for the same. ![]() hence moving this PR in Pending Approval. |
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.
Hi @rogerdz
Could you please review my comment
['value' => 'ASC', 'label' => __('Ascending')], | ||
['value' => 'DESC', 'label' => __('Descending')], |
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.
In my opinion constant usage Select::SQL_ASC
or Collection::SORT_ORDER_ASC
is more preferable
Description (*)
Add sorting condition by product id desc
Additional Information
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)