Skip to content

Not possible to use different column name in multiple indexers for subscription #21853

Closed
@nikunjkotecha

Description

@nikunjkotecha

Preconditions (*)

  1. Magento 2.1.4 EE (and looking at the code I can see the same in 2.2.4 CE + 2.3.x dev CE)
  2. Magento catalogsearch_fulltext indexer set to update by schedule

Steps to reproduce (*)

  1. Create custom indexer and mview on cataloginventory_stock_item with entity_column="item_id" instead of product_id used in catalogsearch_fulltext and set it to update by schedule
<view id="custom_stock_indexer" class="Acquia\CommerceManager\Model\Indexer\Stock" group="indexer">
        <subscriptions>
            <table name="cataloginventory_stock_item" entity_column="item_id" />
        </subscriptions>
    </view>

Expected result (*)

  1. Trigger should use item_id for custom indexer and product_id for catalogsearch_fulltext

Actual result (*)

  1. Trigger uses column name from the indexer last set to "update by schedule" (as per the steps to reproduce above it uses item_id for both)

Metadata

Metadata

Assignees

Labels

Component: MviewIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions