-
Notifications
You must be signed in to change notification settings - Fork 210
lingo link transformation #5164
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
base: stage
Are you sure you want to change the base?
Conversation
|
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch.
Commits
|
|
Hi @vhargrave , we can see the 'query-index' XSL files are previewed and published. so once the code goes to stage & prod will the feature enables? so we have any mechanism to turn feature on or off? |
Hey @sigadamvenkata - yes, the link localization feature is an opt in and turned on over the metadata
so I'm grateful for any testing of these features using my code. |
NadiiaSokolova
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified. Ready for Stage.
Testing details MWPW-179494
|
@spadmasa @sigadamvenkata For testing, @vhargrave has setup a manual query-index excel sheet in cc: @nateekar |
zagi25
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
email-collection block works as expected, on /de page /de resources are fetched
|
@team: I’ve added the |
# Conflicts: # libs/utils/utils.js
afmicka
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good from the merch (M@S) side. Signing off MWPW-184759
cc: @skumar09
Brandon32
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The marketo block works as expected.
|
@vhargrave I had mentioned this in Slack but adding it here as well. CaaS is using a metadata flag |
@sunilkamat I think we can - if we notice it's a mistake later on, this is something we can quickly pivot on. I've changed it 👍 |
|
we are good from CC, FEDS, Unity, News.adobe.com tracks and can to STAGE. |
|
Hi @vhargrave , for https://main--dc--adobecom.aem.page/ch_de/acrobat?milolibs=vhargrave-lingo-link-transformation-test&georouting=off&martech=off I see that links in footer that should point to /de/ as per PR description are also pointing to /ch_de/ Could you please help check. |
Just had a call with @Ruchika4 to answer this. The code is working correctly since lingo is not active on dc. |


This PR adds functionality for language-based link localisation for project lingo. The first project that will be consuming this is da-bacom and in order to unblock other teams this will hopefully be merged before the 9th December.
Due to the recent code freezes, this PR also contains the code of this other base PR - #5096
I've created diagrams explaining the flow of the link localization logic more here - https://wiki.corp.adobe.com/display/WP4/Project+Lingo+Link+Localization
When going through the pull request you'll see that localizeLink and decorateLinks are being made async. This was not a decision that was made lightly, but seemed to be the cleanest long term solution for link localization. For example, when localizeLink or decorateLinks are called, especially in other projects like cc, it is important that these functions always returns the same result if they are given the same input. Because query indexes can now play a major role in how links are localized, when a call to localizeLink is made, these query indexes must sometimes be awaited.
localizeLink and decorateLinks are being used in other projects and will need to be updated there after this PR. The blast damage is the following (usually one or max two usages per project)
List of projects to update
localizeLink:
decorateLinks:
In addition, because these methods have been made async, and it meant touching the following features, if your site has one or more of them, especially on high traffic pages or in a special constellation, it would be to test them:
Resolves: MWPW-179494
Test URLs:
Milo
To help test this in a simulated prod env, I've added some overrides to the config for CC and Bacom, which is what the projects themselves would usually need to do. To use these overrides, just add -test to the branch link name in the URL like you see below
CC
Steps to test:
Steps to test:
DA-BACOM
Steps to test:
Steps to test:
GNav Test URLs
Gnav + Footer + Region Picker modal:
Thin Gnav + ThinFooter + Region Picker dropup:
Localnav + Promo:
Sticky Branch Banner:
Inline Branch Banner:
Blog
RTL Locale