Skip to content

Commit

Permalink
DOP-4451 comment out runadditionaltasks
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed May 8, 2024
1 parent 50d2c9e commit 9b0c30d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-stg-ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
branches:
- "main"
- "integration"
- "DOP-4451"
# - "DOP-4451"
concurrency:
group: environment-stg-${{ github.ref }}
cancel-in-progress: true
Expand Down
2 changes: 1 addition & 1 deletion api/controllers/v1/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const DisplayRepoOptions = async (event: APIGatewayEvent): Promise<APIGat
console.log('built branches');
const resp = await slackConnector.displayRepoOptions(entitledBranches, key_val['trigger_id'], isAdmin);
console.log(resp);
if (resp?.status == 200 && resp?.data) {
if (resp?.status == 200 && resp?.data && resp?.data.ok) {
return {
statusCode: 200,
body: 'Model requested',
Expand Down
2 changes: 1 addition & 1 deletion api/controllers/v2/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export const triggerSmokeTestAutomatedBuild = async (event: APIGatewayEvent): Pr
const job = await prepGithubPushPayload(body, payload, jobTitle);

try {
await runAdditionalECSTasks();
// await runAdditionalECSTasks();
consoleLogger.info(job.title, 'Creating Job');
const jobId = await jobRepository.insertJob(job, c.get('jobsQueueUrl'));
jobRepository.notify(jobId, c.get('jobUpdatesQueueUrl'), JobStatus.inQueue, 0);
Expand Down
3 changes: 0 additions & 3 deletions api/handlers/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ export function prepResponse(statusCode, contentType, body) {
//if person is admin, get all prod deployable repos
export async function buildEntitledGroupsList(entitlement: any, repoBranchesRepository: RepoBranchesRepository) {
const repoOptions: any[] = [];
let count = 0;
for (const repo of entitlement.repos) {
const [repoOwner, repoName, directoryPath] = repo.split('/');
const branches = await repoBranchesRepository.getRepoBranches(repoName, directoryPath);
count += branches.length;
const options: any[] = [];
console.log(repoName);
console.log(branches.length);
Expand Down Expand Up @@ -66,7 +64,6 @@ export async function buildEntitledGroupsList(entitlement: any, repoBranchesRepo
};
repoOptions.push(repoOption);
}
console.log(count);
return repoOptions.sort((repoOne, repoTwo) => repoOne.label.text.localeCompare(repoTwo.label.text));
}

Expand Down

0 comments on commit 9b0c30d

Please sign in to comment.