Skip to content

MWPW-204279 [MEP] Sync country spoofing with Target IP geo-fencing - #6623

Open
markpadbe wants to merge 3 commits into
stagefrom
mep-spoof-mboxoverride-browserip
Open

MWPW-204279 [MEP] Sync country spoofing with Target IP geo-fencing#6623
markpadbe wants to merge 3 commits into
stagefrom
mep-spoof-mboxoverride-browserip

Conversation

@markpadbe

@markpadbe markpadbe commented Sep 1, 2026

Copy link
Copy Markdown
Contributor
  • Sync MEP-button country spoofing with Adobe Target's IP geo-fencing. The MEP
    spoofer only wrote akamaiLocale, which spoofs geo for Milo's own resolution
    but NOT for Target — Target resolves geo from the real request IP at the Edge.
    A new applyGeoSpoof helper now also emits Target's mboxOverride.browserIp
    QA param with a representative IP for the selected country, so one click
    previews the same country across both Milo MEP and Target (no more falling
    into US-only tests while spoofed to NG).
  • Add a "Manifest Parameters" toggle to the MEP Next preview card. When on, the
    mep param is omitted from the preview URL so the previewed page loads with
    no manifest parameters applied. The choice is persisted in sessionStorage, so
    it survives a preview reload but clears when the tab closes.
  • Fix the Spoof Geo card collapsing when its radio buttons are clicked — the
    collapse handler matched any svg in the card (including the radio icons);
    it's now scoped to the header chevron only.

Preview/QA tooling only — all changed modules load exclusively under
config.mep?.preview, so production pages without MEP are unaffected.

Resolves: MWPW-204279

Test URLs:

QA URL (Target geo-fence sync): https://www.stage.adobe.com/?milolibs=mep-spoof-mboxoverride-browserip&mepnext=on

  1. Open the QA URL, open the MEP button, and spoof geo to a non-US country (e.g. NG) in the Spoof Geo card.
  2. Press Preview — the URL now carries both akamaiLocale=ng and mboxOverride.browserIp=<NG IP>.
  3. On the reloaded page, confirm ace1165v3.json no longer fires (check ttMETA), matching real NG-user behavior. It still fires when spoofed to US.

- Pair Target's mboxOverride.browserIp with akamaiLocale in the MEP
  spoofers via applyGeoSpoof (spoof-country-ip.js + test).
- Add a Toggle-card switch that omits the `mep` param from the preview
  URL so the previewed page loads with no manifest parameters applied.
  Wired into setPreviewButton; covered by two overlay-logic tests.
The card collapse handler matched any `svg` inside a `.mep-card`, so
clicking a Spoof Geo radio-row icon (an svg in the card body) bubbled up
and toggled the card. Scope the trigger to `.mep-card h1 svg` so only the
header chevron collapses the card. Adds a regression test.
Store the toggle state in sessionStorage so it survives a preview reload
but clears when the tab closes (avoids a sticky, forgotten "don't apply
manifests" state across QA sessions). Restored in setDefaultValues and
written from the drawer change handler.
@markpadbe
markpadbe requested a review from a team as a code owner September 1, 2026 23:13
@aem-code-sync

aem-code-sync Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

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

  • Re-sync branch
Commits

@markpadbe
markpadbe requested a review from a team September 2, 2026 20:59
@vgoodric
vgoodric deployed to milo_pr_merge September 4, 2026 17:23 — with GitHub Actions Active
@milo-pr-merge

milo-pr-merge Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Skipped merging 6623: MWPW-204279 [MEP] Sync country spoofing with Target IP geo-fencing due to insufficient approvals. Required: 2 approvals

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