Skip to content

[Forwardport] Solve issue #14966 - Disabling product does not remove it from… #16114

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

Conversation

hitesh-wagento
Copy link
Contributor

… the flat index

Description

When you disable a product it should be removed from the flat table

Fixed Issues (if relevant)

  1. [TASK] Solve issue #14966 - Disabling product does not remove it from… #15019: Disabling product does not remove it from the flat index

Manual testing scenarios

  1. Install Magento 2.2.3 together with the sample data set.
  2. Make sure cron is run every minute (bin/magento cron:run).
  3. Make sure the config setting Use Flat Catalog Product is set to Yes.
  4. Make sure the flat index is up-to-date: bin/magento index:reindex catalog_product_flat.
  5. Choose an enabled product in the Magento admin backend. Say its ID is X.
  6. Make sure that there exists an entry in table catalog_product_flat_1 with entity_id = X. If not, you've done something wrong.
  7. Now, in the Magento admin backend, disable the product.
  8. Wait a few minutes.
  9. Check whether the table catalog_product_flat_1 still contains an entry with entity_id = X.

Expected result

  1. The table catalog_product_flat_1 should contain no entry with entity_id = X.

Actual result

  1. The table catalog_product_flat_1 contains an entry with entity_id = X.

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)
  • All automated tests passed successfully (all builds on Travis CI are green)

hitesh-wagento and others added 25 commits June 5, 2018 09:54
[Forwardport] [Resolved : Styling <select> by changing less variables in Luma theme…
[Forwardport] [Changed indentation 2 to 4]
[Forwardport] Add missing table aliases to fields mapping for Customer Group filter…
[Forwardport] [Resolved : limiter float too generic]
[Forwardport] [Resolved : Changing @tab-content__border variable has no effect in B…
[Forwardport] Attribute set save admin controller refactor
[Forwardport] Postpone instantiation of session config by using a proxy
@magento-engcom-team magento-engcom-team added Partner: Wagento Pull Request is created by partner Wagento partners-contribution Pull Request is created by Magento Partner labels Jun 14, 2018
@magento-engcom-team
Copy link
Contributor

Hi @hitesh-wagento. Thank you for your contribution
Here is 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-engcom-team give me test instance - deploy test instance based on Pull Request changes
  • @magento-engcom-team give me new test instance - deploy NEW test instance based on Pull Request changes
  • @magento-engcom-team give me {$VERSION} instance - deploy Vanilla Magento instance for Issue or Pull Request

For more details, please, review the Magento Contributor Assistant documentation

@VladimirZaets
Copy link
Contributor

Hi @hitesh-wagento, thank you for collaboration.

  1. Please, resolve branch merge conflicts
  2. The original PR contains only 2 changed files, but your PR contains changes in 9 files, what the reason of it?

@VladimirZaets VladimirZaets self-assigned this Jun 26, 2018
@hitesh-wagento
Copy link
Contributor Author

Hi @VladimirZaets

I have created new PR #16416 and closing this PR.

@hitesh-wagento hitesh-wagento deleted the 2.3-develop-PR-port-disabling-product branch September 6, 2018 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants