Migrate remaining legacy operator workflows
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user