Updated various parts of scanning and ingestion, either for bug fixes, or for enhancements.
All checks were successful
ci / build-test (push) Successful in 2m22s
ci / publish-image (push) Has been skipped

This commit is contained in:
2026-03-01 22:07:20 -05:00
parent 704a6fc433
commit 83655f13e9
20 changed files with 555 additions and 90 deletions

View File

@@ -130,7 +130,7 @@ schemaDumpCommand.SetAction(async (parseResult, cancellationToken) =>
var sql = db.Database.GenerateCreateScript();
var outPath = Path.GetFullPath("desired.sql");
await File.WriteAllTextAsync(outPath, sql);
await File.WriteAllTextAsync(outPath, sql, cancellationToken);
Console.WriteLine($"[OK] Wrote EF model create script to: {outPath}");
});

View File

@@ -1,5 +1,6 @@
using JSMR.Application.Enums;
using JSMR.Application.Scanning;
using JSMR.Application.Scanning.Ports;
using JSMR.Infrastructure.Common.Time;
using JSMR.Worker.Options;
using Microsoft.Extensions.DependencyInjection;
@@ -48,6 +49,27 @@ public sealed class PagedScanRunner(
ScanVoiceWorksResponse response = await handler.HandleAsync(request, cancellationToken);
//int newUpcoming = response.Results.Where(x => x.IsNewUpcoming == true).Count();
//if (newUpcoming > 0)
// updatedInfo.Add($"{newUpcoming} new upcoming work(s)");
//int newOnSale = result.ScannedVoiceWorks.Where(x => x.IsNewOnSale == true).Count();
//if (newOnSale > 0)
// updatedInfo.Add($"{newOnSale} new work(s) on sale");
IEnumerable<VoiceWorkUpsertResult> resultsWithIssues = response.Results.Where(x => x.Issues.Count > 0);
//foreach (VoiceWorkUpsertResult resultWithIssues in resultsWithIssues)
//{
// log.LogWarning($"PRoblem with {resultWithIssues.}")
// string messageToDisplay = $"{scannedVoiceWork.ProductId} - {scannedVoiceWork.ProductName} -- {message}";
// Console.WriteLine(messageToDisplay);
// messages.Add(messageToDisplay);
//}
// Save checkpoint
await checkpoints.SaveLastPageAsync(options.Locale, currentPage, cancellationToken);
}

View File

@@ -1,7 +1,8 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
/*"Default": "Information",*/
"Default": "Warning",
"Microsoft.AspNetCore": "Warning"
}
},