Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions lib/dal/src/pkg/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ pub async fn import_funcs_for_module_update(
}
}

import_func(
let func = import_func(
ctx,
&func_spec,
None,
Expand All @@ -600,6 +600,11 @@ pub async fn import_funcs_for_module_update(
super::UpdateMode::UpdateExisting,
)
.await?;

let args: Vec<_> = func_spec.arguments()?.into_iter().collect();
if !args.is_empty() {
import_func_arguments(ctx, func.id, &args).await?;
}
}

Ok(thing_map)
Expand Down Expand Up @@ -1782,8 +1787,11 @@ async fn create_attr_proto_arg(

Ok(match input {
SiPkgAttrFuncInputView::Prop { prop_path, .. } => {
// Convert slash-separated path like "/root/domain/extra" to PropPath
let path_parts: Vec<&str> = prop_path.split('/').filter(|s| !s.is_empty()).collect();
let prop_id =
Prop::find_prop_id_by_path(ctx, schema_variant_id, &prop_path.into()).await?;
Prop::find_prop_id_by_path(ctx, schema_variant_id, &PropPath::new(path_parts))
.await?;
AttributePrototypeArgument::new(ctx, prototype_id, arg.id, prop_id).await?
}
SiPkgAttrFuncInputView::InputSocket { socket_name, .. } => {
Expand Down