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

Fixed Issue #35899: Filtering with out of stock products, limited only to products in… #35986

Merged
merged 3 commits into from
Oct 7, 2022

Conversation

Bashev
Copy link
Contributor

@Bashev Bashev commented Aug 19, 2022

… result.

Description (*)

Related Pull Requests

Fixed Issues (if relevant)

  1. Fixes Catalog shown entire catalog items count if show_of_stock_option enabled #35899
  2. Fixes Filters not working on category pages in 2.4.5 #35960
  3. Fixes Magento 2.4.5: Show Out Of Stock option outputs all available products during search #36055

Manual testing scenarios (*)

see #35899

  1. ...
  2. ...

Questions or comments

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • All automated tests passed successfully (all builds are green)

@m2-assistant
Copy link

m2-assistant bot commented Aug 19, 2022

Hi @Bashev. Thank you for your contribution
Here are some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.4-develop instance - deploy vanilla Magento instance

❗ Automated tests can be triggered manually with an appropriate comment:

  • @magento run all tests - run or re-run all required tests against the PR changes
  • @magento run <test-build(s)> - run or re-run specific test build(s)
    For example: @magento run Unit Tests

<test-build(s)> is a comma-separated list of build names. Allowed build names are:

  1. Database Compare
  2. Functional Tests CE
  3. Functional Tests EE,
  4. Functional Tests B2B
  5. Integration Tests
  6. Magento Health Index
  7. Sample Data Tests CE
  8. Sample Data Tests EE
  9. Sample Data Tests B2B
  10. Static Tests
  11. Unit Tests
  12. WebAPI Tests
  13. Semantic Version Checker

You can find more information about the builds here

ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review.

For more details, review the Magento Contributor Guide documentation.

⚠️ According to the Magento Contribution requirements, all Pull Requests must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.

🕙 You can find the schedule on the Magento Community Calendar page.

📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

@m2-community-project m2-community-project bot added the Priority: P0 This generally occurs in cases when the entire functionality is blocked. label Aug 19, 2022
@Bashev
Copy link
Contributor Author

Bashev commented Aug 19, 2022

@magento give me test instance

@magento-deployment-service
Copy link

Hi @Bashev. Thank you for your request. I'm working on Magento instance for you.

@magento-deployment-service
Copy link

@Bashev
Copy link
Contributor Author

Bashev commented Aug 19, 2022

@magento run all tests

@magento-automated-testing
Copy link

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.

@Bashev Bashev changed the title fix filtering with out of stock products, limited only to products in… Fixed Issue 35899: Filtering with out of stock products, limited only to products in… Aug 19, 2022
@Bashev Bashev changed the title Fixed Issue 35899: Filtering with out of stock products, limited only to products in… Fixed Issue #35899: Filtering with out of stock products, limited only to products in… Aug 19, 2022
@Bashev
Copy link
Contributor Author

Bashev commented Aug 19, 2022

@magento run WebAPI Tests

@magento-automated-testing
Copy link

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.

@Bashev
Copy link
Contributor Author

Bashev commented Aug 19, 2022

@magento run Functional Tests CE, Functional Tests EE

@magento-automated-testing
Copy link

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.

@Bashev
Copy link
Contributor Author

Bashev commented Aug 22, 2022

@magento run Integration Tests, Functional Tests CE, Functional Tests EE, Functional Tests B2B

@magento-automated-testing
Copy link

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.

@Bashev
Copy link
Contributor Author

Bashev commented Aug 22, 2022

@magento run Functional Tests EE

@magento-automated-testing
Copy link

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.

@m2-community-project m2-community-project bot added the Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. label Sep 29, 2022
@magento-devops-reposync-svc magento-devops-reposync-svc merged commit 7792c18 into magento:2.4-develop Oct 7, 2022
@i6media
Copy link

i6media commented Oct 17, 2022

Issue doesn't seem resolved by merged commit, please refer to: #35899 (comment)

@i6media
Copy link

i6media commented Oct 17, 2022

For people looking for a temporary hotfix: https://github.com/plumrocket/module-layered-navigation-fix-magento-2.4.5

@FadedOut
Copy link

FadedOut commented Nov 8, 2022

For people looking for a temporary hotfix: https://github.com/plumrocket/module-layered-navigation-fix-magento-2.4.5

Awesome, this seemed to do it for me. The count is correct as well as the filtering.

For anyone else coming across this and wants to use that file, there aren't any instructions. So in case anyone might be slightly confused this is what I did (there might be other ways, like maybe composer require, but this I found worked for me):

  • I downloaded the zip of that file (Code > Download ZIP)
  • Navigate to ./app/code/ and make a folder called: Plumrocket
  • Go into newly created folder (Plumrocket)
  • Make new folder called: ProductFilterFixMagento245
  • Add contents of downloaded ZIP into that folder (contents: etc, Model, registration.php)

Run your normal commands

for example:

php bin/magento setup:upgrade ; php bin/magento setup:di:compile ; php bin/magento setup:static-content:deploy ; php bin/magento cache:flush ; php bin/magento cache:clean

Thanks to the great help out there fixing up these constant regressions during these "updates". Every update there is always serious regressions. I wonder who tests these "updates"...

@mobweb
Copy link

mobweb commented Jan 17, 2023

For people looking for a temporary hotfix: https://github.com/plumrocket/module-layered-navigation-fix-magento-2.4.5

This helped me fix the issue on regular category pages, but on a category page where a filter is applied, the sorting by "is_salable" is lost.

However, the fix proposed in this issue does not solve the issue at all, at least for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: P0 This generally occurs in cases when the entire functionality is blocked. Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. Progress: pending review
Projects
None yet
5 participants