From ad7b6e6388deee56f545321f8b170db800318d10 Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Thu, 19 May 2022 11:52:40 -0400 Subject: [PATCH] Revert "[PS-655] Add `Organization_SponsorshipsSynced` event type. (#1696)" This reverts commit aa29a07678ec45eeb7dc22ca1b6e1d89e5dd6e42. --- src/app/common/base.events.component.ts | 5 +---- src/app/services/event.service.ts | 3 --- src/locales/en/messages.json | 3 --- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/app/common/base.events.component.ts b/src/app/common/base.events.component.ts index 11ad5c45..8fd78cce 100644 --- a/src/app/common/base.events.component.ts +++ b/src/app/common/base.events.component.ts @@ -122,20 +122,17 @@ export abstract class BaseEventsComponent { const userId = r.actingUserId == null ? r.userId : r.actingUserId; const eventInfo = await this.eventService.getEventInfo(r); const user = this.getUserName(r, userId); - const userName = user != null ? user.name : this.i18nService.t("unknown"); - return new EventView({ message: eventInfo.message, humanReadableMessage: eventInfo.humanReadableMessage, appIcon: eventInfo.appIcon, appName: eventInfo.appName, userId: userId, - userName: r.installationId != null ? `Installation: ${r.installationId}` : userName, + userName: user != null ? user.name : this.i18nService.t("unknown"), userEmail: user != null ? user.email : "", date: r.date, ip: r.ipAddress, type: r.type, - installationId: r.installationId, }); }) ); diff --git a/src/app/services/event.service.ts b/src/app/services/event.service.ts index 02f50cf7..a851866b 100644 --- a/src/app/services/event.service.ts +++ b/src/app/services/event.service.ts @@ -307,9 +307,6 @@ export class EventService { case EventType.Organization_DisabledKeyConnector: msg = humanReadableMsg = this.i18nService.t("disabledKeyConnector"); break; - case EventType.Organization_SponsorshipsSynced: - msg = humanReadableMsg = this.i18nService.t("sponsorshipsSynced"); - break; // Policies case EventType.Policy_Updated: { msg = this.i18nService.t("modifiedPolicyId", this.formatPolicyId(ev)); diff --git a/src/locales/en/messages.json b/src/locales/en/messages.json index bb37b09b..4e15b6ad 100644 --- a/src/locales/en/messages.json +++ b/src/locales/en/messages.json @@ -5041,9 +5041,6 @@ "message": "Last Sync", "Description": "Used as a prefix to indicate the last time a sync occured. Example \"Last sync 1968-11-16 00:00:00\"" }, - "sponsorshipsSynced": { - "message": "Self-hosted sponsorships synced." - }, "billingManagedByProvider": { "message": "Managed by $PROVIDER$", "placeholders": {