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-161871 [MEP] useblockcode action fails if page is on milo site #3161

Merged
merged 14 commits into from
Nov 8, 2024

Conversation

markpadbe
Copy link
Contributor

Currently, the MEP action, useBlockCode, works if the page is on a consumer site, but not if it is on the milo sub-site.

This PR updates getBlockProps in personalization.js to fall back to config.codeRoot when config.miloLibs is undefined.

Resolves: MWPW-MWPW-161871

QA steps: check that the marquee in the After link of the Test URLS below is replace by the following text: 'Marquee code was replaced MEP and the content was overwritten.'

Also, I'm including the following consumer repo links for verification that useBlockCode still works properly in consumer repos:
https://main--bacom--adobecom.hlx.page/drafts/markp/useblock?milolibs=mepblockcodemilo
https://main--dc--adobecom.hlx.page/drafts/markp/mepblockcodemilo?milolibs=mepblockcodemilo
https://main--homepage--adobecom.hlx.page/homepage/drafts/mepdev/2024/mepblockcodemilo?milolibs=mepblockcodemilo
https://main--cc--adobecom.hlx.page/drafts/mepdev/fragments/2024/q4/mepblockcodemilo/basepage

Test URLs:

vgoodric and others added 14 commits October 7, 2024 17:16
…e used by the library (#3047)

* create mepxlg branch

* update library

* require full hostname match

* update reference for unit test

* switch to use config instead of domain list and stub response in unit test

* update fetch to 2

* updating another fetch to 2

* restore normalizePath to use preview domains on preview links

* preload segment list json

* use getFederatedUrl instead

* import at top so we don't have to make normalizePath async

* MWPW-148129 [MILO][MEP][GNAV] Able to use select by url feature with federated link (#3064)

* add federated link function to registerInBlockActions

* add to unit test

* add unit test coverage
Copy link
Contributor

aem-code-sync bot commented Nov 7, 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

Copy link
Contributor

aem-code-sync bot commented Nov 7, 2024

Copy link

codecov bot commented Nov 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.36%. Comparing base (a7f61d1) to head (19b83ff).
Report is 7 commits behind head on mephrefplaceholders.

Additional details and impacted files
@@                 Coverage Diff                  @@
##           mephrefplaceholders    #3161   +/-   ##
====================================================
  Coverage                96.36%   96.36%           
====================================================
  Files                      245      245           
  Lines                    56439    56439           
====================================================
  Hits                     54386    54386           
  Misses                    2053     2053           

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

@markpadbe markpadbe requested a review from a team November 7, 2024 22:25
@vgoodric vgoodric added verified PR has been E2E tested by a reviewer Ready for Stage and removed verified PR has been E2E tested by a reviewer Ready for Stage labels Nov 8, 2024
@vgoodric vgoodric changed the base branch from stage to mephrefplaceholders November 8, 2024 23:23
@vgoodric vgoodric merged commit 9435d4e into mephrefplaceholders Nov 8, 2024
27 checks passed
@vgoodric vgoodric deleted the mepblockcodemilo branch November 8, 2024 23:23
milo-pr-merge bot pushed a commit that referenced this pull request Nov 12, 2024
…updating href (#3142)

* MWPW-161590 [MEP] Update placeholders before updating href

* unit test updates

* MWPW-161871 [MEP] useblockcode action fails if page is on milo site (#3161)

* stash

* ready to publish

* interact call coming back but timing out

* working on a fast connection

* clean up ifs

* working with promise

* use camel case on let variable

* unit tests

* update unit tests

* MWPW-149504 [MILO][MEP] Move entitlements object to the same JSON file used by the library (#3047)

* create mepxlg branch

* update library

* require full hostname match

* update reference for unit test

* switch to use config instead of domain list and stub response in unit test

* update fetch to 2

* updating another fetch to 2

* restore normalizePath to use preview domains on preview links

* preload segment list json

* use getFederatedUrl instead

* import at top so we don't have to make normalizePath async

* MWPW-148129 [MILO][MEP][GNAV] Able to use select by url feature with federated link (#3064)

* add federated link function to registerInBlockActions

* add to unit test

* add unit test coverage

* initial commit

* Fix useblock code issue

---------

Co-authored-by: vgoodric <[email protected]>
Co-authored-by: Vivian A Goodrich <[email protected]>

* MWPW-161606 [MEP] Modify within modals with MEP (#3171)

initial commit publish

Co-authored-by: viloria <[email protected]>

* add conditionals

---------

Co-authored-by: Mark Perry <[email protected]>
Co-authored-by: viloria <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants