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

Cleanup codebase #3583

Merged
merged 9 commits into from
Nov 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
34 changes: 0 additions & 34 deletions .github/actions/publish-graph-schema/action.yml

This file was deleted.

11 changes: 1 addition & 10 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
pycon-frontend:
- frontend/*

pycon-backend:
backend:
- backend/*

association-backend:
- association-backend/*

association-frontend:
- association-frontend/*

users-backend:
- users-backend/*

gateway:
- gateway/*

infrastructure:
- infrastructure/*

Expand Down
70 changes: 2 additions & 68 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ on:
inputs:
comment-id:
description: 'The comment-id of the slash command'
required: true
required: false
event-number:
description: 'The event-id of the slash command'
required: true
required: false

env:
TF_WORKSPACE: ${{ fromJSON('["pastaporto", "production"]')[github.ref == 'refs/heads/main'] }}
APOLLO_ROVER_VERSION: 0.7.0

jobs:
create-db:
Expand Down Expand Up @@ -68,16 +67,10 @@ jobs:
fail-fast: false
matrix:
service:
- name: gateway
dir: gateway
- name: association-backend
dir: association-backend
- name: pycon-backend
dir: backend
- name: pretix
dir: pretix
- name: cms
dir: cms

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -278,62 +271,3 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}

migrate-association-backend-db:
runs-on: ubuntu-latest
needs: [terraform, wait-aws-update]
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: Migrate Association Backend DB
run: |
aws lambda invoke --function-name ${{ env.TF_WORKSPACE }}-association-backend --cli-binary-format raw-in-base64-out --payload '{ "_cli_command": { "action": "migrate" } }' response.json
cat response.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}

# Upload new schemas to Apollo Studio
update-default-apollo-studio-graph:
runs-on: ubuntu-latest
needs: [terraform, wait-aws-update]
environment:
name: ${{ fromJSON('["pastaporto", "production"]')[github.ref == 'refs/heads/main'] }}

strategy:
fail-fast: false
matrix:
service:
- name: association-backend
url: https://${{ fromJSON('["pastaporto-", ""]')[github.ref == 'refs/heads/main'] }}association-api.python.it/graphql
- name: pycon-backend
url: https://${{ fromJSON('["pastaporto-", ""]')[github.ref == 'refs/heads/main'] }}admin.pycon.it/graphql
- name: cms
url: https://${{ fromJSON('["staging-", ""]')[github.ref == 'refs/heads/main'] }}cms.python.it/graphql/

steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: Cache Apollo Rover
uses: actions/cache@v1
id: cache-rover
with:
path: ~/.rover/bin
key: rover-cache-${{ env.APOLLO_ROVER_VERSION }}
- name: Install Apollo Rover
if: steps.cache-rover.outputs.cache-hit != 'true'
run: curl -sSL https://rover.apollo.dev/nix/v$APOLLO_ROVER_VERSION | sh
- name: Append Apollo Rover to path
run: echo "$HOME/.rover/bin" >> $GITHUB_PATH
- name: Publish schema
uses: ./.github/actions/publish-graph-schema
with:
service-name: ${{ matrix.service.name }}
service-graphql-url: ${{ matrix.service.url }}
apollo-key: ${{ secrets.DEFAULT_APOLLO_KEY }}
graph: default-python-italia
variant: ${{ env.TF_WORKSPACE }}
60 changes: 0 additions & 60 deletions .github/workflows/python-lint.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/rebase-pr.yml

This file was deleted.

9 changes: 0 additions & 9 deletions association-backend/.dockerignore

This file was deleted.

1 change: 0 additions & 1 deletion association-backend/.editorconfig

This file was deleted.

1 change: 0 additions & 1 deletion association-backend/.flake8

This file was deleted.

1 change: 0 additions & 1 deletion association-backend/.isort.cfg

This file was deleted.

35 changes: 0 additions & 35 deletions association-backend/Dockerfile

This file was deleted.

1 change: 0 additions & 1 deletion association-backend/README.md

This file was deleted.

83 changes: 0 additions & 83 deletions association-backend/alembic.ini

This file was deleted.

1 change: 0 additions & 1 deletion association-backend/alembic/README

This file was deleted.

Loading
Loading