fix(storcon/http): node status API returns serialized runtime object (#11461)

The Serialize impl on the `Node` type is for the `/debug` endpoint only.
Committed APIs should use the `NodeDescribeResponse`.

Refs
- fixes https://github.com/neondatabase/neon/issues/11326
- found while working on admin UI change
https://github.com/neondatabase/cloud/pull/26207
This commit is contained in:
Christian Schwarz
2025-04-07 14:23:40 +02:00
committed by GitHub
parent b2a670c765
commit aa88279681

View File

@@ -899,7 +899,7 @@ async fn handle_node_status(req: Request<Body>) -> Result<Response<Body>, ApiErr
let state = get_state(&req);
let node_id: NodeId = parse_request_param(&req, "node_id")?;
let node_status = state.service.get_node(node_id).await?;
let node_status = state.service.get_node(node_id).await?.describe();
json_response(StatusCode::OK, node_status)
}