mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 18:21:10 +00:00
Adds book deletion and restore to the web client.
Soft deletes books so the scan keeps their paths reserved, lists the deleted books on a themed page, and lets the user restore them. Updates the API, bundled themes, localization, documentation and tests. Closes #213
This commit is contained in:
1 parent
ef5ede6325
commit
f26b07d4ff
125 files changed
+9856
-378
No files matched your search
+3
-2
@@ -1,6 +1,7 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Application.Common.DataAccess.UoW;
|
||||
using Lumina.Application.Common.DomainEvents;
|
||||
using Lumina.Application.Common.Infrastructure.Time;
|
||||
using Lumina.DataAccess.Core.UoW;
|
||||
using Lumina.Domain.Common.Events;
|
||||
using Lumina.Presentation.Api.Common.Http;
|
||||
@@ -72,7 +73,7 @@ public class EventualConsistencyMiddlewareTests
|
||||
using SqliteConnection anchorConnection = new($"Data Source=luminadataccess-eventual-consistency-abort-{Guid.NewGuid()};Mode=Memory;Cache=Shared");
|
||||
anchorConnection.Open();
|
||||
using LuminaDbContext dbContext = CreateContext(anchorConnection);
|
||||
using UnitOfWork unitOfWork = new(dbContext);
|
||||
using UnitOfWork unitOfWork = new(dbContext, Substitute.For<IDateTimeProvider>());
|
||||
await dbContext.Database.ExecuteSqlRawAsync("CREATE TABLE CommitProbe (Id INTEGER NOT NULL PRIMARY KEY);");
|
||||
CapturingHttpResponseFeature responseFeature = new();
|
||||
DefaultHttpContext httpContext = new();
|
||||
@@ -112,7 +113,7 @@ public class EventualConsistencyMiddlewareTests
|
||||
using SqliteConnection anchorConnection = new($"Data Source=luminadataccess-eventual-consistency-rollback-{Guid.NewGuid()};Mode=Memory;Cache=Shared");
|
||||
anchorConnection.Open();
|
||||
using LuminaDbContext dbContext = CreateContext(anchorConnection);
|
||||
using UnitOfWork unitOfWork = new(dbContext);
|
||||
using UnitOfWork unitOfWork = new(dbContext, Substitute.For<IDateTimeProvider>());
|
||||
await dbContext.Database.ExecuteSqlRawAsync("CREATE TABLE CommitProbe (Id INTEGER NOT NULL PRIMARY KEY);");
|
||||
CapturingHttpResponseFeature responseFeature = new();
|
||||
DefaultHttpContext httpContext = new();
|
||||
|
||||
Reference in new issue
Block a user