Skip to content

Commit

Permalink
Peggy/3299 (#1912)
Browse files Browse the repository at this point in the history
# Description

This PR includes the following proposed change(s):

- SPDBT-3299: SPD - Clearance Access Notification Action needs to
trigger for Portal created Clearance Access
  • Loading branch information
peggy-quartech authored Nov 29, 2024
1 parent 91f694e commit b727528
Show file tree
Hide file tree
Showing 5 changed files with 1,159 additions and 458 deletions.
1 change: 0 additions & 1 deletion src/Spd.Manager.Screening/ApplicationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ public ApplicationManager(IApplicationRepository applicationRepository,

public async Task<ApplicationCreateResponse> Handle(ApplicationCreateCommand request, CancellationToken ct)
{
_logger.LogDebug($"applicationCreateCommand={request}");
ApplicationCreateResponse result = new();
if (request.ApplicationCreateRequest.RequireDuplicateCheck)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,14 @@ public async Task ProcessAppWithSharableClearanceAsync(ApplicationCreateCmd crea
_context.SetLink(clearanceaccess, nameof(clearanceaccess.owningteam), team);
_context.SetLink(clearanceaccess, nameof(clearanceaccess.ownerid), team);
await _context.SaveChangesAsync(ct);

spd_clearanceaccess? clearAccess = await _context.GetClearanceAccessById((Guid)clearanceaccess.spd_clearanceaccessid, ct);
if (clearAccess == null) throw new ApiException(HttpStatusCode.InternalServerError, "cannot find clearance access.");
var result = await clearAccess.spd_ClearanceAccessNotification().GetValueAsync(ct);
if (result.IsSuccess != true)
{
_logger.LogError("ClearanceAccessNotification failed with error {Error}", result.Result);
}
}

private spd_alias? GetAlias(AliasCreateCmd aliasCreateCmd, contact contact)
Expand Down Expand Up @@ -511,4 +519,3 @@ private void AddAlias(AliasCreateCmd createAliasCmd, contact contact)
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"MakeTypesInternal": false,
"OpenGeneratedFilesInIDE": false,
"GenerateMultipleFiles": false,
"CustomHttpHeaders": "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsI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": null,
"IncludeWebProxyNetworkCredentials": false,
Expand Down
Loading

0 comments on commit b727528

Please sign in to comment.