feat: Enhance ID mapping service robustness, add defensive guards, and expand migration engine and API testing.

This commit is contained in:
2026-02-25 14:44:21 +03:00
parent 33433c3173
commit 2a5b225800
11 changed files with 640 additions and 32 deletions

View File

@@ -51,6 +51,8 @@ class GitService:
# @RETURN: str
def _get_repo_path(self, dashboard_id: int) -> str:
with belief_scope("GitService._get_repo_path"):
if dashboard_id is None:
raise ValueError("dashboard_id cannot be None")
return os.path.join(self.base_path, str(dashboard_id))
# [/DEF:_get_repo_path:Function]