fix: update deployment service to use correct product ID

Changed the parameter name from deployment_project_id to deployment_product_id in the DevOpsReconcileRequest to ensure accurate referencing of the product associated with the deployment.

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-08-03 04:04:19 +08:00
parent 5f3368cbdc
commit 6c60a0b6a5
2 changed files with 4 additions and 4 deletions

View File

@ -84,5 +84,5 @@ class DevOpsReconcileRequest(BaseModel):
causes: str
commit_sha256: Optional[str] = None
target_env: Literal["alpha", "prod"]
ttl_controled: bool = False
ttl_control: bool = False
ttl: int = 10800

View File

@ -175,12 +175,12 @@ class DeploymentService:
request = DevOpsReconcileRequest(
operation=DevOpsReconcileOperationType.START,
id=deployment.deployment_id,
devops_proj_id=deployment.deployment_project_id,
devops_proj_id=deployment.deployment_product_id,
triggered_user_id=deployment.deployed_by,
causes=deployment.deployment_reason,
target_env=deployment.deployment_target_env,
ttl_controled=True,
ttl=deployment.deployment_ttl_hours,
ttl_control=True,
ttl=deployment.deployment_ttl_hours * 60,
commit_sha256=deployment.deployment_git_sha256,
)
# send request to reoncile service