-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: removed dependency on terraform batch jobs to apply integrations to keycloak #1101
Conversation
Terraform Format and Style 🖌
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, just left a few small comments mostly about function names and old code. The only important comment was on the roles table, I think it might be good to add a unique constraint
lambda/app/src/github.ts
Outdated
@@ -88,7 +89,7 @@ export const buildGitHubRequestData = (baseData: IntegrationData) => { | |||
return baseData; | |||
}; | |||
|
|||
export const dispatchRequestWorkflow = async (integration: any) => { | |||
export const dispatchRequestWorkflow = async (integration: any, restore: boolean = false) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should maybe change the name of this function since it doesn;t use github actions anymore, maybe something like createClient
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah we do not need github file anymore so moved all the code to requests controller file and renamed the function to processIntegrationRequest
lambda/db/src/migrations/2023.12.25T01.00.00.create-request-roles-table.ts
Show resolved
Hide resolved
lambda/app/src/controllers/user.ts
Outdated
|
||
await disableIntegration(rqst.get({ plain: true, clone: true })); | ||
await closeOpenPullRequests(rqst.id); | ||
await dispatchRequestWorkflow(rqst); | ||
//await closeOpenPullRequests(rqst.id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can probably remove this commented line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
Terraform Format and Style 🖌
|
Terraform Format and Style 🖌
|
Terraform Format and Style 🖌
|
Terraform Format and Style 🖌
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great!
Terraform Format and Style 🖌
|
dda04e7
Quality Gate failedFailed conditions 2 Security Hotspots |
Terraform Format and Style 🖌
|
Fixes below tickets