magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.57k stars 9.32k forks source link

Product Views Report is incorrect when FPC / Varnish is enabled #31799

Open PascalBrouwers opened 3 years ago

PascalBrouwers commented 3 years ago

Preconditions (*)

  1. Magento 2.4-develop

Steps to reproduce (*)

  1. Enable Reports in Configuration -> General -> Reports.
  2. Have FPC / Varnish cache cleared
  3. visit product "A"
  4. look in tabel report_viewed_product_index and see a record for product "A"
  5. refresh the page (or better yet open a incognito tab to go to the page)

Expected result (*)

  1. Should have 2 records in tabel report_viewed_product_index for product "A"

Actual result (*)

  1. Only 1 record is in tabel report_viewed_product_index for product "A"

Also see: https://github.com/magento/magento2/issues/25499 Relevant searches: Most Viewed, Magento_Reports, CatalogProductViewObserver

Note: If flush cash and visit product page again, new record is created in report_viewed_product_index


Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

m2-assistant[bot] commented 3 years ago

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

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 give me 2.4-develop instance - upcoming 2.4.x release

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

Please, add a comment to assign the issue: @magento I am working on this


:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.

:movie_camera: You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

PascalBrouwers commented 3 years ago

Yes, issue is reproducible on vanilla Magento.

m2-assistant[bot] commented 3 years ago

Hi @engcom-Delta. 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: :point_down:

magento-engcom-team commented 3 years ago

:white_check_mark: Confirmed by @engcom-Delta Thank you for verifying the issue. Based on the provided information internal tickets MC-40581 were created

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

engcom-Delta commented 2 months ago

Hi @PascalBrouwers ,

Thanks for your reporting and collaboration. We have verified the issue in latest 2.4-develop instance and the issue is reproducible. Kindly refer the screenshots.

Steps to reproduce

  1. Enable Reports in Configuration -> General -> Reports. image
  2. Clear Cache
  3. visit product "A"
  4. look in tabel report_viewed_product_index and see a record for product "A" image
  5. refresh the page (or better yet open a incognito tab to go to the page)
  6. Observe the table report again, Record is not updated to 2. image

Thanks.

github-jira-sync-bot commented 2 months ago

Unfortunately, not enough information was provided to create a Jira ticket. Please make sure you added the following label(s): Reproduced on 2.4.x, ^Area:.*

Once all required labels are present, please add Issue: Confirmed label again.

github-jira-sync-bot commented 2 months ago

Unfortunately, not enough information was provided to create a Jira ticket. Please make sure you added the following label(s): Reproduced on 2.4.x, ^Area:.*

Once all required labels are present, please add Issue: Confirmed label again.

github-jira-sync-bot commented 2 months ago

Unfortunately, not enough information was provided to create a Jira ticket. Please make sure you added the following label(s): Reproduced on 2.4.x, ^Area:.*

Once all required labels are present, please add Issue: Confirmed label again.

github-jira-sync-bot commented 2 months ago

:x: Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.adobe.com/browse/AC-789