Skip to content

Commit

Permalink
[ODS-6440] Sandbox Admin's "Change Secret" button fails after EFCore …
Browse files Browse the repository at this point in the history
…upgrade (#1107)
  • Loading branch information
axelmarquezh authored Jul 24, 2024
1 parent 38a6425 commit 7ceb412
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 5 deletions.
10 changes: 10 additions & 0 deletions Application/EdFi.Admin.DataAccess/Repositories/ClientAppRepo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,16 @@ public async Task<ApiClient> GetClientAsync(string key)
}
}

public ApiClient GetClientIncludingApplication(string key)
{
using (var context = _contextFactory.CreateContext())
{
return context.ApiClients
.Include(c => c.Application)
.FirstOrDefault(c => c.Key == key);
}
}

public ApiClient GetClient(string key, string secret)
{
using (var context = _contextFactory.CreateContext())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public interface IClientAppRepo

Task<ApiClient> GetClientAsync(string key);

ApiClient GetClientIncludingApplication(string key);

ApiClient GetClient(string key, string secret);

ApiClient UpdateClient(ApiClient client);
Expand Down
2 changes: 1 addition & 1 deletion Application/EdFi.Ods.Api/EdFi.Ods.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</When>
<Otherwise>
<ItemGroup>
<PackageReference Include="EdFi.Suite3.Admin.DataAccess" Version="7.3.0" />
<PackageReference Include="EdFi.Suite3.Admin.DataAccess" Version="7.3.33" />
<PackageReference Include="EdFi.Suite3.Security.DataAccess" Version="7.3.0" />
<PackageReference Include="EdFi.Suite3.Common" Version="7.3.0" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Application/EdFi.Ods.Sandbox/EdFi.Ods.Sandbox.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</When>
<Otherwise>
<ItemGroup>
<PackageReference Include="EdFi.Suite3.Admin.DataAccess" Version="7.3.0" />
<PackageReference Include="EdFi.Suite3.Admin.DataAccess" Version="7.3.33" />
<PackageReference Include="EdFi.Suite3.Common" Version="7.3.0" />
</ItemGroup>
</Otherwise>
Expand Down
2 changes: 1 addition & 1 deletion Application/EdFi.Ods.Tests/EdFi.Ods.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</When>
<Otherwise>
<ItemGroup>
<PackageReference Include="EdFi.Suite3.Admin.DataAccess" Version="7.3.0" />
<PackageReference Include="EdFi.Suite3.Admin.DataAccess" Version="7.3.33" />
<PackageReference Include="EdFi.Suite3.Common" Version="7.3.0" />
</ItemGroup>
</Otherwise>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</When>
<Otherwise>
<ItemGroup>
<PackageReference Include="EdFi.Suite3.Admin.DataAccess" Version="7.3.0" />
<PackageReference Include="EdFi.Suite3.Admin.DataAccess" Version="7.3.33" />
<PackageReference Include="EdFi.Suite3.Common" Version="7.3.0" />
</ItemGroup>
</Otherwise>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</When>
<Otherwise>
<ItemGroup>
<PackageReference Include="EdFi.Suite3.Admin.DataAccess" Version="7.3.0" />
<PackageReference Include="EdFi.Suite3.Admin.DataAccess" Version="7.3.33" />
<PackageReference Include="EdFi.Suite3.Common" Version="7.3.0" />
</ItemGroup>
</Otherwise>
Expand Down

0 comments on commit 7ceb412

Please sign in to comment.