Skip to content
Merged
Show file tree
Hide file tree
Changes from 145 commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
ea5aadd
Gerrit return URL
lukaszgryglicki Jan 8, 2025
5e9653d
Merge branch 'dev' into unicron-gerrit-return-url
lukaszgryglicki Jan 15, 2025
8ce203c
Merge pull request #4511 from communitybridge/unicron-gerrit-return-url
mlehotskylf Jan 15, 2025
3129496
New util script to mass update signatures embargo_acked flag
lukaszgryglicki Jan 16, 2025
1b8d869
Merge pull request #4520 from communitybridge/unicron-script-to-mass-…
mlehotskylf Jan 17, 2025
cda031c
4519: Fix edge case - when there are no corporate contributors
lukaszgryglicki Jan 21, 2025
78de43c
Update python 3.7 -> 3.8
lukaszgryglicki Jan 21, 2025
ec6b450
Try updating setuptools
lukaszgryglicki Jan 21, 2025
ebc4075
Try updating setuptools 2
lukaszgryglicki Jan 21, 2025
7093290
Try updating setuptools 3
lukaszgryglicki Jan 21, 2025
3ce0922
Fix CI issues
lukaszgryglicki Jan 21, 2025
0db3e77
Merge pull request #4523 from communitybridge/unicron-4519
mlehotskylf Jan 22, 2025
8ff3a50
Merge branch 'dev' into unicron-yarn-audits
lukaszgryglicki Jan 22, 2025
7312aaa
Merge pull request #4524 from communitybridge/unicron-yarn-audits
lukaszgryglicki Jan 22, 2025
6eca8b2
Try to fix the failing dev deployment
lukaszgryglicki Jan 23, 2025
f21ce7e
Merge pull request #4525 from communitybridge/unicron-try-fixinig-dep…
lukaszgryglicki Jan 28, 2025
ea2caa7
Revert "Try to fix the failing dev deployment"
lukaszgryglicki Jan 28, 2025
f23632f
Merge pull request #4532 from communitybridge/revert-4525-unicron-try…
lukaszgryglicki Jan 28, 2025
49f3ded
Fix by changign action to v4
lukaszgryglicki Jan 28, 2025
8ee1809
Merge pull request #4533 from communitybridge/unicron-fix-dev-build-1
lukaszgryglicki Jan 28, 2025
47b29cb
Try newest versions
lukaszgryglicki Jan 28, 2025
0824f25
Merge pull request #4535 from communitybridge/unicron-version-bumps
lukaszgryglicki Jan 28, 2025
158249b
Try newest versions 2
lukaszgryglicki Jan 28, 2025
aa7dc34
Merge pull request #4536 from communitybridge/unicron-version-bumps-3
lukaszgryglicki Jan 28, 2025
8c5afdf
Revert "Try newest versions 2"
lukaszgryglicki Jan 28, 2025
a4a09bc
Merge pull request #4537 from communitybridge/revert-4536-unicron-ver…
lukaszgryglicki Jan 28, 2025
30de8b5
Revert "Try newest versions"
lukaszgryglicki Jan 28, 2025
6416142
Merge pull request #4538 from communitybridge/revert-4535-unicron-ver…
lukaszgryglicki Jan 28, 2025
ef5853e
Fix build?
lukaszgryglicki Jan 28, 2025
9aba2e0
Merge branch 'dev' into unicron-fix
lukaszgryglicki Jan 28, 2025
f5ff817
Merge pull request #4539 from communitybridge/unicron-fix
lukaszgryglicki Jan 28, 2025
b4dd8de
Fix build?
lukaszgryglicki Jan 28, 2025
90ab478
Merge branch 'dev' into unicron-fix-2
lukaszgryglicki Jan 28, 2025
3cb681b
Merge pull request #4540 from communitybridge/unicron-fix-2
lukaszgryglicki Jan 28, 2025
d3fb41f
Fix?
lukaszgryglicki Jan 28, 2025
66d8796
Merge branch 'dev' into unicron-fix-3
lukaszgryglicki Jan 28, 2025
4dc1d30
Merge pull request #4541 from communitybridge/unicron-fix-3
lukaszgryglicki Jan 28, 2025
df0611f
Original deploy
lukaszgryglicki Jan 28, 2025
af9ba0c
Merge pull request #4542 from communitybridge/unicron-restore-deploy
lukaszgryglicki Jan 28, 2025
cf77c2b
Fix?
lukaszgryglicki Jan 28, 2025
75a92d4
Merge pull request #4543 from communitybridge/unicron-fix
lukaszgryglicki Jan 28, 2025
474e0ae
Revert "Fix?"
lukaszgryglicki Jan 28, 2025
9a24cf6
Merge pull request #4544 from communitybridge/revert-4543-unicron-fix
lukaszgryglicki Jan 28, 2025
7ebaed7
Fix Dev Deployment
csavulalfx Jan 28, 2025
f22467f
Fix Dev Deployment
csavulalfx Jan 28, 2025
19eef7a
Merge pull request #4545 from communitybridge/feat/fix-python-deployment
csavulalfx Jan 28, 2025
f627910
Fix python deployment
csavulalfx Jan 29, 2025
b2a3e78
Merge pull request #4546 from communitybridge/feat/fix-python-deployment
csavulalfx Jan 29, 2025
58bc29d
Fix python deployment
csavulalfx Jan 29, 2025
440dcf9
Merge branch 'dev' into feat/fix-python-deployment
csavulalfx Jan 29, 2025
4ce98fb
Merge pull request #4547 from communitybridge/feat/fix-python-deployment
csavulalfx Jan 29, 2025
4e297e2
Fix Dev Deployment
csavulalfx Jan 29, 2025
a32ff4b
Merge pull request #4548 from communitybridge/feat/fix-deployment
csavulalfx Jan 29, 2025
a4f53db
Fix dev deployment
csavulalfx Jan 29, 2025
1a1ae6e
Merge pull request #4549 from communitybridge/feat/fix-deploy
csavulalfx Jan 29, 2025
1fbf2c2
Fix dev deployment
csavulalfx Jan 29, 2025
c5d1507
Merge branch 'dev' into feat/fix-deploy
csavulalfx Jan 29, 2025
366d263
Merge pull request #4550 from communitybridge/feat/fix-deploy
csavulalfx Jan 29, 2025
50c46b9
Merge pull request #4551 from communitybridge/dev
csavulalfx Jan 29, 2025
d691e0f
Merge pull request #4552 from communitybridge/feat/fix-deploy
csavulalfx Jan 29, 2025
8956264
Update serverless.yml
csavulalfx Jan 29, 2025
3a5fa6b
add exclude pattern
lewisojile Jan 29, 2025
cb1bf8c
Merge pull request #4553 from communitybridge/fix-lambda-size
csavulalfx Jan 29, 2025
be93040
Fix dev deployment
csavulalfx Jan 29, 2025
feae44e
Merge pull request #4554 from communitybridge/feat/fix-deploy-dev
csavulalfx Jan 29, 2025
04626fe
Added utils/investigation scripts
lukaszgryglicki Jan 30, 2025
797521b
Merge pull request #4556 from communitybridge/unicron-cla-authorization
lukaszgryglicki Jan 30, 2025
bb0180a
Create Python venv in '.venv' for Builds
bramwelt Jan 30, 2025
6acf5f1
Merge pull request #4557 from communitybridge/ci-venv
csavulalfx Jan 31, 2025
04344f0
Update util scripts
lukaszgryglicki Jan 31, 2025
dd0c8ac
Merge branch 'dev' into unicron-update-util-scripts
lukaszgryglicki Jan 31, 2025
c5ec36f
Merge pull request #4559 from communitybridge/unicron-update-util-scr…
lukaszgryglicki Jan 31, 2025
13bf694
Try to fix the deployment
lukaszgryglicki Feb 4, 2025
6f21704
Merge pull request #4568 from communitybridge/unicron-fix-dev-deploy
lukaszgryglicki Feb 4, 2025
067ad98
Try to fix the deployment 2
lukaszgryglicki Feb 4, 2025
9fa25be
Try to fix the deployment 3
lukaszgryglicki Feb 4, 2025
a116651
try newest versions
lukaszgryglicki Feb 4, 2025
31df119
Try to fix the deployment 4
lukaszgryglicki Feb 4, 2025
09864e7
Try to fix the deployment 5
lukaszgryglicki Feb 4, 2025
8bfdde1
Try to fix the deployment 6
lukaszgryglicki Feb 4, 2025
924fdb6
Try to fix the deployment 7
lukaszgryglicki Feb 4, 2025
1f32ce6
Try to fix the deployment 8
lukaszgryglicki Feb 4, 2025
47f50b0
Try to fix the deployment 9
lukaszgryglicki Feb 4, 2025
bf22c50
Try to fix the deployment 10
lukaszgryglicki Feb 4, 2025
ad453f3
Try to fix the deployment 11
lukaszgryglicki Feb 4, 2025
287fbdb
Try to fix the deployment 12
lukaszgryglicki Feb 4, 2025
814fe27
Try to fix the deployment 13
lukaszgryglicki Feb 4, 2025
32fd95c
Try to fix the deployment 14
lukaszgryglicki Feb 4, 2025
53b65f9
Try to fix the deployment 15
lukaszgryglicki Feb 4, 2025
0f1f72c
Try to fix the deployment 16
lukaszgryglicki Feb 4, 2025
57266d7
Try to fix the deployment 17
lukaszgryglicki Feb 4, 2025
6cea159
Try to fix the deployment 18
lukaszgryglicki Feb 4, 2025
96fc9a2
Try to fix the deployment 19
lukaszgryglicki Feb 4, 2025
f74f3c1
Try to fix the deployment 20
lukaszgryglicki Feb 4, 2025
80273d7
Try to fix the deployment 21
lukaszgryglicki Feb 4, 2025
85b4044
Try to fix the deployment 22
lukaszgryglicki Feb 4, 2025
2c8c761
Try to fix the deployment 23
lukaszgryglicki Feb 4, 2025
211c856
Try to fix the deployment 24
lukaszgryglicki Feb 4, 2025
596c050
Try to fix the deployment 25
lukaszgryglicki Feb 4, 2025
6c38c53
Try to fix the deployment 26
lukaszgryglicki Feb 4, 2025
047479e
Try to fix the deployment 27
lukaszgryglicki Feb 4, 2025
a0ef4ee
Try to fix the deployment 28
lukaszgryglicki Feb 4, 2025
05f645c
Try to fix the deployment 29
lukaszgryglicki Feb 4, 2025
8ba08a6
Try to fix the deployment 30
lukaszgryglicki Feb 4, 2025
0accf22
Try to fix the deployment 31
lukaszgryglicki Feb 4, 2025
11e0670
Try to fix the deployment 32
lukaszgryglicki Feb 4, 2025
fa2789c
Try to fix the deployment 33
lukaszgryglicki Feb 4, 2025
003e37b
Try to fix the deployment 34
lukaszgryglicki Feb 4, 2025
ea2b2af
Try to fix the deployment 35
lukaszgryglicki Feb 4, 2025
40e850f
Try to fix the deployment 36
lukaszgryglicki Feb 4, 2025
2cd905c
Try to fix the deployment 37
lukaszgryglicki Feb 4, 2025
7d1ff5b
Try to fix the deployment 38
lukaszgryglicki Feb 4, 2025
160a87f
Try to fix the deployment 38
lukaszgryglicki Feb 5, 2025
c6d210d
Try to fix the deployment 39
lukaszgryglicki Feb 5, 2025
cd286fa
Try to fix the deployment 40
lukaszgryglicki Feb 5, 2025
c1d6b19
Try to fix the deployment 41
lukaszgryglicki Feb 5, 2025
78d4784
Downgrade serverless version
csavulalfx Feb 5, 2025
176bdc3
Merge pull request #4571 from communitybridge/feat/downgrade-serverle…
csavulalfx Feb 5, 2025
654e572
Try to fix the deployment 42
lukaszgryglicki Feb 5, 2025
6ca6780
Fix size issue
csavulalfx Feb 5, 2025
90d80a5
Fix size issue
csavulalfx Feb 5, 2025
45963ef
Fix size issue
csavulalfx Feb 5, 2025
b8879f1
Fix size issue
csavulalfx Feb 5, 2025
1a7c465
Fix size issue
csavulalfx Feb 5, 2025
7e2d3d1
Merge pull request #4572 from communitybridge/feat/fix-golang-size
csavulalfx Feb 5, 2025
5f8422b
Fix size issue
csavulalfx Feb 5, 2025
d7ff6a1
Merge pull request #4573 from communitybridge/feat/fix-golang-size
csavulalfx Feb 5, 2025
c39cb22
Try to fix the deployment 43
lukaszgryglicki Feb 5, 2025
e3b77bb
Try to fix the deployment 44
lukaszgryglicki Feb 5, 2025
6be55b5
Check if CI workflow is fixed
lukaszgryglicki Feb 5, 2025
0072753
Merge pull request #4574 from communitybridge/unicron-check-build-br-ci
lukaszgryglicki Feb 5, 2025
3d71841
Remove no longer needed pdb
lukaszgryglicki Feb 5, 2025
a6c9980
Attempt to fix Python APIs
lukaszgryglicki Feb 6, 2025
d842663
Attempt to fix Python APIs 2
lukaszgryglicki Feb 6, 2025
24483df
Attempt to fix Python APIs 3
lukaszgryglicki Feb 6, 2025
e6ea3a5
Attempt to fix Python APIs 4
lukaszgryglicki Feb 6, 2025
c105c09
Testing all Py API after libs update
lukaszgryglicki Feb 6, 2025
c36bb78
Quick fix?
lukaszgryglicki Feb 6, 2025
4bc8ac9
Testing all Py API after libs update 2
lukaszgryglicki Feb 11, 2025
871101f
Scan utils
lukaszgryglicki Feb 11, 2025
8206ee4
Merge branch 'main' into dev
mlehotskylf Feb 11, 2025
2adb6bb
Use cache@v3
lukaszgryglicki Feb 11, 2025
4421f20
Decommision LDAP
lukaszgryglicki Feb 11, 2025
375af59
Decommision LDAP 2
lukaszgryglicki Feb 11, 2025
ee94a9d
gofmt
lukaszgryglicki Feb 11, 2025
3f87d9d
Update yarn scan CIs
lukaszgryglicki Feb 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 20 additions & 15 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,24 @@ jobs:
runs-on: ubuntu-latest
environment: dev
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.20.1'
go-version: '1.22'
- name: Go Version
run: go version
- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'
- name: Setup python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.7'
python-version: '3.11'
cache: 'pip'
- name: Cache Go modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -58,17 +58,25 @@ jobs:
- name: Python Setup
working-directory: cla-backend
run: |
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt

- name: Python Lint
working-directory: cla-backend
run: |
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pylint
pylint cla/*.py || true

- name: Python Test
working-directory: cla-backend
run: |
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pytest py pytest-cov pytest-clarity
pytest "cla/tests" -p no:warnings
env:
PLATFORM_GATEWAY_URL: https://api-gw.dev.platform.linuxfoundation.org
Expand All @@ -79,17 +87,15 @@ jobs:

- name: Go Setup
working-directory: cla-backend-go
run: |
make clean setup
run: make clean setup

- name: Go Dependencies
working-directory: cla-backend-go
run: make deps

- name: Go Swagger Generate
working-directory: cla-backend-go
run: |
make swagger
run: make swagger

- name: Go Build
working-directory: cla-backend-go
Expand All @@ -98,9 +104,8 @@ jobs:

- name: Go Test
working-directory: cla-backend-go
run: |
make test
run: make test

- name: Go Lint
working-directory: cla-backend-go
run: make lint
run: make lint
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
Expand Down
40 changes: 26 additions & 14 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,36 @@ jobs:
runs-on: ubuntu-latest
environment: dev
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.20.1'
go-version: '1.22'

- name: Go Version
run: go version

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'

- name: Setup python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.7'
python-version: '3.11'
cache: 'pip'

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
audience: sts.amazonaws.com
role-to-assume: arn:aws:iam::395594542180:role/github-actions-deploy
aws-region: us-east-1

- name: Cache Go modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -64,19 +70,25 @@ jobs:
- name: Python Setup
working-directory: cla-backend
run: |
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt



- name: Python Lint
working-directory: cla-backend
run: |
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pylint
pylint cla/*.py || true

- name: Python Test
working-directory: cla-backend
run: |
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pytest py pytest-cov pytest-clarity
pytest "cla/tests" -p no:warnings
env:
PLATFORM_GATEWAY_URL: https://api-gw.dev.platform.linuxfoundation.org
Expand Down Expand Up @@ -106,8 +118,7 @@ jobs:

- name: Go Test
working-directory: cla-backend-go
run: |
make test
run: make test

- name: Go Lint
working-directory: cla-backend-go
Expand All @@ -126,7 +137,6 @@ jobs:
cp ../cla-backend-go/bin/zipbuilder-lambda bin/
cp ../cla-backend-go/bin/gitlab-repository-check-lambda bin/


- name: EasyCLA v1 Deployment us-east-1
working-directory: cla-backend
run: |
Expand All @@ -142,6 +152,7 @@ jobs:
if [[ ! -f serverless.yml ]]; then echo "Missing serverless.yml file. Exiting..."; exit 1; fi
if [[ ! -f serverless-authorizer.yml ]]; then echo "Missing serverless-authorizer.yml file. Exiting..."; exit 1; fi
yarn sls deploy --force --stage ${STAGE} --region us-east-1 --verbose

- name: EasyCLA v1 Service Check
run: |
sudo apt install curl jq -y
Expand Down Expand Up @@ -176,14 +187,15 @@ jobs:
echo "Failed to get a successful response from endpoint: ${v3_url}"
exit ${exit_code}
fi

- name: EasyCLA v2 Deployment us-east-2
working-directory: cla-backend-go
run: |
if [[ ! -f bin/backend-aws-lambda ]]; then echo "Missing bin/backend-aws-lambda binary file. Exiting..."; exit 1; fi
if [[ ! -f bin/user-subscribe-lambda ]]; then echo "Missing bin/user-subscribe-lambda binary file. Exiting..."; exit 1; fi
rm -rf ./node_modules/
yarn install
yarn sls deploy --force --stage ${STAGE} --region us-east-2
yarn sls deploy --force --stage ${STAGE} --region us-east-2 --verbose

- name: EasyCLA v2 Service Check
run: |
Expand Down
20 changes: 11 additions & 9 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,21 @@ jobs:
runs-on: ubuntu-latest
environment: prod
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.20.1'
check-latest: true
go-version: '1.22'
- name: Go Version
run: go version
- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'
- name: Setup python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.7'
python-version: '3.11'
cache: 'pip'
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
Expand All @@ -48,7 +47,7 @@ jobs:
role-to-assume: arn:aws:iam::716487311010:role/github-actions-deploy
aws-region: us-east-1
- name: Cache Go modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -67,6 +66,8 @@ jobs:
- name: Python Setup
working-directory: cla-backend
run: |
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt

Expand Down Expand Up @@ -117,6 +118,7 @@ jobs:
if [[ ! -f serverless.yml ]]; then echo "Missing serverless.yml file. Exiting..."; exit 1; fi
if [[ ! -f serverless-authorizer.yml ]]; then echo "Missing serverless-authorizer.yml file. Exiting..."; exit 1; fi
yarn sls deploy --force --stage ${STAGE} --region us-east-1 --verbose

- name: EasyCLA v1 Service Check
run: |
sudo apt install curl jq -y
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.7'
python-version: '3.8'
cache: 'pip'
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
Expand All @@ -48,7 +48,7 @@ jobs:
role-to-assume: arn:aws:iam::844390194980:role/github-actions-deploy
aws-region: us-east-1
- name: Cache Go modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/yarn-scan-backend-go-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'
- name: Setup
run: yarn install
- name: Yarn Audit
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/yarn-scan-backend-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'
- name: Setup
run: yarn install
- name: Yarn Audit
Expand Down
7 changes: 1 addition & 6 deletions cla-backend-go/cmd/dynamo_events_lambda/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,7 @@ func init() {
githubOrganizationsService := github_organizations.NewService(githubOrganizationsRepo, repositoriesRepo, projectClaGroupRepo)
repositoriesService := repositories.NewService(repositoriesRepo, githubOrganizationsRepo, projectClaGroupRepo)

gerritService := gerrits.NewService(gerritRepo, &gerrits.LFGroup{
LfBaseURL: configFile.LFGroup.ClientURL,
ClientID: configFile.LFGroup.ClientID,
ClientSecret: configFile.LFGroup.ClientSecret,
RefreshToken: configFile.LFGroup.RefreshToken,
})
gerritService := gerrits.NewService(gerritRepo)
// Services
projectService := service.NewService(projectRepo, repositoriesRepo, gerritRepo, projectClaGroupRepo, usersRepo)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,7 @@ func Handler(ctx context.Context) error {
v1ProjectClaGroupRepo,
})

gerritService := gerrits.NewService(gerritRepo, &gerrits.LFGroup{
LfBaseURL: configFile.LFGroup.ClientURL,
ClientID: configFile.LFGroup.ClientID,
ClientSecret: configFile.LFGroup.ClientSecret,
RefreshToken: configFile.LFGroup.RefreshToken,
})
gerritService := gerrits.NewService(gerritRepo)

approvalsTableName := "cla-" + stage + "-approvals"

Expand Down
2 changes: 1 addition & 1 deletion cla-backend-go/cmd/migrate_approval_list/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func init() {
v1ProjectClaGroupRepo,
})
ghOrgRepo = github_organizations.NewRepository(awsSession, stage)
gerritService = gerrits.NewService(gerritsRepo, nil)
gerritService = gerrits.NewService(gerritsRepo)
signatureRepo = signatures.NewRepository(awsSession, stage, companyRepo, usersRepo, eventsService, &ghRepo, ghOrgRepo, gerritService, approvalRepo)

log.Info("initialized repositories\n")
Expand Down
8 changes: 1 addition & 7 deletions cla-backend-go/cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,7 @@ func server(localMode bool) http.Handler {
v1ProjectClaGroupRepo,
})

gerritService := gerrits.NewService(gerritRepo, &gerrits.LFGroup{
LfBaseURL: configFile.LFGroup.ClientURL,
ClientID: configFile.LFGroup.ClientID,
ClientSecret: configFile.LFGroup.ClientSecret,
RefreshToken: configFile.LFGroup.RefreshToken,
EventsService: eventsService,
})
gerritService := gerrits.NewService(gerritRepo)

// Signature repository handler
signaturesRepo := signatures.NewRepository(awsSession, stage, v1CompanyRepo, usersRepo, eventsService, gitV1Repository, githubOrganizationsRepo, gerritService, approvalsRepo)
Expand Down
Loading
Loading