chore(bootstrap): refresh stale GlobalsImporter references in docs/test names
This commit is contained in:
@@ -10,9 +10,8 @@ namespace SVSim.Bootstrap.Importers;
|
||||
/// Idempotent upsert of the six card-id-keyed tables from load-index seeds:
|
||||
/// SpotCards, ReprintedCards, UnlimitedRestrictions, LoadingExclusionCards,
|
||||
/// MaintenanceCards, FeatureMaintenances. Loads the Cards FK set once for orphan warnings.
|
||||
/// Rows missing from a seed are LEFT INTACT (consistent with prior GlobalsImporter behavior)
|
||||
/// for the five card-id-keyed tables; FeatureMaintenances clears-and-rewrites because its
|
||||
/// synthetic ordinal Id has no natural-key semantics.
|
||||
/// Rows missing from a seed are LEFT INTACT — a partial seed shouldn't silently delete entries.
|
||||
/// FeatureMaintenances clears-and-rewrites because its synthetic ordinal Id has no natural-key semantics.
|
||||
/// </summary>
|
||||
public class CardListsImporter
|
||||
{
|
||||
@@ -136,10 +135,10 @@ public class CardListsImporter
|
||||
var seed = SeedLoader.LoadList<FeatureMaintenanceSeed>(Path.Combine(seedDir, "feature-maintenances.json"));
|
||||
if (seed.Count == 0) return 0;
|
||||
// FeatureMaintenances has a synthetic int Id assigned by the extractor (1-based ordinal).
|
||||
// The original GlobalsImporter.ImportFeatureMaintenances added rows without dedup; since the
|
||||
// seed is regenerated on every extract, clear-and-rewrite keeps re-runs idempotent and
|
||||
// matches "the latest seed is authoritative". Pre-existing rows with seed-absent ids are
|
||||
// dropped here (acceptable: only synthetic ordinals, no FKs reference this table).
|
||||
// FeatureMaintenances use a synthetic ordinal id from the extractor; we clear-and-rewrite to
|
||||
// keep re-runs idempotent and match "the latest seed is authoritative". Pre-existing rows
|
||||
// with seed-absent ids are dropped here (acceptable: only synthetic ordinals, no FKs
|
||||
// reference this table).
|
||||
var existing = await context.FeatureMaintenances.ToListAsync();
|
||||
context.FeatureMaintenances.RemoveRange(existing);
|
||||
int created = 0;
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace SVSim.Bootstrap.Importers;
|
||||
/// Reads <see cref="RotationConfig"/> from the GameConfigs table (populated by
|
||||
/// <see cref="RotationConfigImporter"/>) and flips <c>CardSet.IsInRotation</c> to match.
|
||||
/// Must run after RotationConfigImporter and CardImporter — CardSets missing from the DB
|
||||
/// can't be promoted (the original GlobalsImporter behavior; we log a warning instead of failing).
|
||||
/// can't be promoted (we log a warning instead of failing — the rotation flag flip is non-fatal).
|
||||
/// </summary>
|
||||
public class RotationFlagUpdater
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user