From 5885d88affcdaadb38be7e82b01cdf2221496306 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Thu, 16 Apr 2026 16:04:39 +0200 Subject: [PATCH] Update display pareto PieChart --- MP.IOC/Components/Pages/CallStats.razor.cs | 9 +++++++-- MP.IOC/MP.IOC.csproj | 2 +- MP.IOC/Resources/ChangeLog.html | 2 +- MP.IOC/Resources/VersNum.txt | 2 +- MP.IOC/Resources/manifest.xml | 2 +- MP.IOC/appsettings.Production.json | 17 +++++++++++++++++ 6 files changed, 28 insertions(+), 6 deletions(-) diff --git a/MP.IOC/Components/Pages/CallStats.razor.cs b/MP.IOC/Components/Pages/CallStats.razor.cs index 5bc73b32..d56668aa 100644 --- a/MP.IOC/Components/Pages/CallStats.razor.cs +++ b/MP.IOC/Components/Pages/CallStats.razor.cs @@ -64,12 +64,17 @@ namespace MP.IOC.Components.Pages private List DatiPareto { - get => currData.Select(x => x.Value).ToList(); + get => currData.Where(x => x.Value > 10).OrderByDescending(x => x.Value).Take(ParetoTake).Select(x => x.Value).ToList(); } private List LabelPareto { - get => currData.Select(x => x.Label).ToList(); + get => currData.Where(x => x.Value > 10).OrderByDescending(x => x.Value).Take(ParetoTake).Select(x => x.Label).ToList(); + } + + private int ParetoTake + { + get => currData.Count() <= 30 ? currData.Count() : 30; } private List LabelPlot diff --git a/MP.IOC/MP.IOC.csproj b/MP.IOC/MP.IOC.csproj index fb739c20..27999560 100644 --- a/MP.IOC/MP.IOC.csproj +++ b/MP.IOC/MP.IOC.csproj @@ -4,7 +4,7 @@ net8.0 enable enable - 6.16.2604.1615 + 6.16.2604.1616 diff --git a/MP.IOC/Resources/ChangeLog.html b/MP.IOC/Resources/ChangeLog.html index dc848b13..fa8bc407 100644 --- a/MP.IOC/Resources/ChangeLog.html +++ b/MP.IOC/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MP-IOC -

Versione: 6.16.2604.1615

+

Versione: 6.16.2604.1616


Note di rilascio:
  • diff --git a/MP.IOC/Resources/VersNum.txt b/MP.IOC/Resources/VersNum.txt index ed9dd758..f88e592c 100644 --- a/MP.IOC/Resources/VersNum.txt +++ b/MP.IOC/Resources/VersNum.txt @@ -1 +1 @@ -6.16.2604.1615 +6.16.2604.1616 diff --git a/MP.IOC/Resources/manifest.xml b/MP.IOC/Resources/manifest.xml index 5830a838..1efa5261 100644 --- a/MP.IOC/Resources/manifest.xml +++ b/MP.IOC/Resources/manifest.xml @@ -1,6 +1,6 @@ - 6.16.2604.1615 + 6.16.2604.1616 https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/MP.IOC.zip https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/ChangeLog.html false diff --git a/MP.IOC/appsettings.Production.json b/MP.IOC/appsettings.Production.json index 230ed791..ad5fa751 100644 --- a/MP.IOC/appsettings.Production.json +++ b/MP.IOC/appsettings.Production.json @@ -5,6 +5,23 @@ "Microsoft.AspNetCore": "Warning" } }, + "ReverseProxy": { + "Routes": [ + { + "RouteId": "route-man-r-iob", + "ClusterId": "cluster-placeholder", + "Match": { "Path": "/api/RIOB/{**catch-all}" } + } + ], + "Clusters": { + "cluster-old": { + "Destinations": { "old1": { "Address": "https://iis01.egalware.com/MP/IO/IOB/" } } + }, + "cluster-new": { + "Destinations": { "new1": { "Address": "https://iis01.egalware.com/MP/IOC/api/IOB/" } } + } + } + }, "AllowedHosts": "*", "CodApp": "MP.IOC", "ConnectionStrings": {