Enhance node update functionality to include base address
CI / Backend (build + test) (push) Successful in 1m25s
CI / Frontend (lint + typecheck + build) (push) Successful in 33s

- Added `BaseAddress` property to `UpdateNodeCommand` and `UpdateNodeBody` for improved node management.
- Implemented validation for the base address in `UpdateNodeCommandHandler`, ensuring it is a valid absolute URI.
- Updated `Node` class to support address updates, including logic to invalidate cached clients on address changes.
- Enhanced frontend components to handle base address input in the node editing dialog and API requests.
- Updated validation rules to enforce base address requirements in `UpdateNodeCommandValidator`.
This commit is contained in:
Leonid Pershin
2026-07-23 01:05:02 +03:00
parent 6b449dbfb5
commit ee6b8a35b8
10 changed files with 270 additions and 10 deletions
@@ -52,6 +52,7 @@ public static class NodeEndpoints
var command = new UpdateNodeCommand(
id,
body.Name,
body.BaseAddress,
body.Location,
body.IsEnabled,
body.Username,
@@ -94,6 +95,7 @@ public static class NodeEndpoints
public sealed record UpdateNodeBody(
string Name,
string BaseAddress,
string? Location,
bool IsEnabled,
string? Username,