48 references to SchemaVersion
Aspire.Dashboard (3)
ServiceClient\DashboardRunStore.cs (3)
179SchemaVersion); 201SchemaVersion = SchemaVersion, 729internal bool IsCompatible => SchemaVersion == DashboardRunStore.SchemaVersion;
Aspire.Dashboard.Components.Tests (35)
Layout\MainLayoutTerminalTests.cs (2)
97new("current", DashboardRunStore.SchemaVersion, DateTimeOffset.UnixEpoch, null, false, "TestApp", string.Empty, true), 98new("historical", DashboardRunStore.SchemaVersion, DateTimeOffset.UnixEpoch, DateTimeOffset.UnixEpoch, true, "TestApp", string.Empty, false)
Layout\MainLayoutTests.cs (32)
306SchemaVersion: DashboardRunStore.SchemaVersion, 317SchemaVersion: DashboardRunStore.SchemaVersion, 354SchemaVersion: DashboardRunStore.SchemaVersion - 1, 363SchemaVersion: DashboardRunStore.SchemaVersion, 372SchemaVersion: DashboardRunStore.SchemaVersion, 424SchemaVersion: DashboardRunStore.SchemaVersion, 458SchemaVersion: DashboardRunStore.SchemaVersion, 469SchemaVersion: DashboardRunStore.SchemaVersion, 665SchemaVersion: DashboardRunStore.SchemaVersion, 674SchemaVersion: DashboardRunStore.SchemaVersion, 727SchemaVersion: DashboardRunStore.SchemaVersion, 736SchemaVersion: DashboardRunStore.SchemaVersion, 779var currentRun = new DashboardRunDescriptor("current", DashboardRunStore.SchemaVersion, DateTimeOffset.UnixEpoch, null, false, "TestApp", string.Empty, IsCurrent: true); 780var pinnedRunB = new DashboardRunDescriptor("pinned-b", DashboardRunStore.SchemaVersion, startedAtUtc, null, true, "TestApp", string.Empty, IsCurrent: false) { IsPinned = true }; 781var pinnedRunA = new DashboardRunDescriptor("pinned-a", DashboardRunStore.SchemaVersion, startedAtUtc, null, true, "TestApp", string.Empty, IsCurrent: false) { IsPinned = true }; 782var olderPinnedRun = new DashboardRunDescriptor("pinned-older", DashboardRunStore.SchemaVersion, startedAtUtc.AddDays(-1), null, true, "TestApp", string.Empty, IsCurrent: false) { IsPinned = true }; 783var unpinnedRun = new DashboardRunDescriptor("unpinned", DashboardRunStore.SchemaVersion, startedAtUtc.AddDays(1), null, true, "TestApp", string.Empty, IsCurrent: false); 784var incompatibleRun = new DashboardRunDescriptor("incompatible", DashboardRunStore.SchemaVersion - 1, startedAtUtc.AddDays(2), null, true, "TestApp", string.Empty, IsCurrent: false) { IsSelectable = false }; 785var unavailableRun = new DashboardRunDescriptor("unavailable", DashboardRunStore.SchemaVersion, startedAtUtc.AddDays(3), null, true, "TestApp", string.Empty, IsCurrent: false) { IsSelectable = false }; 786var prunedRun = new DashboardRunDescriptor("pruned", DashboardRunStore.SchemaVersion, startedAtUtc.AddDays(4), null, true, "TestApp", string.Empty, IsCurrent: false) { IsPruned = true }; 810SchemaVersion: DashboardRunStore.SchemaVersion, 819new DashboardRunDescriptor("unpinned-b", DashboardRunStore.SchemaVersion, new(2025, 1, 2, 12, 0, 0, TimeSpan.Zero), null, true, "TestApp", string.Empty, IsCurrent: false), 820new DashboardRunDescriptor("pinned-b", DashboardRunStore.SchemaVersion, new(2025, 1, 2, 11, 0, 0, TimeSpan.Zero), null, true, "TestApp", string.Empty, IsCurrent: false), 821new DashboardRunDescriptor("unpinned-a", DashboardRunStore.SchemaVersion, new(2025, 1, 2, 9, 0, 0, TimeSpan.Zero), null, true, "TestApp", string.Empty, IsCurrent: false), 822new DashboardRunDescriptor("pinned-a", DashboardRunStore.SchemaVersion, new(2025, 1, 2, 10, 0, 0, TimeSpan.Zero), null, true, "TestApp", string.Empty, IsCurrent: false) 905SchemaVersion: DashboardRunStore.SchemaVersion, 949SchemaVersion: DashboardRunStore.SchemaVersion, 960SchemaVersion: DashboardRunStore.SchemaVersion, 1003SchemaVersion: DashboardRunStore.SchemaVersion, 1012SchemaVersion: DashboardRunStore.SchemaVersion, 1062SchemaVersion: DashboardRunStore.SchemaVersion, 1073SchemaVersion: DashboardRunStore.SchemaVersion,
Shared\FluentUISetupHelpers.cs (1)
269SchemaVersion: DashboardRunStore.SchemaVersion,
Aspire.Dashboard.Tests (10)
Model\DashboardDataSourceTests.cs (9)
160Assert.Equal(DashboardRunStore.SchemaVersion, metadata.RootElement.GetProperty("SchemaVersion").GetInt32()); 161Assert.Equal(DashboardRunStore.SchemaVersion, Assert.Single(runStore.GetRuns()).SchemaVersion); 609write => write.Message == $"Existing dashboard database at '{databasePath}' is incompatible with schema version {DashboardRunStore.SchemaVersion} and will be replaced."); 757metadata["SchemaVersion"] = DashboardRunStore.SchemaVersion - 1; 776Assert.Equal(DashboardRunStore.SchemaVersion - 1, updatedMetadata.RootElement.GetProperty("SchemaVersion").GetInt32()); 798metadata["SchemaVersion"] = DashboardRunStore.SchemaVersion + 1; 815Assert.Equal(DashboardRunStore.SchemaVersion + 1, updatedMetadata.RootElement.GetProperty("SchemaVersion").GetInt32()); 842metadata["SchemaVersion"] = DashboardRunStore.SchemaVersion - 1; 1540SchemaVersion = DashboardRunStore.SchemaVersion + 1,
Shared\TestDashboardDataSource.cs (1)
47[new("current", DashboardRunStore.SchemaVersion, DateTimeOffset.UnixEpoch, null, false, "TestApp", databasePath ?? string.Empty, IsCurrent: true)])