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

Not needed hard dependency between bundle and catalog search modules #104

Open
tzyganu opened this issue Dec 12, 2018 · 6 comments
Open

Comments

@tzyganu
Copy link

tzyganu commented Dec 12, 2018

Preconditions (*)

  1. Magento version 2.2 or 2.3

Steps to reproduce (*)

  1. DIsable module Magento_Bundle by changing 1 to 0 in config.php prior to installing magento since it cannot be disabled via cli because of circular dependencies.
  2. set catalog search full text index to manual bin/magento indexer:set-mode manual catalogsearch_fulltext

Expected result (*)

  1. fulltext search index is set to manual.

Actual result (*)

1.console command reports an error

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'catalog_product_bundle_selection' doesn't exist, query was: CREATE TRIGGER trg_catalog_product_bundle_selection_after_insert AFTER INSERT ON catalog_product_bundle_selection FOR EACH ROW BEGIN INSERT IGNORE INTO catalogsearch_fulltext_cl (entity_id) VALUES (NEW.parent_product_id); END

Additional info.

The problem is caused by this line
<table name="catalog_product_bundle_selection" entity_column="parent_product_id" /> from the mview.xml file from the Catalog Search module.
Moving this line to the bundle module looks like it solves the problem.

@magento-engcom-team
Copy link

Hi @tzyganu. Thank you for your report.
To help us process this issue please make sure that you provided the following information:

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento-engcom-team give me $VERSION instance

where $VERSION is version tags (starting from 2.2.0+) or develop branches (for example: 2.3-develop).
For more details, please, review the Magento Contributor Assistant documentation.

@tzyganu do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?

  • yes
  • no

@TomashKhamlai TomashKhamlai self-assigned this Dec 12, 2018
@magento-engcom-team
Copy link

magento-engcom-team commented Dec 12, 2018

Hi @TomashKhamlai. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).

    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.

  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • 4. Verify that the issue is reproducible on 2.3-develop branch

    Details- Add the comment @magento-engcom-team give me 2.3-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • 5. Verify that the issue is reproducible on 2.2-develop branch.

    Details- Add the comment @magento-engcom-team give me 2.2-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.2-develop branch, please add the label Reproduced on 2.2.x

  • 6. Add label Issue: Confirmed once verification is complete.

  • 7. Make sure that automatic system confirms that report has been added to the backlog.

@orlangur
Copy link
Contributor

@tzyganu such bug report is not valid as Bundle module cannot be currently disabled, however, I believe such modularity improvement has high chances to be merged if proposed as a pull request.

@orlangur
Copy link
Contributor

Looks like this is not the only modularity violation, <table name="catalog_product_super_link" entity_column="product_id" /> should belong to ConfigurableProduct (which is removable module, by the way, unlike Bundle).

@TomashKhamlai
Copy link

@tzyganu, thank you for reporting this issue. It is expected that if you broke any dependency Magento will not work. This report seems to me like "add us more granular modularity" feature request.

@okorshenko okorshenko transferred this issue from magento/magento2 Dec 14, 2018
@ianitsky
Copy link

ianitsky commented Apr 6, 2019

It occours if you disable the module Magento_ConfigurableProduct too.

When I run bin/magento setup:upgrade I have the follow error:

Module 'Magento_Indexer':
Running data recurring... SQLSTATE[42S02]: Base table or view not found: 1146 Table 'catalog_product_super_link' doesn't exist, query was: CREATE TRIGGER trg_catalog_product_super_link_after_insert AFTER INSERT ON catalog_product_super_link FOR EACH ROW
BEGIN
INSERT IGNORE INTO catalogsearch_fulltext_cl (entity_id) VALUES (NEW.product_id);
END

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants