fix(archive): partial writers keep the folder changed for the scan; image flags follow queued passes and hashed photos
Writers that change part of a sequence (decode tiers, image-pass flags, analyses, verify flushes and stamps, duplicate flags, title/tags/rating/ notes edits, mass rename) now ask ArchiveIndexer.InStepAsync before their own sidecar write and record the folder's scan stamps afterwards only when the index held the folder as it was: the stored stamps are still the folder's and the row holds the sidecar's frames. What another process changed in the sidecar alone (frames, a new title) stays visible to the next incremental scan, which writes the whole row from the sidecar. EditSequenceInfoAsync reads sidecar and row under the lease and writes the row through SequenceRepository.EditAsync at the settings version it read, applying the edit again on a conflict, then the sidecar from the stored row; settings and frames committed meanwhile stay. MassRenamer writes only folder and title (RelocateAsync, whose null title now keeps the current one). Verify flushes and duplicate flags run under one lease. A scan that finds frames another writer listed in the sidecar itself clears AnalyzedLight, ThumbsBuilt and ProxiesBuilt only in its own row and only on a server (ImagesAfterScan); the shared sidecar keeps the writer's flags, so a desktop's poll no longer makes the server redo its passes. An image pass overtaken by an upload keeps its flag while a pass of the same kind is queued for the sequence. ThumbPack.IsFrom accepts a thumbnail drawn before a verify hashed its photo, in the pass, in SameFrames and in the server's thumbnail lookup, which answered 404 for every such frame. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
18 files changed
+532
-116
No files matched your search
@@ -207,6 +207,7 @@ public sealed class ArchiveJobTests(TestContext context)
|
||||
|
||||
var again = await engine.EnqueueAsync(ArchiveJobs.Scan(fx.Archive), cancellationToken: fx.Ct);
|
||||
await fx.WaitForAsync(again.Id, JobState.Done);
|
||||
Assert.True(Built(ManifestStore.ReadSequence(sidecar).Status), "the server clears what it makes in its own row only");
|
||||
|
||||
// The frames changed behind the index: the statuses no longer hold, and the sequence gets a pass of each kind.
|
||||
foreach (var kind in new[] { JobKind.Thumbs, JobKind.Proxies })
|
||||
@@ -270,6 +271,114 @@ public sealed class ArchiveJobTests(TestContext context)
|
||||
Assert.Count(202, pack.Entries);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task AnImagePassOvertakenByAnUploadKeepsTheSequenceBuiltWhileThePassAfterTheUploadWaits()
|
||||
{
|
||||
await using var fx = await CreateAsync(context);
|
||||
// The pass commits its pack and checkpoints after 200 frames.
|
||||
Photos.WriteSeries(Path.Combine(fx.Paths.Root, "a"), Start, 201);
|
||||
await fx.ScanAsync();
|
||||
var a = (await LocationsAsync(fx)).Single();
|
||||
var sequence = (await fx.Db.Sequences.GetAsync(a.Id))!;
|
||||
|
||||
// While it runs, an upload lands in the sequence and queues the next pass, as the server does after every upload.
|
||||
await using var engine = ServerEngine(fx);
|
||||
Job? next = null;
|
||||
await fx.Service.Images.BuildThumbnailsAsync(fx.Archive, sequence, false, 0, async (_, _) =>
|
||||
{
|
||||
if (next is not null) return;
|
||||
var staged = fx.Stage(Start.AddMinutes(-5), seed: 90);
|
||||
await fx.Service.Ingest.CommitAsync(new IngestRequest(fx.Archive.Id, a.Id, null, null, staged.Path, "IMG_0000.JPG", staged.Size, staged.Sha256, null, null),
|
||||
fx.Ct);
|
||||
next = await engine.EnqueueAsync(ArchiveJobs.Thumbnails([a.Id], "a"), cancellationToken: fx.Ct);
|
||||
}, fx.Ct);
|
||||
|
||||
// The pass did not draw the new photo, but the one queued after it does: the sequence stays built meanwhile, so a
|
||||
// server still offers the thumbnails it has.
|
||||
Assert.NotNull(next);
|
||||
Assert.Equal(202, (await fx.Db.Sequences.GetAsync(a.Id))!.FrameCount);
|
||||
Assert.True((await fx.Db.Sequences.GetAsync(a.Id))!.Status.HasFlag(SequenceStatus.ThumbsBuilt), "row flag");
|
||||
Assert.True(ManifestStore.ReadSequence(fx.Paths.Sequence("a").ManifestPath).Status.HasFlag(SequenceStatus.ThumbsBuilt), "sidecar flag");
|
||||
|
||||
await engine.StartAsync(fx.Ct);
|
||||
await fx.WaitForAsync(next!.Id, JobState.Done);
|
||||
Assert.True((await fx.Db.Sequences.GetAsync(a.Id))!.Status.HasFlag(SequenceStatus.ThumbsBuilt), "built");
|
||||
var folder = fx.Paths.Sequence("a");
|
||||
using var pack = ThumbPackReader.Open(folder.ThumbsPackPath);
|
||||
foreach (var frame in ManifestStore.ReadSequence(folder.ManifestPath).Frames)
|
||||
{
|
||||
Assert.True(pack.Entries.GetValueOrDefault(frame.I) is { } entry && ThumbPack.IsFrom(entry.SourceHash, frame.Sha256, frame.File, frame.Size),
|
||||
$"thumbnail of {frame.File}");
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task ThumbnailsDrawnBeforeAVerifyHashedThePhotosStayTheirs()
|
||||
{
|
||||
await using var fx = await CreateAsync(context);
|
||||
Photos.WriteSeries(Path.Combine(fx.Paths.Root, "a"), Start, 3);
|
||||
await fx.ScanAsync();
|
||||
var a = (await LocationsAsync(fx)).Single();
|
||||
var first = await fx.Service.Images.BuildThumbnailsAsync(fx.Archive, (await fx.Db.Sequences.GetAsync(a.Id))!, false, 0,
|
||||
(_, _) => ValueTask.CompletedTask, fx.Ct);
|
||||
Assert.Equal(3, first.Built);
|
||||
|
||||
// The verify gives the photos the scan adopted their first hash; what was drawn from them is still theirs.
|
||||
var report = await fx.Service.Verifier.VerifyAsync(fx.Archive, [a.Id], default, (_, _, _) => ValueTask.CompletedTask, null, fx.Ct);
|
||||
Assert.Equal(3L, report.Hashed);
|
||||
var again = await fx.Service.Images.BuildThumbnailsAsync(fx.Archive, (await fx.Db.Sequences.GetAsync(a.Id))!, false, 0,
|
||||
(_, _) => ValueTask.CompletedTask, fx.Ct);
|
||||
Assert.Equal((0, 3), (again.Built, again.Reused));
|
||||
Assert.True((await fx.Db.Sequences.GetAsync(a.Id))!.Status.HasFlag(SequenceStatus.ThumbsBuilt), "built");
|
||||
Assert.True(ManifestStore.ReadSequence(fx.Paths.Sequence("a").ManifestPath).Frames.All(f => f.Sha256 is not null), "hashed");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task ADesktopScanAfterTheServersUploadLeavesWhatTheServerMadeForTheFramesAlone()
|
||||
{
|
||||
await using var fx = await CreateAsync(context);
|
||||
Populate(fx);
|
||||
await using var engine = ServerEngine(fx);
|
||||
await engine.StartAsync(fx.Ct);
|
||||
var scan = await engine.EnqueueAsync(ArchiveJobs.Scan(fx.Archive), cancellationToken: fx.Ct);
|
||||
await fx.WaitForAsync(scan.Id, JobState.Done);
|
||||
foreach (var kind in new[] { JobKind.Thumbs, JobKind.Proxies })
|
||||
{
|
||||
foreach (var pass in (await fx.Db.Jobs.ListAsync(null, kind, cancellationToken: fx.Ct)).Items) await fx.WaitForAsync(pass.Id, JobState.Done);
|
||||
}
|
||||
var a = (await LocationsAsync(fx)).Single(l => l.Folder == "a");
|
||||
// A desktop sharing the archive, with an index of its own.
|
||||
await using var desktopIndex = await TitanoDatabase.OpenAsync(DatabaseOptions.Sqlite(Path.Combine(context.CreateTempDirectory("desktop"), "titano.db")), fx.Ct);
|
||||
var desktop = new ArchiveService(desktopIndex, new ArchiveServiceOptions { Owner = "desktop", LeaseWait = TimeSpan.FromSeconds(20) });
|
||||
var archive = await desktop.OpenAsync(fx.Archive.RootPath, fx.Ct);
|
||||
await desktop.Indexer.ScanAsync(archive, ScanMode.Incremental, null, _ => ValueTask.CompletedTask, fx.Ct);
|
||||
|
||||
// The server takes an upload into the sequence and makes its thumbnail and proxy, as after every upload.
|
||||
var staged = fx.Stage(Start.AddMinutes(-5), seed: 90);
|
||||
await fx.Service.Ingest.CommitAsync(new IngestRequest(fx.Archive.Id, a.Id, null, null, staged.Path, "IMG_0000.JPG", staged.Size, staged.Sha256, null, null),
|
||||
fx.Ct);
|
||||
foreach (var request in new[] { ArchiveJobs.Thumbnails([a.Id], "a"), ArchiveJobs.Proxies([a.Id], "a") })
|
||||
await fx.WaitForAsync((await engine.EnqueueAsync(request, cancellationToken: fx.Ct)).Id, JobState.Done);
|
||||
var sidecar = fx.Paths.Sequence("a").ManifestPath;
|
||||
Assert.True(Built(ManifestStore.ReadSequence(sidecar).Status), "built after the upload");
|
||||
var stamp = FileStamp.Of(sidecar);
|
||||
var jobs = (await fx.Db.Jobs.ListAsync(null, null, cancellationToken: fx.Ct)).Items.Count;
|
||||
|
||||
// The desktop's index lags behind the upload: its scan indexes the frame and takes the statuses as the sidecar has them.
|
||||
var summary = await desktop.Indexer.ScanAsync(archive, ScanMode.Incremental, null, _ => ValueTask.CompletedTask, fx.Ct);
|
||||
Assert.SequenceEqual([a.Id], summary.Sequences);
|
||||
Assert.Equal(stamp, FileStamp.Of(sidecar));
|
||||
var row = (await desktopIndex.Sequences.GetAsync(a.Id, fx.Ct))!;
|
||||
Assert.Equal(7, row.FrameCount);
|
||||
Assert.True(Built(row.Status), row.Status.ToString());
|
||||
|
||||
// So the server's next scan finds nothing changed, and makes nothing again.
|
||||
var again = await engine.EnqueueAsync(ArchiveJobs.Scan(fx.Archive), cancellationToken: fx.Ct);
|
||||
await fx.WaitForAsync(again.Id, JobState.Done);
|
||||
Assert.Equal(jobs + 1, (await fx.Db.Jobs.ListAsync(null, null, cancellationToken: fx.Ct)).Items.Count);
|
||||
Assert.True(Built((await fx.Db.Sequences.GetAsync(a.Id))!.Status), "the server's row");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task AFolderGoneBeforeItsImagePassesFailsThemAloneAndTheOtherSequencesGetTheirImages()
|
||||
{
|
||||
|
||||
@@ -226,6 +226,10 @@ public sealed class MassRenameTests(TestContext context)
|
||||
Assert.SequenceEqual(["moved/2026-09-28", "moved/2026-09-29", "moved/2026-09-30"], (await fx.Db.Sequences.ListLocationsAsync(fx.Archive.Id))
|
||||
.Select(l => l.Folder).Order(StringComparer.Ordinal));
|
||||
Assert.SequenceEqual(Expected(plan, before), await StateAsync(fx, ids));
|
||||
// The folders a nested sequence moved out of changed after their rows were written, as a folder another process
|
||||
// changed would: the next scan reads those two again, and finds the index as it is.
|
||||
Assert.SequenceEqual([ids[0], ids[1]], (await fx.ScanAsync()).Sequences);
|
||||
Assert.SequenceEqual(Expected(plan, before), await StateAsync(fx, ids));
|
||||
Assert.Equal(0, (await fx.ScanAsync()).Indexed);
|
||||
}
|
||||
|
||||
|
||||
@@ -10,8 +10,9 @@ using static Titano.Data.Tests.Archiving.ArchiveFixture;
|
||||
namespace Titano.Data.Tests.Archiving;
|
||||
|
||||
/// <summary>
|
||||
/// Writers that change part of a sequence's sidecar and index row (decode tiers, the verify stamp) while a settings edit
|
||||
/// or another writer commits, on both dialects: they write only what they own, under the sequence lease.
|
||||
/// Writers that change part of a sequence's sidecar and index row (decode tiers, the verify, title, tags, rating and
|
||||
/// notes, a rename) while a settings edit or another writer commits, on both dialects: they write only what they own,
|
||||
/// under the sequence lease, and leave what another process changed in the sidecar to the next scan.
|
||||
/// </summary>
|
||||
[Category("archive")]
|
||||
public abstract class PartialRowWriterTests(TestContext context) : DatabaseTest(context)
|
||||
@@ -101,6 +102,150 @@ public abstract class PartialRowWriterTests(TestContext context) : DatabaseTest(
|
||||
Assert.SequenceEqual(sidecar.Frames.Select(f => f.Id), (await fx.Db.Frames.ListBySequenceAsync(sequence.Id, cancellationToken: fx.Ct)).Select(f => f.Id));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task TiersRecordedAfterAnotherWriterRetitledTheSequenceLeaveTheTitleToTheNextScan()
|
||||
{
|
||||
var fx = await FixtureAsync();
|
||||
var sequence = await IndexedAsync(fx);
|
||||
var frames = await fx.Db.Frames.ListBySequenceAsync(sequence.Id, cancellationToken: fx.Ct);
|
||||
|
||||
// A desktop sharing the archive renames and rates the sequence, in the sidecar and its own index.
|
||||
var (desktop, _) = await fx.OtherWriterAsync();
|
||||
await desktop.SetSequenceInfoAsync(sequence.Id, "Ridge", ["fog"], 3, null, fx.Ct);
|
||||
|
||||
// A tier recorded here meanwhile writes only the tier, and leaves the folder changed for the next scan.
|
||||
await Tiers(fx).RecordAsync(fx.Archive, sequence, Preview(frames[0].Id), proxies: false, fx.Ct);
|
||||
Assert.SequenceEqual([sequence.Id], (await fx.ScanAsync()).Sequences);
|
||||
var row = (await fx.Db.Sequences.GetAsync(sequence.Id, fx.Ct))!;
|
||||
Assert.Equal(("Ridge", "fog", 3, 1), (row.Title, row.Tags.Single(), row.Rating, row.PreviewOnlyCount));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task AnInfoEditAfterAnotherWriterAddedFramesLeavesThoseFramesToTheNextScan()
|
||||
{
|
||||
var fx = await FixtureAsync();
|
||||
var sequence = await IndexedAsync(fx);
|
||||
var (desktop, archive) = await fx.OtherWriterAsync();
|
||||
var staged = fx.Stage(Start.AddMinutes(1), seed: 90);
|
||||
await desktop.Ingest.CommitAsync(new IngestRequest(archive.Id, sequence.Id, null, null, staged.Path, "IMG_0004.JPG", staged.Size, staged.Sha256, null, null),
|
||||
fx.Ct);
|
||||
|
||||
// The rating goes into the sidecar and this index; the frames this index holds stay as they are.
|
||||
var rated = await fx.Service.EditSequenceInfoAsync(sequence.Id, info => info with { Rating = 4 }, fx.Ct);
|
||||
Assert.Equal((3, sequence.FramesVersion, 4), (rated.FrameCount, rated.FramesVersion, rated.Rating));
|
||||
Assert.Equal(4, ManifestStore.ReadSequence(fx.Paths.Sequence("a").ManifestPath).Rating);
|
||||
|
||||
// The next scan still finds the folder changed, and indexes the photo.
|
||||
Assert.SequenceEqual([sequence.Id], (await fx.ScanAsync()).Sequences);
|
||||
var sidecar = ManifestStore.ReadSequence(fx.Paths.Sequence("a").ManifestPath);
|
||||
var row = (await fx.Db.Sequences.GetAsync(sequence.Id, fx.Ct))!;
|
||||
Assert.Equal((4, sidecar.Versions.Frames, 4), (row.FrameCount, row.FramesVersion, row.Rating));
|
||||
Assert.SequenceEqual(sidecar.Frames.Select(f => f.Id), (await fx.Db.Frames.ListBySequenceAsync(sequence.Id, cancellationToken: fx.Ct)).Select(f => f.Id));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task AnInfoEditKeepsTheSettingsTheApiSavedAfterItReadTheSequence()
|
||||
{
|
||||
var fx = await FixtureAsync();
|
||||
var sequence = await IndexedAsync(fx);
|
||||
|
||||
// The server's PATCH, which takes no lease, saves settings after the edit read the sequence: the edit applies again.
|
||||
var calls = 0;
|
||||
var rated = await fx.Service.EditSequenceInfoAsync(sequence.Id, info =>
|
||||
{
|
||||
if (++calls == 1)
|
||||
{
|
||||
var patch = fx.Db.Sequences.EditAsync(sequence.Id, new SequenceEdit { SettingsJson = """{"heroFrame":2}""" }, sequence.SettingsVersion, fx.Ct)
|
||||
.GetAwaiter().GetResult();
|
||||
Assert.Equal(SequenceEditOutcome.Updated, patch.Outcome);
|
||||
}
|
||||
return info with { Rating = 5 };
|
||||
}, fx.Ct);
|
||||
|
||||
Assert.Equal(2, calls);
|
||||
var row = (await fx.Db.Sequences.GetAsync(sequence.Id, fx.Ct))!;
|
||||
Assert.Contains("heroFrame", row.SettingsJson);
|
||||
Assert.Equal((5, sequence.SettingsVersion + 2), (row.Rating, row.SettingsVersion));
|
||||
Assert.Equal(rated.SettingsVersion, row.SettingsVersion);
|
||||
var sidecar = ManifestStore.ReadSequence(fx.Paths.Sequence("a").ManifestPath);
|
||||
Assert.Equal((5, row.SettingsVersion), (sidecar.Rating, sidecar.Versions.Settings));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task ARenameAfterAnotherWriterAddedFramesLeavesThoseFramesToTheNextScan()
|
||||
{
|
||||
var fx = await FixtureAsync();
|
||||
var sequence = await IndexedAsync(fx);
|
||||
var (desktop, archive) = await fx.OtherWriterAsync();
|
||||
var staged = fx.Stage(Start.AddMinutes(1), seed: 90);
|
||||
await desktop.Ingest.CommitAsync(new IngestRequest(archive.Id, sequence.Id, null, null, staged.Path, "IMG_0004.JPG", staged.Size, staged.Sha256, null, null),
|
||||
fx.Ct);
|
||||
|
||||
// The rename moves the folder and retitles the sequence; the row keeps the frames this index holds.
|
||||
var plan = await fx.Service.PlanRenameAsync(fx.Archive.Id, [sequence.Id], "b", "Ridge", fx.Ct);
|
||||
await fx.Service.ApplyRenameAsync(plan, null, fx.Ct);
|
||||
var row = (await fx.Db.Sequences.GetAsync(sequence.Id, fx.Ct))!;
|
||||
Assert.Equal(("b", "Ridge", 3, sequence.FramesVersion), (row.Folder, row.Title, row.FrameCount, row.FramesVersion));
|
||||
|
||||
// The next scan still finds the folder changed, and indexes the photo where it is now.
|
||||
Assert.SequenceEqual([sequence.Id], (await fx.ScanAsync()).Sequences);
|
||||
var sidecar = ManifestStore.ReadSequence(fx.Paths.Sequence("b").ManifestPath);
|
||||
row = (await fx.Db.Sequences.GetAsync(sequence.Id, fx.Ct))!;
|
||||
Assert.Equal(("Ridge", 4, sidecar.Versions.Frames), (row.Title, row.FrameCount, row.FramesVersion));
|
||||
Assert.True((await fx.Db.Frames.ListBySequenceAsync(sequence.Id, cancellationToken: fx.Ct)).All(f => f.RelativePath.StartsWith("b/", StringComparison.Ordinal)),
|
||||
"frames in b");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task AVerifyStoppedAfterAFlushLeavesFramesAnotherWriterAddedToTheNextScan()
|
||||
{
|
||||
var fx = await FixtureAsync();
|
||||
// Enough photos the scan adopted unhashed for the verify to flush their hashes before it reaches the end.
|
||||
Photos.WriteSeries(Path.Combine(fx.Paths.Root, "a"), Start, 513);
|
||||
await fx.ScanAsync();
|
||||
var sequence = (await fx.Db.Sequences.GetAsync((await fx.Db.Sequences.ListLocationsAsync(fx.Archive.Id, fx.Ct)).Single().Id, fx.Ct))!;
|
||||
var (desktop, archive) = await fx.OtherWriterAsync();
|
||||
var staged = fx.Stage(Start.AddHours(3), seed: 90);
|
||||
await desktop.Ingest.CommitAsync(new IngestRequest(archive.Id, sequence.Id, null, null, staged.Path, "IMG_0600.JPG", staged.Size, staged.Sha256, null, null),
|
||||
fx.Ct);
|
||||
|
||||
// The verify writes the hashes of the first 512 photos to the sidecar and this index, and stops before the end.
|
||||
await Assert.ThrowsAsync<OperationCanceledException>(() => fx.Service.Verifier.VerifyAsync(fx.Archive, [sequence.Id], default,
|
||||
(_, _, _) => throw new OperationCanceledException(), null, fx.Ct));
|
||||
Assert.Equal(512, (await fx.Db.Frames.ListBySequenceAsync(sequence.Id, cancellationToken: fx.Ct)).Count(f => f.Sha256 is not null));
|
||||
Assert.Equal(513, (await fx.Db.Sequences.GetAsync(sequence.Id, fx.Ct))!.FrameCount);
|
||||
|
||||
// The next scan still finds the folder changed, and indexes the photo.
|
||||
Assert.SequenceEqual([sequence.Id], (await fx.ScanAsync()).Sequences);
|
||||
Assert.Equal(514, (await fx.Db.Sequences.GetAsync(sequence.Id, fx.Ct))!.FrameCount);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task DuplicatesFlaggedAfterAnotherWriterAddedFramesLeaveThoseFramesToTheNextScan()
|
||||
{
|
||||
var fx = await FixtureAsync();
|
||||
// Two sequences holding the same photo, hashed by a verify.
|
||||
Photos.WriteSeries(Path.Combine(fx.Paths.Root, "a"), Start, 3);
|
||||
Photos.WriteSeries(Path.Combine(fx.Paths.Root, "b"), Start, 1);
|
||||
await fx.ScanAsync();
|
||||
await fx.Service.Verifier.VerifyAsync(fx.Archive, null, default, (_, _, _) => ValueTask.CompletedTask, null, fx.Ct);
|
||||
var copy = (await fx.Service.FindDuplicatesAsync(fx.Archive.Id, fx.Ct)).Single().Frames[1];
|
||||
var sequence = (await fx.Db.Sequences.GetAsync(copy.SequenceId, fx.Ct))!;
|
||||
|
||||
// A desktop sharing the archive imports a photo into the sequence whose copy maintenance flags.
|
||||
var (desktop, archive) = await fx.OtherWriterAsync();
|
||||
var staged = fx.Stage(Start.AddHours(3), seed: 90);
|
||||
await desktop.Ingest.CommitAsync(new IngestRequest(archive.Id, sequence.Id, null, null, staged.Path, "IMG_0600.JPG", staged.Size, staged.Sha256, null, null),
|
||||
fx.Ct);
|
||||
var report = await fx.Service.Maintenance.RunAsync(fx.Archive, dryRun: false, firstStep: 3, _ => ValueTask.CompletedTask, fx.Ct);
|
||||
Assert.Equal(1, report.DuplicateFlagChanges);
|
||||
Assert.Equal(sequence.FrameCount, (await fx.Db.Sequences.GetAsync(sequence.Id, fx.Ct))!.FrameCount);
|
||||
|
||||
// The next scan still finds the folder changed, and indexes the photo.
|
||||
Assert.SequenceEqual([sequence.Id], (await fx.ScanAsync()).Sequences);
|
||||
Assert.Equal(sequence.FrameCount + 1, (await fx.Db.Sequences.GetAsync(sequence.Id, fx.Ct))!.FrameCount);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task AVerifyStampedWhileASettingsEditCommitsLeavesTheEdit()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user