Skip to content

Disabling product does not remove it from the flat index #14966

Closed
@ktruehl

Description

@ktruehl

Preconditions

  1. Magento 2.2.3
  2. PHP 7.1
  3. Apache

Steps to reproduce

  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.

Metadata

Metadata

Assignees

Labels

Fixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Format is validGate 1 Passed. Automatic verification of issue format passed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions