Skip to content

Rename idWardRtdProvider to anonymisedRtdProvider #10176

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

Merged
merged 15 commits into from
Apr 26, 2024
Merged
Prev Previous commit
Next Next commit
Renamed "ID Ward" mentions to "Anonymised"
  • Loading branch information
Pavlo committed Jan 4, 2024
commit 11820cd7f242c75cd991f1b72efcc0c2e3931a58
2 changes: 1 addition & 1 deletion modules/anonymisedRtdProvider.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This module adds the Anonymised RTD provider to the real time data module
* The {@link module:modules/realTimeData} module is required
* The module will poulate real-time data from Anonymised
* The module will populate real-time data from Anonymised
* @module modules/anonymisedRtdProvider
* @requires module:modules/realTimeData
*/
Expand Down
12 changes: 6 additions & 6 deletions modules/idWardRtdProvider.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This module adds the ID Ward RTD provider to the real time data module
* The {@link module:modules/realTimeData} module is required
* The module will poulate real-time data from ID Ward
* The module will populate real-time data from ID Ward
* @module modules/idWardRtdProvider
* @requires module:modules/realTimeData
*/
Expand All @@ -21,8 +21,8 @@ export const storage = getStorageManager({moduleType: MODULE_TYPE_RTD, moduleNam
*/
function addRealTimeData(ortb2, rtd) {
if (isPlainObject(rtd.ortb2)) {
logMessage('idWardRtdProvider: merging original: ', ortb2);
logMessage('idWardRtdProvider: merging in: ', rtd.ortb2);
logMessage('anonymisedRtdProvider: merging original: ', ortb2);
logMessage('anonymisedRtdProvider: merging in: ', rtd.ortb2);
mergeDeep(ortb2, rtd.ortb2);
}
}
Expand All @@ -35,7 +35,7 @@ function tryParse(data) {
try {
return JSON.parse(data);
} catch (err) {
logError(`idWardRtdProvider: failed to parse json:`, data);
logError(`anonymisedRtdProvider: failed to parse json:`, data);
return null;
}
}
Expand All @@ -59,14 +59,14 @@ export function getRealTimeData(reqBidsConfigObj, onDone, rtdConfig, userConsent

if (segments) {
const udSegment = {
name: 'id-ward.com',
name: 'anonymised.io',
ext: {
segtax: rtdConfig.params.segtax
},
segment: segments.map(x => ({id: x}))
}

logMessage('idWardRtdProvider: user.data.segment: ', udSegment);
logMessage('anonymisedRtdProvider: user.data.segment: ', udSegment);
const data = {
rtd: {
ortb2: {
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/idWardRtdProvider_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('idWardRtdProvider', function() {
};

const rtdUserObj1 = {
name: 'id-ward.com',
name: 'anonymised.io',
ext: {
segtax: 503
},
Expand Down