From 4450b364e3e45a3740956362dbb66dcfeb499727 Mon Sep 17 00:00:00 2001 From: Nipunn Koorapati Date: Thu, 7 Nov 2024 16:54:58 -0700 Subject: [PATCH] Unique component definition path on snapshot import (#31421) Required since there's a uniqueness check on push. GitOrigin-RevId: bef29e1cabd1430e9840f1a8608073f420590d40 --- crates/application/src/snapshot_import.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/application/src/snapshot_import.rs b/crates/application/src/snapshot_import.rs index e23fba3d..d88efff9 100644 --- a/crates/application/src/snapshot_import.rs +++ b/crates/application/src/snapshot_import.rs @@ -2554,7 +2554,7 @@ async fn create_unmounted_component( let mut tx = database.begin(Identity::system()).await?; let definition = ComponentDefinitionMetadata { - path: "_initially_unmounted".parse()?, + path: format!("{}", parent_path.join(component_name.clone())).parse()?, definition_type: ComponentDefinitionType::ChildComponent { name: component_name.clone(), args: btreemap! {},