refactor(gateway): adopt ZB.MOM.WW.GalaxyRepository 0.2.0; delete inline Galaxy code

This commit is contained in:
Joseph Doherty
2026-06-25 11:33:22 -04:00
parent 39ba011eb4
commit 8e196a7c83
41 changed files with 41 additions and 2959 deletions
@@ -4,8 +4,8 @@
@inject IDashboardLiveDataService LiveData
@inject IDashboardBrowseService BrowseService
@inject IGalaxyDeployNotifier DeployNotifier
@using ZB.MOM.WW.MxGateway.Contracts.Proto.Galaxy
@using ZB.MOM.WW.MxGateway.Server.Galaxy
@using ZB.MOM.WW.GalaxyRepository
@using ZB.MOM.WW.GalaxyRepository.Grpc
<PageTitle>Dashboard Browse</PageTitle>
@@ -1,6 +1,6 @@
@page "/galaxy"
@inherits DashboardPageBase
@using ZB.MOM.WW.MxGateway.Server.Galaxy
@using ZB.MOM.WW.GalaxyRepository
<PageTitle>Dashboard Galaxy</PageTitle>
@@ -1,4 +1,4 @@
@using ZB.MOM.WW.MxGateway.Contracts.Proto.Galaxy
@using ZB.MOM.WW.GalaxyRepository.Grpc
@*
Recursive Browse hierarchy node. Renders one Galaxy object, its child
@@ -1,4 +1,4 @@
using ZB.MOM.WW.MxGateway.Contracts.Proto.Galaxy;
using ZB.MOM.WW.GalaxyRepository.Grpc;
namespace ZB.MOM.WW.MxGateway.Server.Dashboard;
@@ -1,6 +1,6 @@
using Grpc.Core;
using ZB.MOM.WW.MxGateway.Contracts.Proto.Galaxy;
using ZB.MOM.WW.MxGateway.Server.Galaxy;
using ZB.MOM.WW.GalaxyRepository;
using ZB.MOM.WW.GalaxyRepository.Grpc;
namespace ZB.MOM.WW.MxGateway.Server.Dashboard;
@@ -1,14 +1,14 @@
using ZB.MOM.WW.MxGateway.Server.Galaxy;
using ZB.MOM.WW.GalaxyRepository;
namespace ZB.MOM.WW.MxGateway.Server.Dashboard;
/// <summary>Projects the precomputed Galaxy cache dashboard summary.</summary>
/// <summary>Projects the shared-library Galaxy cache entry into a dashboard Galaxy summary.</summary>
internal static class DashboardGalaxyProjector
{
/// <summary>Projects the cache entry to a dashboard Galaxy summary.</summary>
/// <param name="entry">The Galaxy hierarchy cache entry.</param>
public static DashboardGalaxySummary Project(GalaxyHierarchyCacheEntry entry)
{
return entry.DashboardSummary;
return DashboardGalaxySummaryProjector.Project(entry);
}
}
@@ -4,7 +4,7 @@ using Microsoft.Extensions.Logging.Abstractions;
using Microsoft.Extensions.Options;
using ZB.MOM.WW.Auth.Abstractions.ApiKeys;
using ZB.MOM.WW.MxGateway.Server.Configuration;
using ZB.MOM.WW.MxGateway.Server.Galaxy;
using ZB.MOM.WW.GalaxyRepository;
using ZB.MOM.WW.MxGateway.Server.Metrics;
using ZB.MOM.WW.MxGateway.Server.Security.Authentication;
using ZB.MOM.WW.MxGateway.Server.Sessions;
@@ -1,4 +1,4 @@
using ZB.MOM.WW.MxGateway.Server.Galaxy;
using ZB.MOM.WW.GalaxyRepository;
namespace ZB.MOM.WW.MxGateway.Server.Dashboard;