From ea179f4e229695e943c7f908229b83b9d52b8008 Mon Sep 17 00:00:00 2001 From: David Michaels Date: Tue, 26 Nov 2024 15:23:12 -0500 Subject: [PATCH] added comments --- foursight_core/react/api/aws_ecs_services.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/foursight_core/react/api/aws_ecs_services.py b/foursight_core/react/api/aws_ecs_services.py index d19066866..ad5c6c682 100644 --- a/foursight_core/react/api/aws_ecs_services.py +++ b/foursight_core/react/api/aws_ecs_services.py @@ -344,6 +344,14 @@ def prefer_project(preferred_project: str): if preferred_project: return prefer_project(preferred_project[0]) + # Bit of a hack here to handle specific case of cgap-msa (and similar e.g. cgap-dbmi) where + # the ECR image name (e.g. "main") does not match the CodeBuild project name, e.g. like + # for smaht we have image name "smaht-devtest" and CodeBuild project name "smaht-devtest" + # for for cgap-msa we have image name "main and CodeBuild project nanme "cgap-msa", so for + # just to make sure we look at the "right" CodeBuild project name first we defavor any + # others like "cgap-msa-pipeline-builder" or ""cgap-msa-tibanna-awsf-builder". The real + # problem is so far have not found a good way to align info from these two data sets, + # i.e. the CodeBuild project names and the ECR images names. But this works for now. defavored_projects = [] for project in projects: if ("pipeline" in project.lower()) or ("tibanna" in project.lower()):