Make json structure uniform #6
1 changed files with 3 additions and 3 deletions
|
@ -621,7 +621,7 @@ let routes ~datadir ~cachedir ~configdir ~expired_jobs =
|
||||||
let json_response =
|
let json_response =
|
||||||
`Assoc [
|
`Assoc [
|
||||||
"left", `Assoc [
|
"left", `Assoc [
|
||||||
"job_name", `String job_left;
|
"job", `String job_left;
|
||||||
PixieDust marked this conversation as resolved
|
|||||||
"uuid", `String (Uuidm.to_string build_left.uuid);
|
"uuid", `String (Uuidm.to_string build_left.uuid);
|
||||||
"platform", `String build_left.platform;
|
"platform", `String build_left.platform;
|
||||||
"start_time", `String (Ptime.to_rfc3339 build_left.start);
|
"start_time", `String (Ptime.to_rfc3339 build_left.start);
|
||||||
|
@ -630,8 +630,8 @@ let routes ~datadir ~cachedir ~configdir ~expired_jobs =
|
||||||
"main_binary_size", file_size_json build_left_file_size;
|
"main_binary_size", file_size_json build_left_file_size;
|
||||||
];
|
];
|
||||||
"right", `Assoc [
|
"right", `Assoc [
|
||||||
"job_name", `String job_right;
|
"job", `String job_right;
|
||||||
"build", `String (Uuidm.to_string build_right.uuid);
|
"uuid", `String (Uuidm.to_string build_right.uuid);
|
||||||
"platform", `String build_right.platform;
|
"platform", `String build_right.platform;
|
||||||
"start_time", `String (Ptime.to_rfc3339 build_right.start);
|
"start_time", `String (Ptime.to_rfc3339 build_right.start);
|
||||||
"finish_time", `String (Ptime.to_rfc3339 build_right.finish);
|
"finish_time", `String (Ptime.to_rfc3339 build_right.finish);
|
||||||
|
|
Loading…
Reference in a new issue
Can we apply the same change in
job_build
?