diff --git a/docker/api/Dockerfile b/docker/api/Dockerfile index dd14ce3..1f3fd8e 100644 --- a/docker/api/Dockerfile +++ b/docker/api/Dockerfile @@ -1,4 +1,4 @@ FROM mcr.microsoft.com/dotnet/core/aspnet:latest -COPY flightrecorder.api-1.8.0.0 /opt/flightrecorder.api-1.8.0.0 -WORKDIR /opt/flightrecorder.api-1.8.0.0/bin +COPY flightrecorder.api-1.9.0.0 /opt/flightrecorder.api-1.9.0.0 +WORKDIR /opt/flightrecorder.api-1.9.0.0/bin ENTRYPOINT [ "./FlightRecorder.Api" ] diff --git a/src/FlightRecorder.Api/Controllers/ReportsController.cs b/src/FlightRecorder.Api/Controllers/ReportsController.cs index b526c87..6f9deda 100644 --- a/src/FlightRecorder.Api/Controllers/ReportsController.cs +++ b/src/FlightRecorder.Api/Controllers/ReportsController.cs @@ -188,7 +188,6 @@ public async Task>> GetJobsAsync(string start, stri .ListAsync(x => (x.Start >= startDate) && ((x.End == null) || (x.End <= endDate)), pageNumber, pageSize) - .OrderByDescending(x => x.Start) .ToListAsync(); if (!results.Any()) diff --git a/src/FlightRecorder.Api/FlightRecorder.Api.csproj b/src/FlightRecorder.Api/FlightRecorder.Api.csproj index c438c75..3d717a4 100644 --- a/src/FlightRecorder.Api/FlightRecorder.Api.csproj +++ b/src/FlightRecorder.Api/FlightRecorder.Api.csproj @@ -2,9 +2,9 @@ net7.0 - 1.8.0.0 - 1.8.0.0 - 1.8.0 + 1.9.0.0 + 1.9.0.0 + 1.9.0 enable false diff --git a/src/FlightRecorder.BusinessLogic/Database/JobStatusManager.cs b/src/FlightRecorder.BusinessLogic/Database/JobStatusManager.cs index fb09cbc..32eb0f3 100644 --- a/src/FlightRecorder.BusinessLogic/Database/JobStatusManager.cs +++ b/src/FlightRecorder.BusinessLogic/Database/JobStatusManager.cs @@ -44,13 +44,19 @@ public IAsyncEnumerable ListAsync(Expression> p if (predicate == null) { results = _context.JobStatuses + .OrderByDescending(x => x.Start) .Skip((pageNumber - 1) * pageSize) .Take(pageSize) .AsAsyncEnumerable(); } else { - results = _context.JobStatuses.Where(predicate).AsAsyncEnumerable(); + results = _context.JobStatuses + .Where(predicate) + .OrderByDescending(x => x.Start) + .Skip((pageNumber - 1) * pageSize) + .Take(pageSize) + .AsAsyncEnumerable(); } return results; diff --git a/src/FlightRecorder.BusinessLogic/FlightRecorder.BusinessLogic.csproj b/src/FlightRecorder.BusinessLogic/FlightRecorder.BusinessLogic.csproj index a4da680..5030a44 100644 --- a/src/FlightRecorder.BusinessLogic/FlightRecorder.BusinessLogic.csproj +++ b/src/FlightRecorder.BusinessLogic/FlightRecorder.BusinessLogic.csproj @@ -3,7 +3,7 @@ net7.0 FlightRecorder.BusinessLogic - 1.6.0.0 + 1.7.0.0 Dave Walker Copyright (c) Dave Walker 2020, 2021, 2022, 2023 Dave Walker @@ -16,7 +16,7 @@ https://github.com/davewalker5/FlightRecorderDb MIT false - 1.6.0.0 + 1.7.0.0 diff --git a/src/FlightRecorder.Data/FlightRecorder.Data.csproj b/src/FlightRecorder.Data/FlightRecorder.Data.csproj index e4403f8..8e0086f 100644 --- a/src/FlightRecorder.Data/FlightRecorder.Data.csproj +++ b/src/FlightRecorder.Data/FlightRecorder.Data.csproj @@ -3,7 +3,7 @@ net7.0 FlightRecorder.Data - 1.6.0.0 + 1.7.0.0 Dave Walker Copyright (c) Dave Walker 2020, 2021, 2022, 2023 Dave Walker @@ -16,7 +16,7 @@ https://github.com/davewalker5/FlightRecorderDb MIT false - 1.6.0.0 + 1.7.0.0 diff --git a/src/FlightRecorder.DataExchange/FlightRecorder.DataExchange.csproj b/src/FlightRecorder.DataExchange/FlightRecorder.DataExchange.csproj index fea3ca3..ef6aa91 100644 --- a/src/FlightRecorder.DataExchange/FlightRecorder.DataExchange.csproj +++ b/src/FlightRecorder.DataExchange/FlightRecorder.DataExchange.csproj @@ -3,7 +3,7 @@ net7.0 FlightRecorder.DataExchange - 1.6.0.0 + 1.7.0.0 Dave Walker Copyright (c) Dave Walker 2020, 2021, 2022, 2023 Dave Walker @@ -16,7 +16,7 @@ https://github.com/davewalker5/FlightRecorderDb MIT false - 1.6.0.0 + 1.7.0.0 diff --git a/src/FlightRecorder.Entities/FlightRecorder.Entities.csproj b/src/FlightRecorder.Entities/FlightRecorder.Entities.csproj index b94efde..6a575ca 100644 --- a/src/FlightRecorder.Entities/FlightRecorder.Entities.csproj +++ b/src/FlightRecorder.Entities/FlightRecorder.Entities.csproj @@ -3,7 +3,7 @@ net7.0 FlightRecorder.Entities - 1.6.0.0 + 1.7.0.0 Dave Walker Copyright (c) Dave Walker 2020, 2021, 2022, 2023 Dave Walker @@ -16,7 +16,7 @@ https://github.com/davewalker5/FlightRecorderDb MIT false - 1.6.0.0 + 1.7.0.0 diff --git a/src/FlightRecorder.Manager/FlightRecorder.Manager.csproj b/src/FlightRecorder.Manager/FlightRecorder.Manager.csproj index c630e9d..a006c0e 100644 --- a/src/FlightRecorder.Manager/FlightRecorder.Manager.csproj +++ b/src/FlightRecorder.Manager/FlightRecorder.Manager.csproj @@ -3,9 +3,9 @@ Exe net7.0 - 1.6.0.0 - 1.6.0.0 - 1.6.0.0 + 1.7.0.0 + 1.7.0.0 + 1.7.0.0 Release;Debug false diff --git a/src/FlightRecorder.Tests/FlightRecorder.Tests.csproj b/src/FlightRecorder.Tests/FlightRecorder.Tests.csproj index e1163bc..7061a22 100644 --- a/src/FlightRecorder.Tests/FlightRecorder.Tests.csproj +++ b/src/FlightRecorder.Tests/FlightRecorder.Tests.csproj @@ -4,7 +4,7 @@ net7.0 false - 1.6.0.0 + 1.7.0.0