From f3ad38b954e08a13a59ae10f4624ca0b36f34c86 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Wed, 7 Jan 2026 08:00:38 -0500 Subject: [PATCH] feat(datasync): add repository methods for pipeline viewer Add GetRecentUpdatesAsync and GetLastRunsAsync interface methods to IDataUpdateRepository to support the pipeline viewer feature. --- .../Contracts/IDataUpdateRepository.cs | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/NEW/src/JdeScoping.DataSync/Contracts/IDataUpdateRepository.cs b/NEW/src/JdeScoping.DataSync/Contracts/IDataUpdateRepository.cs index 1cee140..c8c1b33 100644 --- a/NEW/src/JdeScoping.DataSync/Contracts/IDataUpdateRepository.cs +++ b/NEW/src/JdeScoping.DataSync/Contracts/IDataUpdateRepository.cs @@ -74,6 +74,30 @@ public interface IDataUpdateRepository Task> GetSyncStatusAsync( Dictionary? customIntervals = null, CancellationToken cancellationToken = default); + + /// + /// Gets the last N execution records for a specific table. + /// + /// The table name to filter by. + /// Optional update type filter. If null, returns all types. + /// Maximum records to return (total, not per type). + /// Cancellation token. + /// List of DataUpdate records ordered by StartDt descending. + Task> GetRecentUpdatesAsync( + string tableName, + UpdateTypes? updateType = null, + int count = 30, + CancellationToken cancellationToken = default); + + /// + /// Gets the last run (successful or not) for each update type for a table. + /// + /// The table name. + /// Cancellation token. + /// Dictionary keyed by UpdateType. + Task> GetLastRunsAsync( + string tableName, + CancellationToken cancellationToken = default); } ///