From b80b7f6afe62e4559dd100d2b2d15a39541ac0f7 Mon Sep 17 00:00:00 2001 From: Simon Gardner Date: Mon, 4 Aug 2025 11:45:27 +0100 Subject: [PATCH] Merge pull request #27516 from overleaf/slg-hide-enrolment_ad_html hide enrolment_ad_html field from v1 admin form and remove unused usage in web GitOrigin-RevId: 7cf8eed1a68bbaf2ebbb77069bfd421cd26ef01d --- .../app/src/Features/Notifications/NotificationsBuilder.js | 1 - .../test/unit/src/Notifications/NotificationsBuilderTests.js | 4 ---- 2 files changed, 5 deletions(-) diff --git a/services/web/app/src/Features/Notifications/NotificationsBuilder.js b/services/web/app/src/Features/Notifications/NotificationsBuilder.js index a6fedaff13..741974fa67 100644 --- a/services/web/app/src/Features/Notifications/NotificationsBuilder.js +++ b/services/web/app/src/Features/Notifications/NotificationsBuilder.js @@ -168,7 +168,6 @@ function ipMatcherAffiliation(userId) { const messageOpts = { university_name: body.name, institutionId: body.id, - content: body.enrolment_ad_html, portalPath, ssoEnabled: body.sso_enabled, } diff --git a/services/web/test/unit/src/Notifications/NotificationsBuilderTests.js b/services/web/test/unit/src/Notifications/NotificationsBuilderTests.js index b668fffd2a..8a8eda5a34 100644 --- a/services/web/test/unit/src/Notifications/NotificationsBuilderTests.js +++ b/services/web/test/unit/src/Notifications/NotificationsBuilderTests.js @@ -97,7 +97,6 @@ describe('NotificationsBuilder', function () { this.body = { id: 1, name: 'stanford', - enrolment_ad_html: 'v1 ad content', is_university: true, portal_slug: null, sso_enabled: false, @@ -112,7 +111,6 @@ describe('NotificationsBuilder', function () { const expectedOpts = { institutionId: this.body.id, university_name: this.body.name, - content: this.body.enrolment_ad_html, ssoEnabled: false, portalPath: undefined, } @@ -131,7 +129,6 @@ describe('NotificationsBuilder', function () { this.body = { id: 1, name: 'stanford', - enrolment_ad_html: 'v1 ad content', is_university: true, portal_slug: 'stanford', sso_enabled: true, @@ -146,7 +143,6 @@ describe('NotificationsBuilder', function () { const expectedOpts = { institutionId: this.body.id, university_name: this.body.name, - content: this.body.enrolment_ad_html, ssoEnabled: true, portalPath: '/edu/stanford', }