feat(aep-mobile): accept decisioning.propositionFetch in personalization fetch matchers#60
Merged
dsoffiantini merged 1 commit intoJun 18, 2026
Conversation
…quests Mobile SDKs are migrating the XDM eventType used to fetch propositions from the deprecated `personalization.request` to `decisioning.propositionFetch`, aligning Mobile with the XDM spec already used by Web SDK. Both SDK PRs are open: - Optimize: adobe/aepsdk-optimize-ios#159 - Messaging: adobe/aepsdk-messaging-ios#491 (in-app, content cards, CBE) Assurance must match events from both old and new SDK builds, so the affected matchers now accept either eventType (additive — no break for existing sessions). Changes: - New personalizationFetchEventTypes.ts: exports LEGACY_EDGE_EVENT_TYPE, PROPOSITION_FETCH_EDGE_EVENT_TYPE, and edgeEventTypeMatcher (combineAny of both values). Single source of truth for all three matchers. - optimizeMessagesRequest.ts, personalizationEdgeRequest.ts, iamMessagesRequest.ts: replace the hardcoded personalization.request JMESPath clause with edgeEventTypeMatcher; export the new constants. - personalizationEdgeRequest.json schema: widen const -> enum [both]. optimize + iam schemas inherit this via allOf, so all three are covered. - index.ts: re-exports personalizationFetchEventTypes. - Version bump: 0.13.0 -> 0.14.0 (additive, no breaking changes). All three matchers (optimize, edge, IAM) covered now — Messaging SDK #491 is open, so accepting the new type in the IAM matcher is forward-ready and safe (legacy type still matches today). Tests: 11/11 pass (2 existing sharedStateConfig + 9 new across all three matchers + constants). MOB-25095 / MOB-24547 / PLATIR-51299
dsoffiantini
approved these changes
Jun 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Mobile SDKs are migrating the XDM
eventTypeused to fetch propositions from the deprecatedpersonalization.requesttodecisioning.propositionFetch, aligning Mobile with the XDM spec already used by Web SDK. Both SDK PRs are open:The Assurance event matchers in
@adobe/griffon-toolkit-aep-mobilewere hardcoded topersonalization.requestonly, so events from updated SDKs would silently stop matching — breaking the Optimize and IAM plugin event lists and the "Review and Simulate" view.This PR makes the affected matchers accept both event types, so Assurance keeps working with old and new SDK builds. The change is additive — no existing session breaks.
Changes
src/personalizationFetchEventTypes.ts— single source of truth:LEGACY_EDGE_EVENT_TYPE = 'personalization.request'PROPOSITION_FETCH_EDGE_EVENT_TYPE = 'decisioning.propositionFetch'edgeEventTypeMatcher— akit.combineAny([...])JMESPath expression matching either valuesrc/optimizeMessagesRequest.ts,src/personalizationEdgeRequest.ts,src/iamMessagesRequest.ts— matcher now usesedgeEventTypeMatcher; export the two constantsschemas/personalizationEdgeRequest.json—eventTypewidened fromconsttoenumof both values. The optimize and iam schemas inherit this viaallOf, so all three are covered by the single schema edit.src/index.ts— re-exports the new modulepackage.json—0.13.0→0.14.0Why all three matchers
Both the Optimize and Messaging SDK PRs migrate to the identical
decisioning.propositionFetchstring, and both are already open. Because the matcher is additive (OR both), accepting the new type in the IAM matcher is safe today (IAM still emits the legacy type → still matches) and forward-ready for when #491 ships — avoiding a second publish/promote cycle and preventing the IAM plugin from silently breaking later.Related Issue
Motivation and Context
Without this change, any Assurance session from an SDK that adopted
decisioning.propositionFetchshows zero optimize/personalization/IAM requests — the matcher fails silently, no error. Using a shared OR-matcher (rather than flipping the constant) preserves support for the installs still on older SDKs.How Has This Been Tested?
New
test/personalizationFetchEventTypes.spec.ts— 11 assertions, all passing via repo-local jest:isMatchmatches legacy and new types, and rejects unrelateddecisioning.propositionDisplay— for all three matchers (optimizeMessagesRequest,personalizationEdgeRequest,iamMessagesRequest)Existing
sharedStateConfig.spec.tsstill passes (no regressions). Downstream-validated in the Assurance plugins repo (x-optimize) against a linked0.14.0build.Types of changes
Checklist