From 16004549cf60f77415062999049fd65f5f1d079e Mon Sep 17 00:00:00 2001 From: Stephen Niedzielski Date: Tue, 4 Sep 2018 13:46:33 -0600 Subject: [PATCH] Doc: add linkInteractionToken description Add documentation for the Schema:Popups' linkInteractionToken property in the EventLogging reducer. https://meta.wikimedia.org/wiki/Schema:Popups Bug: T203013 Change-Id: I7fc872beda284ef8639ad036ddeb9efc8581a452 --- resources/dist/index.js.json | Bin 185261 -> 185529 bytes src/reducers/eventLogging.js | 4 ++++ 2 files changed, 4 insertions(+) diff --git a/resources/dist/index.js.json b/resources/dist/index.js.json index bbae06ae4a15d6355a0c062980cec217f1ee136b..ab577b5b1a15a9f27e7e1e784f4dd6a8f56aba34 100644 GIT binary patch delta 325 zcmX|*F-rqM5QW)AMF^r6v9Ow2gH3EKFN!9llVEiqOKvW^+-CROy~~vn?DPj*7lRgh zg&-Ul?ENpcf`7oxo!ZPWk2l|YFHep4qVak^qfw`v&lqX8PgSSY^E{8ac^tI6Ep~EP z?##akRsC}P;gXR3l0Sa0lA{~HSoj5bdtMoEgnSy(=C!b3P+^7vXa&fI9NY!5!HIA? z$WTh5Mvy8gB80>}#%zQG9if7Z3+Ly|0`nE@ffOOym?=nv<0bmvzGNLhF98>a#%P5) zwM)ZBYHO%vyx&M8wi%)_vUf#N~>xCjW`dAcWdfVg+)Qqx`B*ck_=6 Tx}AUC(#?G9j;<}b=M<+u%~^DQ delta 85 zcmV-b0IL7FsSB;A3$UM_0b{eFo?!tMc1CVOEJ;B@L18ROK|^FSNGxGQce59u@BsoZ rO0x-~UjYF!vuUIA1pzUGU8%QSsR6dAmy1RM5SP$b0ui@AQv!N{Uu_?f diff --git a/src/reducers/eventLogging.js b/src/reducers/eventLogging.js index 84d61f0c2..a3cb1126c 100644 --- a/src/reducers/eventLogging.js +++ b/src/reducers/eventLogging.js @@ -42,6 +42,10 @@ function getBaseData( bootAction ) { * * `pageTitleHover` and `namespaceIdHover`; and * * `previewType` and `perceivedWait`, if a preview has been shown. * + * The linkInteractionToken is renewed on each new preview dwelling unlike the pageToken which has a + * lifespan tied to the pageview. It is erroneous to use the same linkInteractionToken across + * multiple previews even if the previews are for the same link. + * * @param {Object} interaction * @param {Object} actionData Data specific to the action, e.g. see * {@link module:reducers/eventLogging~createClosingEvent `createClosingEvent`}