Skip to content

Commit

Permalink
Add since to export tests (#3625)
Browse files Browse the repository at this point in the history
  • Loading branch information
LTA-Thinking authored Dec 12, 2023
1 parent e338eec commit 4f89a46
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ public MetricHandler MetricHandler
.Where(x => x.Key.resourceType != "Observation" || TestResources.Keys.Any(pat => pat.resourceType == "Patient" && pat.resourceId == (x.Value as Observation).Subject.Reference.Split("/")[1]))
.ToDictionary(pair => pair.Key, pair => pair.Value);

internal string FixtureTag { get; } = Guid.NewGuid().ToString();
internal string FixtureTag { get; } = Guid.NewGuid().ToString(); // Set once at class creation time

internal DateTime TestDataInsertionTime { get; } = DateTime.UtcNow;
internal DateTime TestDataInsertionTime { get; } = DateTime.UtcNow; // Set once at class creation time

internal string ExportTestFilterQueryParameters(params string[] uniqueResourceTypes)
{
Expand All @@ -72,7 +72,7 @@ internal string ExportTestFilterQueryParameters(params string[] uniqueResourceTy

var typeFilterPart = string.Join(',', uniqueResourceTypes.Select(rt => $"{rt}%3F_tag%3D{FixtureTag}"));

return $"_type={string.Join(',', uniqueResourceTypes)}&_typeFilter={typeFilterPart}";
return $"_type={string.Join(',', uniqueResourceTypes)}&_typeFilter={typeFilterPart}&_since={TestDataInsertionTime:O}";
}

protected override async Task OnInitializedAsync()
Expand Down

0 comments on commit 4f89a46

Please sign in to comment.