Skip to content

Commit

Permalink
added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichaels-harvard committed Nov 26, 2024
1 parent ec40570 commit ea179f4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions foursight_core/react/api/aws_ecs_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()):
Expand Down

0 comments on commit ea179f4

Please sign in to comment.