From 71134321445ef7060734f87d7bea9585a7d701c7 Mon Sep 17 00:00:00 2001 From: Beth Rennie Date: Mon, 27 Apr 2026 14:34:09 -0400 Subject: [PATCH] Bug 2027114 - Produce expected data format in nimbus-cli list command The nimbus-cli list command expects the data from the RS server to be the raw JSON payload from the HTTP request, i.e., it should have a `data` field with the actual record contents. Until we have time to go through the entire SDK and CLI and update the parsing (see-also bug 2002310), we just wrap the returned response in an object with a data member. --- components/support/nimbus-cli/src/sources/experiment_list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/support/nimbus-cli/src/sources/experiment_list.rs b/components/support/nimbus-cli/src/sources/experiment_list.rs index 515f048b8f..5458112205 100644 --- a/components/support/nimbus-cli/src/sources/experiment_list.rs +++ b/components/support/nimbus-cli/src/sources/experiment_list.rs @@ -240,7 +240,7 @@ impl TryFrom<&ExperimentListSource> for Value { let client = rs_service.make_client(collection_name); let response = client.get_records(true); - serde_json::to_value(response)? + serde_json::json!({ "data": response} ) } ExperimentListSource::FromFile { file } => { let v: Value = value_utils::read_from_file(file)?;