Skip to content

Commit

Permalink
fix(serviceAccount): adjust response for get serviceaccount detail (#964
Browse files Browse the repository at this point in the history
)

* remove subscriptionId from response

Refs: #897
  • Loading branch information
Phil91 authored Sep 16, 2024
1 parent bb16156 commit 006bb35
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,7 @@ public async Task<ServiceAccountConnectorOfferData> GetOwnCompanyServiceAccountD
result.ConnectorData,
result.OfferSubscriptionData,
result.CompanyLastEditorData!.Name,
result.CompanyLastEditorData.CompanyName,
result.SubscriptionId);
result.CompanyLastEditorData.CompanyName);
}

public async Task<ServiceAccountDetails> ResetOwnCompanyServiceAccountSecretAsync(Guid serviceAccountId)
Expand All @@ -215,8 +214,7 @@ public async Task<ServiceAccountDetails> ResetOwnCompanyServiceAccountSecretAsyn
authData.IamClientAuthMethod,
result.UserRoleDatas,
result.CompanyServiceAccountTypeId,
authData.Secret,
result.SubscriptionId);
authData.Secret);
}

public async Task<ServiceAccountDetails> UpdateOwnCompanyServiceAccountDetailsAsync(Guid serviceAccountId, ServiceAccountEditableDetails serviceAccountDetails)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@ public record ServiceAccountConnectorOfferData(
[property: JsonPropertyName("connector")] ConnectorResponseData? Connector,
[property: JsonPropertyName("offer")] OfferResponseData? Offer,
[property: JsonPropertyName("LastEditorName")] string? LastName,
[property: JsonPropertyName("LastEditorCompanyName")] string? CompanyName,
[property: JsonPropertyName("subscriptionId")] Guid? SubscriptionId = null
[property: JsonPropertyName("LastEditorCompanyName")] string? CompanyName
);
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public record CompanyServiceAccountDetailedData(
UserStatusId Status,
IEnumerable<UserRoleData> UserRoleDatas,
CompanyServiceAccountTypeId CompanyServiceAccountTypeId,
Guid? SubscriptionId,
ConnectorResponseData? ConnectorData,
OfferResponseData? OfferSubscriptionData,
CompanyLastEditorData? CompanyLastEditorData,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ public void AttachAndModifyCompanyServiceAccount(
userRole.Offer!.AppInstances.First().IamClient!.ClientClientId,
userRole.UserRoleText)),
x.ServiceAccount.CompanyServiceAccountTypeId,
x.ServiceAccount.OfferSubscriptionId,
x.Connector == null
? null
: new ConnectorResponseData(
Expand Down

0 comments on commit 006bb35

Please sign in to comment.