1
0
mirror of https://github.com/bitwarden/server synced 2025-12-13 14:53:34 +00:00

Revert changes to ReferenceEvent code (#3091)

* Revert changes to ReferenceEvent code

This will be done in AC-1481
This commit is contained in:
Thomas Rittson
2023-07-13 09:27:54 +10:00
committed by GitHub
parent 38ff56917b
commit e1bede1108
4 changed files with 3 additions and 13 deletions

View File

@@ -284,9 +284,7 @@ public class UpgradeOrganizationPlanCommand : IUpgradeOrganizationPlanCommand
OldPlanType = existingPasswordManagerPlan.Type,
Seats = organization.Seats,
Storage = organization.MaxStorageGb,
SmSeats = organization.SmSeats,
ServiceAccounts = organization.SmServiceAccounts,
UseSecretsManager = organization.UseSecretsManager
// TODO: add reference events for SmSeats and Service Accounts - see AC-1481
});
}

View File

@@ -481,9 +481,7 @@ public class OrganizationService : IOrganizationService
PlanType = passwordManagerPlan.Type,
Seats = returnValue.Item1.Seats,
Storage = returnValue.Item1.MaxStorageGb,
SmSeats = returnValue.Item1.SmSeats,
ServiceAccounts = returnValue.Item1.SmServiceAccounts,
UseSecretsManager = returnValue.Item1.UseSecretsManager
// TODO: add reference events for SmSeats and Service Accounts - see AC-1481
});
return returnValue;
}

View File

@@ -52,7 +52,6 @@ public class ReferenceEvent
public int? Seats { get; set; }
public int? PreviousSeats { get; set; }
public int? PreviousServiceAccounts { get; set; }
public short? Storage { get; set; }
@@ -71,7 +70,4 @@ public class ReferenceEvent
public string ClientId { get; set; }
public Version ClientVersion { get; set; }
public int? SmSeats { get; set; }
public int? ServiceAccounts { get; set; }
public bool UseSecretsManager { get; set; }
}

View File

@@ -183,10 +183,8 @@ public class OrganizationServiceTests
referenceEvent.PlanName == purchaseOrganizationPlan[0].Name &&
referenceEvent.PlanType == purchaseOrganizationPlan[0].Type &&
referenceEvent.Seats == result.Item1.Seats &&
referenceEvent.SmSeats == result.Item1.SmSeats &&
referenceEvent.ServiceAccounts == result.Item1.SmServiceAccounts &&
referenceEvent.UseSecretsManager == result.Item1.UseSecretsManager &&
referenceEvent.Storage == result.Item1.MaxStorageGb));
// TODO: add reference events for SmSeats and Service Accounts - see AC-1481
Assert.NotNull(result);
Assert.NotNull(result.Item1);