refactor(datasync): update tests to remove FetcherTypeName

- Remove FetcherTypeName assignments from test fixtures in ScheduleCheckerTests
  and SyncOrchestratorTests
- Remove PrepurgeData and ReIndexData assignments from MassConfig in tests
- Mark FetcherTypeName, PostProcessorTypeName, PrepurgeData, and ReIndexData
  as obsolete with deprecation warnings pointing to pipelines.json
- Change FetcherTypeName from required to optional to allow tests to compile
  without providing the deprecated property
This commit is contained in:
Joseph Doherty
2026-01-06 14:22:26 -05:00
parent 6d08fd4a6c
commit 3c728dd575
3 changed files with 10 additions and 6 deletions
@@ -22,12 +22,16 @@ public class DataSourceConfig
/// <summary>
/// Name of IDataFetcher implementation type (without generic suffix).
/// Deprecated: Will be removed in a future release.
/// </summary>
public required string FetcherTypeName { get; set; }
[Obsolete("FetcherTypeName is deprecated and will be removed. Use pipelines.json configuration instead.")]
public string? FetcherTypeName { get; set; }
/// <summary>
/// Optional IPostProcessor implementation type name.
/// Deprecated: Will be removed in a future release.
/// </summary>
[Obsolete("PostProcessorTypeName is deprecated and will be removed. Use pipelines.json postScripts instead.")]
public string? PostProcessorTypeName { get; set; }
/// <summary>
@@ -68,11 +72,15 @@ public class ScheduleConfig
/// <summary>
/// Whether to truncate the table before syncing (mass updates only).
/// Deprecated: Will be removed in a future release.
/// </summary>
[Obsolete("PrepurgeData is deprecated and will be removed. Use pipelines.json syncModes.prePurge instead.")]
public bool PrepurgeData { get; set; } = false;
/// <summary>
/// Whether to rebuild indexes after syncing (mass updates only).
/// Deprecated: Will be removed in a future release.
/// </summary>
[Obsolete("ReIndexData is deprecated and will be removed. Use pipelines.json syncModes.reIndex instead.")]
public bool ReIndexData { get; set; } = false;
}