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

#34063 fixed issue with price block cache for different zones #34207

Conversation

vovsky
Copy link
Contributor

@vovsky vovsky commented Sep 30, 2021

Description (*)

This PR fixes issue with price block cache for different zones.
Price block cache for "related product view" and PDP view was the same. As result on PDP price block doesn't have Rich Snippets (offers) markup if it was already cached in related products section of other product.

Fixed Issues (if relevant)

  1. Fixes Related Products Block Breaks Rich Snippets Price on Product View #34063

Manual testing scenarios (*)

  1. Create Product A
  2. Create Product B as related of product A
  3. Visit PDP of product A
  4. Visit PDP of product B
  5. Notice that price block doesn't have rich snippets.

@m2-assistant
Copy link

m2-assistant bot commented Sep 30, 2021

Hi @vovsky. Thank you for your contribution
Here are some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.4-develop instance - deploy vanilla Magento instance

❗ Automated tests can be triggered manually with an appropriate comment:

  • @magento run all tests - run or re-run all required tests against the PR changes
  • @magento run <test-build(s)> - run or re-run specific test build(s)
    For example: @magento run Unit Tests

<test-build(s)> is a comma-separated list of build names. Allowed build names are:

  1. Database Compare
  2. Functional Tests CE
  3. Functional Tests EE,
  4. Functional Tests B2B
  5. Integration Tests
  6. Magento Health Index
  7. Sample Data Tests CE
  8. Sample Data Tests EE
  9. Sample Data Tests B2B
  10. Static Tests
  11. Unit Tests
  12. WebAPI Tests
  13. Semantic Version Checker

You can find more information about the builds here

ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review.

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

⚠️ According to the Magento Contribution requirements, all Pull Requests must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.

🕙 You can find the schedule on the Magento Community Calendar page.

📞 The triage of Pull Requests 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.

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

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

@m2-community-project m2-community-project bot added the Priority: P2 A defect with this priority could have functionality issues which are not to expectations. label Sep 30, 2021
@magento-engcom-team magento-engcom-team added Component: Catalog Release Line: 2.4 Partner: Atwix Pull Request is created by partner Atwix partners-contribution Pull Request is created by Magento Partner labels Sep 30, 2021
@hostep
Copy link
Contributor

hostep commented Sep 30, 2021

Huh, I knew this sounded familiar: #9562 (comment) 😄

The "fix" I mentioned in the post below that comment was reverted by b2e58d5 since Magento 2.3.3

But I believe your PR is probably a better way to solve this then to stop caching the final price box.

@ihor-sviziev
Copy link
Contributor

@magento run all tests

@ihor-sviziev ihor-sviziev self-assigned this Oct 4, 2021
@magento-automated-testing
Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time.

@ihor-sviziev ihor-sviziev added the Severity: S2 Major restrictions or short-term circumventions are required until a fix is available. label Oct 4, 2021
@m2-community-project m2-community-project bot moved this from Pending Review to Review in Progress in High Priority Pull Requests Dashboard Oct 4, 2021
@ihor-sviziev
Copy link
Contributor

@magento run Functional Tests B2B, Functional Tests EE, Functional Tests CE

@magento-automated-testing
Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time.

5 similar comments
@magento-automated-testing
Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time.

@magento-automated-testing
Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time.

@magento-automated-testing
Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time.

@magento-automated-testing
Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time.

@magento-automated-testing
Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time.

Copy link
Contributor

@ihor-sviziev ihor-sviziev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔ Approved.

Failing tests look not related to changes from this PR.

@magento-engcom-team
Copy link
Contributor

Hi @ihor-sviziev, thank you for the review.
ENGCOM-9240 has been created to process this Pull Request
✳️ @ihor-sviziev, could you please add one of the following labels to the Pull Request?

Label Description
Auto-Tests: Covered All changes in Pull Request is covered by auto-tests
Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests
Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests

@ihor-sviziev ihor-sviziev added the Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests label Oct 6, 2021
@ihor-sviziev
Copy link
Contributor

I think covering with test will be too hard there, so marked that test coverage isn't required

@engcom-Alfa
Copy link
Contributor

✔️ QA Passed

Preconditions:

  1. Have Magento instance installed with sample data

Manual testing scenario:

  1. Set up a simple product A with one related simple product B

  2. Frontend: Open the Product A's product details page (Make sure Product B is available in the below related products list)

  3. View the Product B's product details page. Inspect the price text from it, and validate the Rich Snippets Price attributes in the source code

Before: ✖️ Rich Snippets Price attributes are missing

image

After: ✔️ Rich Snippets Price attributes are visible

image

There is nothing else needs to be tested as part of regression since it is specific to updating attributes of the element.

@ihor-sviziev
Copy link
Contributor

ihor-sviziev commented Oct 6, 2021

@vovsky @engcom-Alfa, can it be checked with some integration or MFTF test?

@magento-automated-testing
Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time.

@vovsky
Copy link
Contributor Author

vovsky commented Oct 11, 2021

@ihor-sviziev @engcom-Alfa I'm working on MFTF test to cover this case

@ihor-sviziev ihor-sviziev added Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests and removed Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests labels Oct 11, 2021
@m2-community-project m2-community-project bot moved this from Merge in Progress to Ready for Testing in High Priority Pull Requests Dashboard Oct 11, 2021
@engcom-Alfa
Copy link
Contributor

@ihor-sviziev @engcom-Alfa I'm working on MFTF test to cover this case

Thanks for your contribution @vovsky , Moving the ticket to "Extended Testing" till the completion of the Auto-Tests.

@engcom-Alfa engcom-Alfa moved this from Ready for Testing to Extended Testing (optional) in High Priority Pull Requests Dashboard Oct 14, 2021
@magento-engcom-team magento-engcom-team merged commit 7224e41 into magento:2.4-develop Oct 21, 2021
@m2-assistant
Copy link

m2-assistant bot commented Oct 21, 2021

Hi @vovsky, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@ihor-sviziev
Copy link
Contributor

Hi @sidolov @engcom-Alfa,
FYI the PR was already merged, but test coverage wasn't added.
Please don't revert changes from this PR. The changes themselves look good.
Test coverage for this case might be added in a separate PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests Award: bug fix Component: Catalog Partner: Atwix Pull Request is created by partner Atwix partners-contribution Pull Request is created by Magento Partner Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Progress: extended testing Release Line: 2.4 Severity: S2 Major restrictions or short-term circumventions are required until a fix is available.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Related Products Block Breaks Rich Snippets Price on Product View
5 participants