Strip JDE/CMS data-sync from OLD/ for v5 POC
Remove JDE/CMS source-system integration: JDE/CMS query classes, SQL files, WorkerService UpdateProcessor pipeline, dsconfig data-source configs, and Oracle/Sybase/DDTek driver references. WorkProcessor now goes straight to processing queued searches against the existing local SQL Server cache; DB schema (DataUpdate table, MatchMis function) is left intact. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,40 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WorkerService.Models
|
||||
{
|
||||
public class DataSource
|
||||
{
|
||||
public int DataSourceID { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string HostName { get; set; }
|
||||
public string Username { get; set; }
|
||||
public string Password { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class DataLoad
|
||||
{
|
||||
public int DataLoadID { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
public int DataSourceID { get; set; }
|
||||
|
||||
public bool IsEnabled { get; set; }
|
||||
public List<DataLoadSchedule> Schedules { get; set; }
|
||||
}
|
||||
|
||||
public class DataLoadSchedule
|
||||
{
|
||||
public int DataLoadScheduleID { get; set; }
|
||||
public int DataLoadID { get; set; }
|
||||
public string Name { get; set; }
|
||||
|
||||
public bool PurgeBeforeLoad { get; set; }
|
||||
public bool ReIndexAfterLoad { get; set; }
|
||||
public bool IsDaily { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,60 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
using WorkerService.Process;
|
||||
|
||||
namespace WorkerService.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Database update configuration
|
||||
/// </summary>
|
||||
public class DataSourceConfig
|
||||
{
|
||||
/// <summary>
|
||||
/// Name of source data system
|
||||
/// </summary>
|
||||
public string SourceSystem { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Name of source data set
|
||||
/// </summary>
|
||||
public string SourceData { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Name of table being updated
|
||||
/// </summary>
|
||||
public string TableName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not the data source is enabled
|
||||
/// </summary>
|
||||
public bool IsEnabled { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Source data fetch function
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(FunctionConverter<DateTime?, IEnumerable<dynamic>>))]
|
||||
public Func<DateTime?, IEnumerable<dynamic>> DataFetchFunction { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Post data update processing action
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(ActionConverter))]
|
||||
public Action PostProcessingAction { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Data update entry for mass update typ
|
||||
/// </summary>
|
||||
public DataUpdateConfig MassUpdateConfig { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Data update entry for daily update typ
|
||||
/// </summary>
|
||||
public DataUpdateConfig DailyUpdateConfig { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Data update entry for hourly update typ
|
||||
/// </summary>
|
||||
public DataUpdateConfig HourlyUpdateConfig { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
namespace WorkerService.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Database update entry
|
||||
/// </summary>
|
||||
public class DataUpdateConfig
|
||||
{
|
||||
/// <summary>
|
||||
/// Whether or not the update config is enabled
|
||||
/// </summary>
|
||||
public bool Enabled { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Interval (in minutes) between updates
|
||||
/// </summary>
|
||||
public int Interval { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not the table should be purged prior to update
|
||||
/// </summary>
|
||||
public bool PrepurgeData { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not the table should be re-indexed after update
|
||||
/// </summary>
|
||||
public bool ReIndexData { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
using System;
|
||||
using DataModel.Models;
|
||||
|
||||
namespace WorkerService.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Cached data update task
|
||||
/// </summary>
|
||||
public class DataUpdateTask
|
||||
{
|
||||
/// <summary>
|
||||
/// Data update configuration
|
||||
/// </summary>
|
||||
public DataSourceConfig Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Type of update needed
|
||||
/// </summary>
|
||||
public UpdateTypes UpdateType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Minimum timestamp to import changeset from
|
||||
/// </summary>
|
||||
public DateTime? MinimumDT { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
namespace WorkerService.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Table index
|
||||
/// </summary>
|
||||
public class Index
|
||||
{
|
||||
/// <summary>
|
||||
/// Name of index
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not the index is a primary key
|
||||
/// </summary>
|
||||
public bool IsPrimaryKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not the index is unique
|
||||
/// </summary>
|
||||
public bool IsUnique { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not the index is unique constraint
|
||||
/// </summary>
|
||||
public bool IsUniqueConstraint { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace WorkerService.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Set of last successful data updates for table
|
||||
/// </summary>
|
||||
public class LastDataUpdate
|
||||
{
|
||||
/// <summary>
|
||||
/// Data table name
|
||||
/// </summary>
|
||||
public string TableName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Timestamp of last successful mass data update
|
||||
/// </summary>
|
||||
public DateTime MassUpdateDT { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Timestamp of last successful daily data update
|
||||
/// </summary>
|
||||
public DateTime DailyUpdateDT { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Timestamp of last successful hourly data update
|
||||
/// </summary>
|
||||
public DateTime HourlyUpdateDT { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user