Migrate remaining legacy operator workflows

This commit is contained in:
2026-07-12 05:39:27 +09:00
parent ffb8f43c19
commit a01836a2d7
132 changed files with 20566 additions and 720 deletions

View File

@@ -33,10 +33,12 @@ try
await VerifyOracleServerVersionAsync(runtime.Executor, cancellation.Token);
await VerifyStockSearchAsync(runtime.Executor, cancellation.Token);
await VerifyThemeSelectorAsync(runtime.Executor, cancellation.Token);
await VerifyOverseasSelectorsAsync(runtime.Executor, cancellation.Token);
await VerifyExpertSelectorAsync(runtime.Executor, cancellation.Token);
await VerifyTradingHaltSelectorAsync(runtime.Executor, cancellation.Token);
await VerifyOperatorCatalogSchemaAsync(runtime.Executor, cancellation.Token);
await NxtThemeRestoreDbAudit.RunAsync(runtime.Executor, cancellation.Token);
var service = new LegacyMarketDataService(runtime.Executor);
await VerifySnapshotAsync(service, MarketDataView.Kospi, cancellation.Token);
@@ -247,6 +249,33 @@ static async Task VerifyStockSearchAsync(
$"({string.Join(", ", counts)})");
}
static async Task VerifyThemeSelectorAsync(
IDataQueryExecutor executor,
CancellationToken cancellationToken)
{
Console.WriteLine("ThemeSelector: BEGIN");
var service = new LegacyThemeSelectionService(executor);
var themes = await service.SearchAsync(
string.Empty,
ThemeSession.PreMarket,
maximumResults: 100,
cancellationToken);
if (themes.Items.Count == 0)
{
throw new DatabaseConfigurationException(
"The production theme selector returned no unambiguous canonical rows.");
}
var selected = themes.Items[0];
var preview = await service.PreviewAsync(
selected.Identity,
maximumItems: 100,
cancellationToken);
Console.WriteLine(
$"ThemeSelector: themes={themes.Items.Count.ToString(CultureInfo.InvariantCulture)}, " +
$"preview={preview.Items.Count.ToString(CultureInfo.InvariantCulture)}");
}
static async Task VerifyOverseasSelectorsAsync(
IDataQueryExecutor executor,
CancellationToken cancellationToken)