mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-12 08:05:44 +00:00
include notes/groups in flow_version_lite for run page (#8536)
* feat: show groups and notes in flow status viewer Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: include notes/groups in flow_version_lite for run page Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
167084a0eb
commit
82f2a3902f
@@ -602,11 +602,19 @@ pub async fn handle_flow_dependency_job(
|
||||
)
|
||||
.await?;
|
||||
|
||||
let value_lite_with_extras = Json(
|
||||
serde_json::value::to_raw_value(&FlowValueWithExtras {
|
||||
value: &value_lite,
|
||||
notes: extras.as_ref().and_then(|e| e.notes.clone()),
|
||||
groups: extras.as_ref().and_then(|e| e.groups.clone()),
|
||||
})
|
||||
.map_err(to_anyhow)?,
|
||||
);
|
||||
sqlx::query!(
|
||||
"INSERT INTO flow_version_lite (id, value) VALUES ($1, $2)
|
||||
ON CONFLICT (id) DO UPDATE SET value = EXCLUDED.value",
|
||||
version,
|
||||
Json(value_lite) as Json<FlowValue>,
|
||||
&value_lite_with_extras as &Json<Box<RawValue>>,
|
||||
)
|
||||
.execute(&mut *tx)
|
||||
.await?;
|
||||
|
||||
Reference in New Issue
Block a user