整理配置和代码入口,增加部分测试。
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user