Skip to content
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

Merged
merged 13 commits into from
Jan 3, 2024

Conversation

NithinKuruba
Copy link
Contributor

Copy link

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Validation 🤖``

Terraform Plan 📖success

Show Plan

terraform

Pusher: @NithinKuruba, Action: pull_request

@NithinKuruba NithinKuruba added the enhancement New feature or request label Jan 2, 2024
Copy link
Contributor

@jlangy jlangy left a 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 Show resolved Hide resolved
@@ -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) => {
Copy link
Contributor

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

Copy link
Contributor Author

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


await disableIntegration(rqst.get({ plain: true, clone: true }));
await closeOpenPullRequests(rqst.id);
await dispatchRequestWorkflow(rqst);
//await closeOpenPullRequests(rqst.id);
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

app/form-components/FormTemplate.tsx Show resolved Hide resolved
app/metadata/options.tsx Outdated Show resolved Hide resolved
app/pages/my-dashboard/integrations.tsx Outdated Show resolved Hide resolved
lambda/app/src/controllers/requests.ts Outdated Show resolved Hide resolved
lambda/app/src/controllers/user.ts Outdated Show resolved Hide resolved
lambda/app/src/github.ts Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Jan 2, 2024

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Validation 🤖``

Terraform Plan 📖success

Show Plan

terraform

Pusher: @NithinKuruba, Action: pull_request

Copy link

github-actions bot commented Jan 2, 2024

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Validation 🤖``

Terraform Plan 📖success

Show Plan

terraform

Pusher: @NithinKuruba, Action: pull_request

Copy link

github-actions bot commented Jan 2, 2024

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Validation 🤖``

Terraform Plan 📖failure

Show Plan

terraform

Pusher: @NithinKuruba, Action: pull_request

Copy link

github-actions bot commented Jan 2, 2024

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Validation 🤖``

Terraform Plan 📖failure

Show Plan

terraform

Pusher: @NithinKuruba, Action: pull_request

jlangy
jlangy previously approved these changes Jan 2, 2024
Copy link
Contributor

@jlangy jlangy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great!

Copy link

github-actions bot commented Jan 3, 2024

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Validation 🤖``

Terraform Plan 📖success

Show Plan

terraform

Pusher: @NithinKuruba, Action: pull_request

@NithinKuruba NithinKuruba requested a review from jlangy January 3, 2024 00:36
jlangy
jlangy previously approved these changes Jan 3, 2024
Copy link

sonarqubecloud bot commented Jan 3, 2024

Quality Gate Failed Quality Gate failed

Failed conditions

2 Security Hotspots
8.5% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

Copy link

github-actions bot commented Jan 3, 2024

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Validation 🤖``

Terraform Plan 📖success

Show Plan

terraform

Pusher: @NithinKuruba, Action: pull_request

@NithinKuruba NithinKuruba merged commit 1a7b795 into dev Jan 3, 2024
6 of 8 checks passed
@jlangy jlangy deleted the feat/SSOTEAM-1084 branch March 20, 2024 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants