整理配置和代码入口,增加部分测试。

This commit is contained in:
strepsiades
2026-03-10 12:22:54 +08:00
parent 515c3d9388
commit a638e4203b
35 changed files with 1314 additions and 199 deletions
+8 -3
View File
@@ -296,9 +296,14 @@ def build_temp_run_profile_for_project_auto_bind(
profile.setdefault("remote_datasource", {})["target_project_ids"] = [remote_project_id]
project_strategy = profile.setdefault("strategies", {}).setdefault("project", {}).setdefault("config", {})
project_strategy["auto_bind"] = True
project_strategy["auto_bind_fields"] = ["name"]
project_strategy["pre_bind_data_id"] = []
project_strategy["auto_bind"] = False
project_strategy["auto_bind_fields"] = []
project_strategy["pre_bind_data_id"] = [
{
"local_data_id": local_project_id,
"remote_data_id": remote_project_id,
}
]
project_strategy["local_orphan_action"] = project_local_orphan_action or "none"
project_strategy["remote_orphan_action"] = project_remote_orphan_action or "none"
project_strategy["update_direction"] = project_update_direction or "none"