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

10391 dynamo migrations typeorm #5151

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
acca8cd
initial work on typeorm
codyseibert Jul 15, 2024
e63c8d2
10391: setup postgres + type orm
pixiwyn Jul 15, 2024
abc60de
10391: move data-source
pixiwyn Jul 16, 2024
94b7995
10391: move data-source
pixiwyn Jul 16, 2024
d050765
10391: move data-source
pixiwyn Jul 16, 2024
4a5e80a
10391: Add transformNullToUndefined helpers + wrap additional returns…
pixiwyn Jul 16, 2024
6dfcd6f
10391: remove tests + fix mappings
pixiwyn Jul 16, 2024
8d40cd6
10391: Add postgres to cypress
pixiwyn Jul 16, 2024
95fff42
10391: wip add case
pixiwyn Jul 16, 2024
815fa63
10391: wip fix cypress integration tests
pixiwyn Jul 16, 2024
aac5993
10391: wip try to fix e2e cypress so runs
pixiwyn Jul 16, 2024
2022502
Merge branch 'staging' into 10391-dynamo-migrations-typeorm
pixiwyn Jul 16, 2024
852352d
adding a joincolumn on the messages
codyseibert Jul 16, 2024
3eb0c93
turning on logging for now
codyseibert Jul 16, 2024
9bda01b
10391 - working on removing the message index
codyseibert Jul 18, 2024
76d3f28
Merge branch 'staging' into 10391-dynamo-migrations-typeorm
pixiwyn Jul 18, 2024
5036c6d
10391: update so e2e tests run
pixiwyn Jul 18, 2024
fdc3290
10391: fix additional cypress tests
pixiwyn Jul 18, 2024
139c314
10391: Add postgres seed step for integration tests
pixiwyn Jul 18, 2024
1023c0d
10391: wip for rds tf setup
pixiwyn Jul 18, 2024
b0cff43
10391: wip postgres tf
pixiwyn Jul 18, 2024
e0a395a
10391: Prepare for Hosted Env Deployment
pixiwyn Jul 19, 2024
3b99b34
10391: remove console.log of password
pixiwyn Jul 19, 2024
fdef447
10391: wip setup blue/green deployment
pixiwyn Jul 19, 2024
b1957da
10391 - attempt to add public rds certs
codyseibert Jul 22, 2024
fa25462
10391 - switching to use ca instead of cert
codyseibert Jul 22, 2024
ea02501
refactor terraform to use address
codyseibert Jul 22, 2024
53e4f1f
add back the column type annotations in type orm entities and fix loc…
codyseibert Jul 23, 2024
570f84f
10391 - adding index to the column
codyseibert Jul 23, 2024
0d004cc
import the data source promise instead
codyseibert Jul 23, 2024
7062a43
10391: add table name to repo entities
pixiwyn Jul 24, 2024
4615088
10391: rework relationship with message and case
pixiwyn Jul 24, 2024
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
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ jobs:
if [ "$MIGRATE_FLAG" == "true" ]; then
npm run start:migration -- $ENV
fi
- run:
name: Run Postgres Migration
command: |
if [ "$POSTGRES_MIGRATE_FLAG" == "true" ]; then
npm run typeorm:migrations:migrate
fi
- run:
name: Enable Check Migration Status Cron
command: |
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/client-integration-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ jobs:
env:
CI_NODE_TOTAL: ${{ matrix.ci_node_total }}
CI_NODE_INDEX: ${{ matrix.ci_node_index }}
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: example
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -41,6 +53,9 @@ jobs:
comment_on_pr: false
- name: Install Node Dependencies
run: npm ci
- name: Seed Postgres
run: |
npm run seed:postgres
- name: Web Client - Integration Tests Public
run: |
mkdir -p /tmp/web-client
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/client-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ jobs:
env:
CI_NODE_TOTAL: ${{ matrix.ci_node_total }}
CI_NODE_INDEX: ${{ matrix.ci_node_index }}
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: example
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -41,6 +53,9 @@ jobs:
comment_on_pr: false
- name: Install Node Dependencies
run: npm ci
- name: Seed Postgres
run: |
npm run seed:postgres
- name: Web Client - Integration Tests
run: |
mkdir -p /tmp/web-client
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/e2e-cypress-accessibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ jobs:
CI: true
CI_NODE_TOTAL: ${{ matrix.ci_node_total }}
CI_NODE_INDEX: ${{ matrix.ci_node_index }}
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: example
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -36,6 +48,9 @@ jobs:
comment_on_pr: false
- name: Install Node Dependencies
run: npm ci
- name: Seed Postgres
run: |
npm run seed:postgres
- name: Run E2E Cypress
run: |
mkdir -p /tmp/cypress/
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/e2e-cypress-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ jobs:
env:
CI: true
CHECK_DEPLOY_DATE_INTERVAL: 5000
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: example
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -30,6 +42,9 @@ jobs:
comment_on_pr: false
- name: Install Node Dependencies
run: npm ci
- name: Seed Postgres
run: |
npm run seed:postgres
- name: Run E2E Cypress
run: |
mkdir -p /tmp/cypress/
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/e2e-cypress-smoketests-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ jobs:

env:
CI: true
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: example
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -35,6 +47,9 @@ jobs:
comment_on_pr: false
- name: Install Node Dependencies
run: npm ci
- name: Seed Postgres
run: |
npm run seed:postgres
- name: Run E2E Cypress Smoketests
run: |
mkdir -p /tmp/cypress/
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/e2e-cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ jobs:
CI: true
CI_NODE_TOTAL: ${{ matrix.ci_node_total }}
CI_NODE_INDEX: ${{ matrix.ci_node_index }}
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: example
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -36,6 +48,9 @@ jobs:
comment_on_pr: false
- name: Install Node Dependencies
run: npm ci
- name: Seed Postgres
run: |
npm run seed:postgres
- name: Run E2E Cypress
run: |
mkdir -p /tmp/cypress/
Expand Down
6 changes: 5 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
module.exports = {
plugins: ['babel-plugin-cerebral', 'transform-html-import-require-to-string'],
plugins: [
'babel-plugin-cerebral',
'transform-html-import-require-to-string',
['@babel/plugin-proposal-decorators', { version: '2023-11' }],
],
presets: [
[
'@babel/preset-env',
Expand Down
Loading