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 possible to use different column name in multiple indexers for subscription #21853

Closed
nikunjkotecha opened this issue Mar 20, 2019 · 7 comments · Fixed by #21857
Closed
Assignees
Labels
Component: Mview Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Progress: done Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release Severity: S3 Affects non-critical data or functionality and does not force users to employ a workaround. Triage: Dev.Experience Issue related to Developer Experience and needs help with Triage to Confirm or Reject it

Comments

@nikunjkotecha
Copy link

nikunjkotecha commented Mar 20, 2019

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)
@magento-engcom-team
Copy link
Contributor

Hi @nikunjkotecha. 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 2.3-develop instance - upcoming 2.3.x release

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

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

  • yes
  • no

@magento-engcom-team magento-engcom-team added the Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed label Mar 20, 2019
@nikunjkotecha
Copy link
Author

Yes this is reproducible in Vanilla Magento, I'll try and provide a hacky patch soon.

@nikunjkotecha
Copy link
Author

I've created PR for possible direction towards the fix, I don't expect it to be the final fix as it should be done in more generic and global way IMO but since it is blocker in my project I'm going with a the solution I suggested with known risks (if some indexer uses it's custom Subscription class, my fixes won't be applied to it)

@ghost ghost self-assigned this Mar 21, 2019
@magento-engcom-team
Copy link
Contributor

magento-engcom-team commented Mar 21, 2019

Hi @engcom-backlog-nazar. 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

  • Next steps are available in case you are a member of Community Maintainers.

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

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

@ghost ghost added the Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed label Mar 21, 2019
@nikunjkotecha
Copy link
Author

@magento-engcom-team this requires custom code to be added to be able to reproduce the issue, not sure if you will allow me to add custom code in the instance you give to me

@ghost ghost added the Component: Mview label Mar 21, 2019
@ghost ghost assigned nikunjkotecha Mar 27, 2019
@nikunjkotecha
Copy link
Author

@magento-engcom-team @engcom-backlog-nazar can someone help me understand next steps here?

@ghost ghost added Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed labels Mar 29, 2019
@magento-engcom-team
Copy link
Contributor

✅ Confirmed by @engcom-backlog-nazar
Thank you for verifying the issue. Based on the provided information internal tickets MAGETWO-98959, MAGETWO-98960 were created

Issue Available: @engcom-backlog-nazar, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

@magento-engcom-team magento-engcom-team added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Mar 29, 2019
@magento-engcom-team magento-engcom-team added this to PR In Progress in Community Backlog Mar 24, 2020
nikunjkotecha pushed a commit to nikunjkotecha/magento2 that referenced this issue Apr 12, 2020
nikunjkotecha pushed a commit to nikunjkotecha/magento2 that referenced this issue Apr 12, 2020
@VladimirZaets VladimirZaets added the Triage: Dev.Experience Issue related to Developer Experience and needs help with Triage to Confirm or Reject it label Jul 13, 2020
nikunjkotecha pushed a commit to nikunjkotecha/magento2 that referenced this issue Aug 29, 2020
nikunjkotecha pushed a commit to nikunjkotecha/magento2 that referenced this issue Aug 31, 2020
@sidolov sidolov added this to Ready for Grooming in Low Priority Backlog Sep 3, 2020
@m2-community-project m2-community-project bot moved this from Ready for Grooming to Pull Request In Progress in Low Priority Backlog Sep 3, 2020
@m2-community-project m2-community-project bot added Progress: PR Created Indicates that Pull Request has been created to fix issue and removed Progress: PR in progress labels Sep 3, 2020
@lenaorobei lenaorobei added Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Severity: S3 Affects non-critical data or functionality and does not force users to employ a workaround. labels Sep 4, 2020
@m2-community-project m2-community-project bot added Progress: PR Created Indicates that Pull Request has been created to fix issue and removed Progress: PR Created Indicates that Pull Request has been created to fix issue labels Sep 4, 2020
@sidolov sidolov added this to Ready for Development in Low Priority Backlog Sep 24, 2020
@m2-community-project m2-community-project bot moved this from Ready for Development to Pull Request In Progress in Low Priority Backlog Sep 24, 2020
@m2-community-project m2-community-project bot added Progress: PR Created Indicates that Pull Request has been created to fix issue and removed Progress: PR Created Indicates that Pull Request has been created to fix issue labels Sep 24, 2020
engcom-Foxtrot added a commit to nikunjkotecha/magento2 that referenced this issue Sep 28, 2020
@sidolov sidolov added this to Pull Request In Progress in High Priority Backlog Oct 20, 2020
@ghost ghost removed this from PR In Progress in Community Backlog Oct 20, 2020
@ghost ghost removed this from Pull Request In Progress in Low Priority Backlog Oct 20, 2020
@ghost ghost added Progress: PR in progress and removed Progress: PR Created Indicates that Pull Request has been created to fix issue labels Oct 20, 2020
magento-engcom-team added a commit that referenced this issue Jan 24, 2021
…umns. #21857

 - Merge Pull Request #21857 from nikunjkotecha/magento2:21853
 - Merged commits:
   1. 891198c
   2. 7da4940
   3. b59fc5a
   4. 4035ec0
   5. 320ced7
   6. 0d1ac3a
   7. 6cbf85f
   8. 7c2d2a6
   9. 8388a90
   10. 3f67ed8
   11. 873b814
   12. 392dbf6
   13. ff56be5
   14. e16f2c2
   15. 922e029
   16. 330d595
   17. 4c1094a
   18. 69cee97
   19. 46429a4
   20. 4ad7aae
   21. 8a9b768
   22. db4cf23
   23. 094decc
   24. 910eb41
   25. be3f84b
@m2-community-project m2-community-project bot moved this from Pull Request In Progress to Done in High Priority Backlog Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Mview Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Progress: done Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release Severity: S3 Affects non-critical data or functionality and does not force users to employ a workaround. Triage: Dev.Experience Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
Projects
Development

Successfully merging a pull request may close this issue.

5 participants