Optimize Collection page load with Task.WhenAll and fix BaseAddress SSR prerendering check in Users.razor
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 8s
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 13s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Deploy to Production / Build & Deploy to Production (push) Failing after 2m12s
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 8s
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 13s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Deploy to Production / Build & Deploy to Production (push) Failing after 2m12s
This commit is contained in:
@@ -107,8 +107,14 @@ else if (DashboardState != null)
|
||||
IsLoading = true;
|
||||
try
|
||||
{
|
||||
DashboardState = await ApiClient.GetCollectionStateAsync();
|
||||
var runsResponse = await ApiClient.GetCollectionRunsAsync(10);
|
||||
// Parallelize API calls to avoid sequential RTT bottlenecks
|
||||
var stateTask = ApiClient.GetCollectionStateAsync();
|
||||
var runsTask = ApiClient.GetCollectionRunsAsync(10);
|
||||
|
||||
await Task.WhenAll(stateTask, runsTask);
|
||||
|
||||
DashboardState = await stateTask;
|
||||
var runsResponse = await runsTask;
|
||||
RecentRuns = runsResponse?.Runs ?? new();
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
@@ -136,6 +136,10 @@
|
||||
{
|
||||
try
|
||||
{
|
||||
if (Http.BaseAddress == null)
|
||||
{
|
||||
Http.BaseAddress = new Uri("http://localhost:5265/");
|
||||
}
|
||||
var res = await Http.GetFromJsonAsync<List<UserDto>>("api/users");
|
||||
if (res != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user