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

MWPW-157686 [MEP] Cannot spoof an experience that exists in manifest but not in Target #2887

Merged
merged 6 commits into from
Sep 17, 2024

Conversation

vgoodric
Copy link
Contributor

NOTE: this is the 2nd attempt to fix this bug. Attempt 1 fixed the bug but broke selecting the correct experience from Target when there was no spoof. This fix also makes sure to select the correct placeholder column by not choosing until after the manifests are merged.

When you have a pzn manifest with some Target columns and some non Target columns, it is often placed in the pzn metadata AND in Target. If a column is added to the manifest but Target is not updated, then you see the new experience in the MEP button, but you cannot spoof it with the manifest.

QA instructions: go to the before and after links below and expand the MEP button. "mobile-device" is correctly selected only in the after link

Resolves: MWPW-157686

Test URLs:
Not spoofing an experience (should continue to choose target-my_pzn):
Before: https://main--cc--adobecom.hlx.page/drafts/mepdev/fragments/2024/q4/mepbugpzn/pznnotupdatedintarget?at_preview_token=5AB35DHSLjOM9UmmfvmJmg&at_preview_index=1_1&at_preview_listed_activities_only=true
After: https://main--cc--adobecom.hlx.page/drafts/mepdev/fragments/2024/q4/mepbugpzn/pznnotupdatedintarget?at_preview_token=5AB35DHSLjOM9UmmfvmJmg&at_preview_index=1_1&at_preview_listed_activities_only=true&milolibs=meptargetfix

Spoofing an experience (should choose mobile-device and add "Hello world" below marquee):
Before: https://main--cc--adobecom.hlx.page/drafts/mepdev/fragments/2024/q4/mepbugpzn/pznnotupdatedintarget?at_preview_token=5AB35DHSLjOM9UmmfvmJmg&at_preview_index=1_1&at_preview_listed_activities_only=true&mep=%2Fdrafts%2Fmepdev%2Ffragments%2F2024%2Fq4%2Fmepbugpzn%2Fpznnotupdatedintarget.json--mobile-device
After: https://main--cc--adobecom.hlx.page/drafts/mepdev/fragments/2024/q4/mepbugpzn/pznnotupdatedintarget?at_preview_token=5AB35DHSLjOM9UmmfvmJmg&at_preview_index=1_1&at_preview_listed_activities_only=true&milolibs=meptargetfix&mep=%2Fdrafts%2Fmepdev%2Ffragments%2F2024%2Fq4%2Fmepbugpzn%2Fpznnotupdatedintarget.json--mobile-device
Psi-check: https://meptargetfix--milo--adobecom.hlx.page/?martech=off

@vgoodric vgoodric requested a review from a team as a code owner September 16, 2024 19:07
Copy link
Contributor

aem-code-sync bot commented Sep 16, 2024

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

@vgoodric vgoodric requested a review from a team September 16, 2024 19:07
Copy link
Contributor

aem-code-sync bot commented Sep 16, 2024

Page Scores Audits Google
📱 /?martech=off PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
🖥️ /?martech=off PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link

codecov bot commented Sep 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.24%. Comparing base (dcd9a64) to head (bad900f).
Report is 1 commits behind head on mepanymarqueesection.

Additional details and impacted files
@@                  Coverage Diff                  @@
##           mepanymarqueesection    #2887   +/-   ##
=====================================================
  Coverage                 96.24%   96.24%           
=====================================================
  Files                       237      237           
  Lines                     54243    54240    -3     
=====================================================
- Hits                      52204    52202    -2     
+ Misses                     2039     2038    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

Reminder to set the Ready for Stage label - to queue this to get merged to stage & production.

@vgoodric vgoodric changed the base branch from stage to mepanymarqueesection September 17, 2024 01:20
@vgoodric vgoodric added verified PR has been E2E tested by a reviewer Ready for Stage labels Sep 17, 2024
@vgoodric vgoodric merged commit faa1ea2 into mepanymarqueesection Sep 17, 2024
21 checks passed
@vgoodric vgoodric deleted the meptargetfix branch September 17, 2024 01:37
milo-pr-merge bot pushed a commit that referenced this pull request Sep 17, 2024
* MWPW-158462 [MEP] any-marquee-section simplified selector

* unit test update

* MWPW-158475 [MEP] classes that end in a number are modified when they should not be (#2886)

* unit test update

* MWPW-158475 [MEP] classes that end in a number are modified when they should not be

* unit test repair

* unit test repair

* MWPW-157686 [MEP] Cannot spoof an experience that exists in manifest but not in Target (#2887)

* working so far

* lint update

* update something merging stage did not
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready for Stage verified PR has been E2E tested by a reviewer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants