Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions src/Trax.Dashboard/Components/Pages/Data/MetadataDetailPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,37 @@
</RadzenRow>
</RadzenCard>

@* ── Execution Host ── *@
@if (_metadata.HostName is not null || _metadata.HostEnvironment is not null)
{
<RadzenCard class="rz-mb-4">
<RadzenText TextStyle="TextStyle.H6" class="rz-mb-2">Execution Host</RadzenText>
<RadzenRow Gap="1rem">
<RadzenColumn Size="12" SizeMD="6" SizeLG="4">
<RadzenStack Gap="0.75rem">
<FieldDisplay Label="Hostname" Value="@(_metadata.HostName ?? "—")" />
<FieldDisplay Label="Environment" Value="@(_metadata.HostEnvironment ?? "—")" />
</RadzenStack>
</RadzenColumn>
<RadzenColumn Size="12" SizeMD="6" SizeLG="4">
<RadzenStack Gap="0.75rem">
<FieldDisplay Label="Instance ID" Value="@(_metadata.HostInstanceId ?? "—")" />
</RadzenStack>
</RadzenColumn>
@if (!string.IsNullOrWhiteSpace(_metadata.HostLabels))
{
<RadzenColumn Size="12" SizeMD="6" SizeLG="4">
<RadzenStack Gap="0.75rem">
<FieldDisplay Label="Labels">
<pre style="font-size: 0.75rem; margin: 0; white-space: pre-wrap; word-break: break-all;">@FormatJson(_metadata.HostLabels)</pre>
</FieldDisplay>
</RadzenStack>
</RadzenColumn>
}
</RadzenRow>
</RadzenCard>
}

@* ── Step Progress (only if in progress with a running step) ── *@
@if (_metadata.TrainState == TrainState.InProgress && !string.IsNullOrWhiteSpace(_metadata.CurrentlyRunningStep))
{
Expand Down
10 changes: 10 additions & 0 deletions src/Trax.Dashboard/Components/Pages/Data/MetadataPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,16 @@
Title="Manifest Id"
Width="140px"
Visible="false" />
<RadzenDataGridColumn TItem="Metadata"
Property="HostEnvironment"
Title="Host Env"
Width="120px"
Visible="false" />
<RadzenDataGridColumn TItem="Metadata"
Property="HostName"
Title="Host"
Width="150px"
Visible="false" />
</Columns>
</TraxDataGrid>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class CyclicDependencyValidationTests
public void SetUp()
{
_services = new ServiceCollection();
var root = new TraxBuilder(_services, new EffectRegistry());
var root = new TraxBuilder(_services, new EffectRegistry()) { HasDataProvider = true };
_parentBuilder = root.AddEffects(effects => effects)
.AddMediator(typeof(IFakeSchedulerTrainA).Assembly);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class InferredSchedulingApiTests
public void SetUp()
{
_services = new ServiceCollection();
var root = new TraxBuilder(_services, new EffectRegistry());
var root = new TraxBuilder(_services, new EffectRegistry()) { HasDataProvider = true };
_parentBuilder = root.AddEffects(effects => effects)
.AddMediator(typeof(IFakeSchedulerTrainA).Assembly);
}
Expand Down
Loading