Skip to content

Commit 21826a1

Browse files
FrostyApeOneFrostyApeOne
authored andcommitted
Updated packages, updated the GetMyApplicationsAsync endpoint to use and filter by the current template
1 parent 53658f4 commit 21826a1

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/DfE.ExternalApplications.Application/DfE.ExternalApplications.Application.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="GovUK.Dfe.ExternalApplications.Api.Client" Version="0.1.13" />
10+
<PackageReference Include="GovUK.Dfe.ExternalApplications.Api.Client" Version="0.1.15" />
1111
<PackageReference Include="Microsoft.AspNetCore.Http.Features" Version="2.3.0" />
1212
<PackageReference Include="Microsoft.AspNetCore.Mvc.Abstractions" Version="2.3.0" />
1313
</ItemGroup>

src/DfE.ExternalApplications.Infrastructure/DfE.ExternalApplications.Infrastructure.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<ItemGroup>
1010
<PackageReference Include="DfE.CoreLibs.Caching" Version="1.0.10" />
1111
<PackageReference Include="DfE.CoreLibs.Contracts" Version="1.0.36" />
12-
<PackageReference Include="GovUK.Dfe.ExternalApplications.Api.Client" Version="0.1.13" />
12+
<PackageReference Include="GovUK.Dfe.ExternalApplications.Api.Client" Version="0.1.15" />
1313
<PackageReference Include="Microsoft.AspNetCore.Http.Extensions" Version="2.3.0" />
1414
</ItemGroup>
1515

src/DfE.ExternalApplications.Web/DfE.ExternalApplications.Web.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<ItemGroup>
1111
<PackageReference Include="DfE.CoreLibs.Caching" Version="1.0.10" />
1212
<PackageReference Include="DfE.CoreLibs.Contracts" Version="1.0.36" />
13-
<PackageReference Include="GovUK.Dfe.ExternalApplications.Api.Client" Version="0.1.13" />
13+
<PackageReference Include="GovUK.Dfe.ExternalApplications.Api.Client" Version="0.1.15" />
1414
<PackageReference Include="GovUk.Frontend.AspNetCore" Version="3.2.2" />
1515
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
1616
<PackageReference Include="DfE.CoreLibs.Security" Version="1.1.13" />

src/DfE.ExternalApplications.Web/Pages/Applications/Dashboard.cshtml.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ private async SystemTask LoadApplicationsAsync()
154154
{
155155
try
156156
{
157-
var applications = await applicationsClient.GetMyApplicationsAsync();
157+
var templateId = HttpContext.Session.GetString("TemplateId") ?? string.Empty;
158+
159+
var applications = await applicationsClient.GetMyApplicationsAsync(templateId: new Guid(templateId));
158160

159161
// Calculate status for each application
160162
var applicationTasks = applications.Select(async app => new ApplicationWithCalculatedStatus

0 commit comments

Comments
 (0)