Skip to content

Commit

Permalink
Merge pull request #850 from ITfoxtec/qa
Browse files Browse the repository at this point in the history
Qa
  • Loading branch information
Revsgaard authored Jun 18, 2024
2 parents 4276a30 + 2fdd1ff commit b9f0dbf
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public TDownPartyTestController(FoxIDsControlSettings settings, TelemetryScopedL
Name = mParty.Name,
DisplayName = mParty.DisplayName,
TestUrl = testUrl,
TestExpireAt = mParty.TestExpireAt,
TestExpireAt = mParty.TestExpireAt.Value,
});
}
catch (ValidationException)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected async Task<ActionResult<AParty>> Get(string name)
var mParty = await tenantDataRepository.GetAsync<MParty>(await GetId(IsUpParty(), name));
if (mParty is DownParty mDownParty)
{
if (mDownParty.IsTest)
if (mDownParty.IsTest == true)
{
var mDownPartyTest = await tenantDataRepository.GetAsync<OidcDownPartyTest>(await DownParty.IdFormatAsync(RouteBinding, name));
var arDownPartyTest = mapper.Map<Api.OidcDownParty>(mDownPartyTest);
Expand Down Expand Up @@ -163,7 +163,7 @@ protected async Task<ActionResult<AParty>> Put(AParty party, Func<AParty, ValueT
mOidcDownParty.Client.Secrets = tempMParty.Client.Secrets;
}

if(tempMParty.IsTest)
if(tempMParty.IsTest == true)
{
var tempMPartyTest = await tenantDataRepository.GetAsync<OidcDownPartyTest>(mParty.Id);
tempMPartyTest.TestExpireAt = DateTimeOffset.UtcNow.AddSeconds(settings.DownPartyTestLifetime).ToUnixTimeSeconds();
Expand Down
2 changes: 1 addition & 1 deletion src/FoxIDs.Control/FoxIDs.Control.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Version>1.6.8</Version>
<Version>1.6.9</Version>
<RootNamespace>FoxIDs</RootNamespace>
<Authors>Anders Revsgaard</Authors>
<Company>ITfoxtec</Company>
Expand Down
2 changes: 1 addition & 1 deletion src/FoxIDs.Control/Logic/PartyLogic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public async Task DeleteExporedDownParties()
{
var idKey = new Track.IdKey { TenantName = RouteBinding.TenantName, TrackName = RouteBinding.TrackName };
var now = DateTimeOffset.UtcNow.ToUnixTimeSeconds();
await tenantDataRepository.DeleteListAsync<DownParty>(idKey, whereQuery: p => p.DataType.Equals(Constants.Models.DataType.DownParty) && p.TestExpireAt < now);
await tenantDataRepository.DeleteListAsync<DownParty>(idKey, whereQuery: p => p.DataType.Equals(Constants.Models.DataType.DownParty) && p.IsTest == true && p.TestExpireAt < now);
}
}
}
2 changes: 1 addition & 1 deletion src/FoxIDs.ControlClient/FoxIDs.ControlClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Version>1.6.8</Version>
<Version>1.6.9</Version>
<RootNamespace>FoxIDs.Client</RootNamespace>
<Authors>Anders Revsgaard</Authors>
<Company>ITfoxtec</Company>
Expand Down
2 changes: 1 addition & 1 deletion src/FoxIDs.ControlShared/FoxIDs.ControlShared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Version>1.6.8</Version>
<Version>1.6.9</Version>
<RootNamespace>FoxIDs</RootNamespace>
<Authors>Anders Revsgaard</Authors>
<Company>ITfoxtec</Company>
Expand Down
2 changes: 1 addition & 1 deletion src/FoxIDs.Shared/FoxIDs.Shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Version>1.6.8</Version>
<Version>1.6.9</Version>
<RootNamespace>FoxIDs</RootNamespace>
<Authors>Anders Revsgaard</Authors>
<Company>ITfoxtec</Company>
Expand Down
4 changes: 2 additions & 2 deletions src/FoxIDs.Shared/Models/Parties/DownParty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ public static async Task<string> IdFormatAsync(RouteBinding routeBinding, string

#region TestApp
[JsonProperty(PropertyName = "is_test")]
public bool IsTest { get; set; }
public bool? IsTest { get; set; }

[MaxLength(Constants.Models.DownParty.UrlLengthMax)]
[JsonProperty(PropertyName = "test_url")]
public string TestUrl { get; set; }

[JsonProperty(PropertyName = "test_expire_at")]
public long TestExpireAt { get; set; }
public long? TestExpireAt { get; set; }
#endregion

public async Task SetIdAsync(IdKey idKey)
Expand Down
2 changes: 1 addition & 1 deletion src/FoxIDs.SharedBase/FoxIDs.SharedBase.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Version>1.6.8</Version>
<Version>1.6.9</Version>
<RootNamespace>FoxIDs</RootNamespace>
<Authors>Anders Revsgaard</Authors>
<Company>ITfoxtec</Company>
Expand Down
2 changes: 1 addition & 1 deletion src/FoxIDs/FoxIDs.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Version>1.6.8</Version>
<Version>1.6.9</Version>
<RootNamespace>FoxIDs</RootNamespace>
<Authors>Anders Revsgaard</Authors>
<Company>ITfoxtec</Company>
Expand Down

0 comments on commit b9f0dbf

Please sign in to comment.