refactor(dotnet): remove aggregate collection repository contract
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 17s
Validators (Pushes and Pull Requests) / validate-core (push) Failing after 1m38s

This commit is contained in:
2026-07-13 01:09:57 +09:00
parent ae32f86685
commit ca3b394ec2
9 changed files with 18 additions and 82 deletions
@@ -2,6 +2,7 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using QuantEngine.Core.Interfaces;
using QuantEngine.Application.Interfaces;
using QuantEngine.Web.Services;
namespace QuantEngine.Web.Pages.Admin.Collection;
@@ -9,12 +10,12 @@ namespace QuantEngine.Web.Pages.Admin.Collection;
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
public class DetailModel : PageModel
{
private readonly ICollectionRepository _collectionRepository;
private readonly ICollectionReadRepository _collectionRepository;
private readonly ILogger<DetailModel> _logger;
public CollectionRunRecord? Run { get; set; }
public DetailModel(ICollectionRepository collectionRepository, ILogger<DetailModel> logger)
public DetailModel(ICollectionReadRepository collectionRepository, ILogger<DetailModel> logger)
{
_collectionRepository = collectionRepository;
_logger = logger;
@@ -1,6 +1,7 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc.RazorPages;
using QuantEngine.Core.Interfaces;
using QuantEngine.Application.Interfaces;
using QuantEngine.Web.Services;
namespace QuantEngine.Web.Pages.Admin.Collection;
@@ -8,13 +9,13 @@ namespace QuantEngine.Web.Pages.Admin.Collection;
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
public class ErrorsModel : PageModel
{
private readonly ICollectionRepository _collectionRepository;
private readonly ICollectionReadRepository _collectionRepository;
private readonly ILogger<ErrorsModel> _logger;
public string? RunId { get; set; }
public List<CollectionErrorRecord>? Errors { get; set; }
public ErrorsModel(ICollectionRepository collectionRepository, ILogger<ErrorsModel> logger)
public ErrorsModel(ICollectionReadRepository collectionRepository, ILogger<ErrorsModel> logger)
{
_collectionRepository = collectionRepository;
_logger = logger;
@@ -1,6 +1,7 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc.RazorPages;
using QuantEngine.Core.Interfaces;
using QuantEngine.Application.Interfaces;
using QuantEngine.Web.Services;
namespace QuantEngine.Web.Pages.Admin.Collection;
@@ -8,13 +9,13 @@ namespace QuantEngine.Web.Pages.Admin.Collection;
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
public class SnapshotsModel : PageModel
{
private readonly ICollectionRepository _collectionRepository;
private readonly ICollectionReadRepository _collectionRepository;
private readonly ILogger<SnapshotsModel> _logger;
public string? RunId { get; set; }
public List<CollectionSnapshotRecord>? Snapshots { get; set; }
public SnapshotsModel(ICollectionRepository collectionRepository, ILogger<SnapshotsModel> logger)
public SnapshotsModel(ICollectionReadRepository collectionRepository, ILogger<SnapshotsModel> logger)
{
_collectionRepository = collectionRepository;
_logger = logger;
@@ -1,6 +1,7 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc.RazorPages;
using QuantEngine.Core.Interfaces;
using QuantEngine.Application.Interfaces;
using QuantEngine.Web.Services;
namespace QuantEngine.Web.Pages.Admin.Monitoring;
@@ -8,7 +9,7 @@ namespace QuantEngine.Web.Pages.Admin.Monitoring;
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
public class IndexModel : PageModel
{
private readonly ICollectionRepository _collectionRepository;
private readonly ICollectionReadRepository _collectionRepository;
private readonly ILogger<IndexModel> _logger;
public List<CollectionRunRecord>? OngoingRuns { get; set; }
@@ -19,7 +20,7 @@ public class IndexModel : PageModel
public List<CollectionErrorRecord>? RecentErrors { get; set; }
public bool IsDatabaseConnected { get; set; }
public IndexModel(ICollectionRepository collectionRepository, ILogger<IndexModel> logger)
public IndexModel(ICollectionReadRepository collectionRepository, ILogger<IndexModel> logger)
{
_collectionRepository = collectionRepository;
_logger = logger;