-
Notifications
You must be signed in to change notification settings - Fork 176
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-136766, MWPW-136143: Milo not supporting sending to CaaS all locales & Autodetect not working #1324
Conversation
Hello, I'm Franklin Bot and I will run some test suites that validate the page speed.
|
Codecov Report
@@ Coverage Diff @@
## main #1324 +/- ##
==========================================
- Coverage 96.32% 95.32% -1.00%
==========================================
Files 144 145 +1
Lines 34414 35055 +641
==========================================
+ Hits 33148 33415 +267
- Misses 1266 1640 +374
... and 2 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
Same PR pollution comment 🙂
mena_en: { ietf: 'en-mena' }, | ||
mena_ar: { ietf: 'ar-mena' }, | ||
mena_fr: { ietf: 'fr-mena' }, |
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.
Deleted as mena_fr
isn't supported when rolled out and to keep parity with the 93 values supported by Milo's getLocale()
api
|
|
|
69b5bdf
to
df57736
Compare
|
|
Hello, I'm the AEM Code Sync Bot and I will run some test suites that validate the page speed.
|
|
…ales & Autodetect not working (#1324) * Adds all missing locales * Update to more correct locales after thorough testing * Missing one locale * More updates * Removing unused mena fields * Fixing locale issues with send to caas button * Taking changes from PR:1323 and merging into here (as requested)
…ales & Autodetect not working (adobecom#1324) * Adds all missing locales * Update to more correct locales after thorough testing * Missing one locale * More updates * Removing unused mena fields * Fixing locale issues with send to caas button * Taking changes from PR:1323 and merging into here (as requested)
adobecom#1427) Revert "MWPW-136766, MWPW-136143: Milo not supporting sending to CaaS all locales & Autodetect not working (adobecom#1324)" This reverts commit ef0d26a.
…ales & Autodetect not working (adobecom#1324) * Adds all missing locales * Update to more correct locales after thorough testing * Missing one locale * More updates * Removing unused mena fields * Fixing locale issues with send to caas button * Taking changes from PR:1323 and merging into here (as requested)
adobecom#1427) Revert "MWPW-136766, MWPW-136143: Milo not supporting sending to CaaS all locales & Autodetect not working (adobecom#1324)" This reverts commit ef0d26a.
…ales & Autodetect not working (#1428) * MWPW-136766, MWPW-136143: Milo not supporting sending to CaaS all locales & Autodetect not working (#1324) * Adds all missing locales * Update to more correct locales after thorough testing * Missing one locale * More updates * Removing unused mena fields * Fixing locale issues with send to caas button * Taking changes from PR:1323 and merging into here (as requested) * Making local copy of Locales * Update libs/blocks/caas/utils.js Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Importing in tools from libs since that should be allowed * Revert "Importing in tools from libs since that should be allowed" This reverts commit 5565692. * Second attempt at refactoring --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…ales & Autodetect not working (adobecom#1428) * MWPW-136766, MWPW-136143: Milo not supporting sending to CaaS all locales & Autodetect not working (adobecom#1324) * Adds all missing locales * Update to more correct locales after thorough testing * Missing one locale * More updates * Removing unused mena fields * Fixing locale issues with send to caas button * Taking changes from PR:1323 and merging into here (as requested) * Making local copy of Locales * Update libs/blocks/caas/utils.js Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Importing in tools from libs since that should be allowed * Revert "Importing in tools from libs since that should be allowed" This reverts commit 5565692. * Second attempt at refactoring --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…ales & Autodetect not working (adobecom#1324) * Adds all missing locales * Update to more correct locales after thorough testing * Missing one locale * More updates * Removing unused mena fields * Fixing locale issues with send to caas button * Taking changes from PR:1323 and merging into here (as requested)
adobecom#1427) Revert "MWPW-136766, MWPW-136143: Milo not supporting sending to CaaS all locales & Autodetect not working (adobecom#1324)" This reverts commit ef0d26a.
…ales & Autodetect not working (adobecom#1428) * MWPW-136766, MWPW-136143: Milo not supporting sending to CaaS all locales & Autodetect not working (adobecom#1324) * Adds all missing locales * Update to more correct locales after thorough testing * Missing one locale * More updates * Removing unused mena fields * Fixing locale issues with send to caas button * Taking changes from PR:1323 and merging into here (as requested) * Making local copy of Locales * Update libs/blocks/caas/utils.js Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Importing in tools from libs since that should be allowed * Revert "Importing in tools from libs since that should be allowed" This reverts commit 5565692. * Second attempt at refactoring --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This PR fixes issues with both the send to caas button and the bulk publisher as well as all the autodetect.
When using the send to caas button, the following locales were mapped incorrectly and would send the wrong data to CaaS.
For example: this page, https://milo.adobe.com/qa_ar/drafts/sanrai/mwpw-136065, it'll return the wrong value, ar, which then sends the wrong lang/country combination to CaaS (ar_US instead of ar_QA)
This is because the API the code was previously using,
document.documentElement.lang
was incorrect.Here is it failing for
my_ms
:See this bug for more information:
https://jira.corp.adobe.com/browse/MWPW-136832
When trying sending content from the following set of locales
to CaaS using the bulk publisher (or the Send to CaaS button), because these locales were undefined, these locales would wrongly be sent into
en_US
to CaaS.Here is an example of it failing for
qa_ar
:See https://jira.corp.adobe.com/browse/MWPW-136766 for more information on the latter issue.
Resolves:
https://jira.corp.adobe.com/browse/MWPW-136766,
https://jira.corp.adobe.com/browse/MWPW-136832
Test URLs:
When using
autoDetect
(where Milo dynamically tries to figure out the correct country/lang to send to CaaS) it turns out it fails for every locale for CaaS.The idea for this was to prevent authors from having to manually author the
country/lang
for every collection.But the way this currently works in production is either:
The way this is fixed is I added a map in the caas block with all the milo regions as keys and their values being the actual correct locales that should be sent to CaaS.
This map:
scripts.js
but realized that would load unnecessary data for pages that aren't using CaaS.Resolves: https://jira.corp.adobe.com/browse/MWPW-136143
Test URLs: