-
Notifications
You must be signed in to change notification settings - Fork 169
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
Conversation
…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
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
…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]>
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: