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

10007 story #4447

Merged
merged 887 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
887 commits
Select commit Hold shift + click to select a range
1995fc8
10007: After 4 unsuccessful attempts at trying to auto-reconnect fail.
Feb 12, 2024
b00fef5
10007: docs
Feb 12, 2024
5888272
10007: WIP Finish Cypress Tests
pixiwyn Feb 12, 2024
ef54d66
Merge branch '10007-story' of github.com:flexion/ef-cms into 10007-story
pixiwyn Feb 12, 2024
0c67207
Merge branch 'staging' of https://github.com/ustaxcourt/ef-cms into 1…
TomElliottFlexion Feb 13, 2024
7811807
10007: allow old callback urls for hosted cognito
TomElliottFlexion Feb 13, 2024
f1cfa92
10007: Remove triggers from local
Feb 13, 2024
8a91c9c
10007: revert lint back to staging
Feb 13, 2024
1c9cf0f
10007: use local storage to force application to open orders in same …
Feb 13, 2024
e76dd1f
10007: docs
Feb 13, 2024
cb95456
10007: throw error if not defined.
Feb 13, 2024
c971c0b
Merge branch '10007-story' of github.com:flexion/ef-cms into 10007-story
Feb 13, 2024
bb34708
10007: docs
Feb 13, 2024
42908ed
10007: docs
Feb 13, 2024
a9a9a8c
10007: remove uneeded test.
Feb 13, 2024
7e5791e
10007: Provide order title when creating a generic order in smoketest
rachelschneiderman Feb 14, 2024
ce74340
10007: Wait for create order page to load before continuing with test…
rachelschneiderman Feb 14, 2024
f22f09e
Merge branch '10007-story' of github.com:flexion/ef-cms into 10007-story
Feb 14, 2024
03fd099
10007: remove cognito hosted UI
Feb 14, 2024
e4f17fa
10007: docs
Feb 14, 2024
ce0ff06
10007: Remove step that customizes Cognito UI since we don't host a c…
Feb 14, 2024
6571bc9
10007: Convert set maintenance mode script to typescript, temp update…
Feb 14, 2024
c1d46be
10007: make deploy rely on maintenance mode
Feb 14, 2024
73cf460
10007: Don't setup test users when deploying to lower env since maint…
Feb 14, 2024
92d7605
10007: Do not send messages from the worker back to the client.
Feb 14, 2024
b71f9cc
10007: Disable load tests.
Feb 14, 2024
7938161
10007: docs
Feb 15, 2024
e7b324d
10007: test socket backoff...
TomElliottFlexion Feb 15, 2024
dab0b51
Merge branch 'staging' of https://github.com/ustaxcourt/ef-cms into 1…
rachelschneiderman Feb 15, 2024
70f9de4
10007: Update e-access cypress test for petitioner, add cypress selector
rachelschneiderman Feb 15, 2024
f0a9022
10007: Update todos and deployment/testing notes
rachelschneiderman Feb 15, 2024
c05e3ff
10007: Combine test into one, add more test selectors
rachelschneiderman Feb 15, 2024
5b9556a
Merge branch 'staging' into 10007-story
rachelschneiderman Feb 15, 2024
4bebcb7
10007: Add more cypress tests
rachelschneiderman Feb 15, 2024
1fce773
Merge branch '10007-story' of https://github.com/flexion/ef-cms into …
rachelschneiderman Feb 15, 2024
d801f5b
10007: WIP practitioner section of admissions-clerk-grants-e-access
TomElliottFlexion Feb 16, 2024
36f0a13
10007: typo must be fixed in code as well as test
TomElliottFlexion Feb 16, 2024
fc3239b
10007: finish admissions clerk grants e access cypress test
Feb 16, 2024
f5e41d5
Merge branch 'staging' into 10007-story
TomElliottFlexion Feb 16, 2024
dd80dad
10007: Ignore scripts/dynamo/set-maintenance-mode.ts in test coverage
pixiwyn Feb 16, 2024
4a80d76
10007: move cypress tests that create accounts to readonly smoktests;…
pixiwyn Feb 16, 2024
6039d48
10007: Grammar changes
rachelschneiderman Feb 16, 2024
9e66280
Merge branch '10007-story' of https://github.com/flexion/ef-cms into …
rachelschneiderman Feb 16, 2024
11c7e43
10007: Removing tests that were moved from cerebral integration to cy…
rachelschneiderman Feb 16, 2024
f2b2995
Merge branch '10007-story' of github.com:flexion/ef-cms into 10007-story
pixiwyn Feb 16, 2024
e8d9d70
10007: revert attempts to run read only smoketests locally
pixiwyn Feb 16, 2024
a7ea8cd
10007: refactor tests to single describe. GHERKIN syntax above tests
Feb 16, 2024
4947929
10007: refactor tests to single describe. GHERKIN syntax above tests
Feb 16, 2024
28b866f
10007: refactor tests to single describe. GHERKIN syntax above tests
Feb 16, 2024
4a597ac
10007: refactor tests to single describe. GHERKIN syntax above tests
Feb 16, 2024
959d8a5
10007: refactor tests to single describe. GHERKIN syntax above tests
Feb 16, 2024
19dfba7
10007: only delete cypress test dynamo records when the user record e…
TomElliottFlexion Feb 19, 2024
d73af00
10007: Create a batchwrite script for cypress
Feb 19, 2024
a10e79d
10007: remove unused variable
Feb 19, 2024
45a8906
10007: remove global unused constant
Feb 19, 2024
f53aa43
10007: remove global unused variable
Feb 19, 2024
6701a36
10007: remove lister for cognito triggers on local
Feb 19, 2024
d0be6c3
10007: rename initialize to queueWork
Feb 19, 2024
79117f7
10007: Throw error if authentication does not return all of the tokens
Feb 19, 2024
666c5af
10007: Delete unused function. Update name function which update pend…
Feb 19, 2024
bd5493d
10007: Remove local return of forgot password code as it is unused.
Feb 19, 2024
5aa2caa
10007: Add check to verify that when logging in via cognito tokens ar…
Feb 19, 2024
b5f5536
10007: use applicationContext env variables
Feb 19, 2024
236113b
10007: docs
Feb 19, 2024
2c75ae7
10007: WIP refactor forgotpassword to use cognito codes instead of ge…
Feb 20, 2024
c249292
Merge branch 'staging' of https://github.com/ustaxcourt/ef-cms into 1…
TomElliottFlexion Feb 20, 2024
c870ab3
10007: small test fix
TomElliottFlexion Feb 20, 2024
361663f
Merge branch '10007-forgot-password-cognito-code' of https://github.c…
TomElliottFlexion Feb 20, 2024
4e75ef4
10007: WIP, new forgot password code
TomElliottFlexion Feb 20, 2024
ba88079
10007: Update email sent by cognito when user requests to reset their…
Feb 20, 2024
6f04e88
10007: bug investigation
TomElliottFlexion Feb 20, 2024
baae6fc
10007: Remove extra period, set email subject correctly
rachelschneiderman Feb 20, 2024
6b2a68c
10007: Added cypress test and new potential solution for bug
rachelschneiderman Feb 20, 2024
7d98b85
10007: Make password login work on deployed login
Feb 21, 2024
4f24f54
10007: unit test fixes
TomElliottFlexion Feb 21, 2024
076bf42
10007: docs
Feb 21, 2024
360ab39
Merge branch '10007-story' of github.com:flexion/ef-cms into 10007-story
Feb 21, 2024
28dac94
10007: docs
Feb 21, 2024
8e790fc
10007: add todo cleanups
Feb 21, 2024
9fb799b
10007: docs
Feb 21, 2024
1c63ffc
10007: Remove autofill from browsers when resetting passwords
Feb 21, 2024
09755fd
10007: Move forgot-password to only be run locally as we cannot get t…
Feb 21, 2024
c09ff92
10007: Text changes to uncconfirmed modal
rachelschneiderman Feb 21, 2024
b780fe7
10007: cover more lines in unit test
TomElliottFlexion Feb 21, 2024
ec148ef
10007: Update tests and add test selector
rachelschneiderman Feb 21, 2024
fcc1fd5
10007: Fixing unit tests and adding test coverage
rachelschneiderman Feb 21, 2024
8ba7da2
10007: WIP update forgot password cypress tests for new flow.
Feb 21, 2024
c247fe7
10007: Rename unconfirmed to unverified
rachelschneiderman Feb 21, 2024
24d8901
10007: WIP Remove get forgot password code from cypress and web-api
Feb 21, 2024
fda303b
10007: Rename unconfirmed to unverified
rachelschneiderman Feb 21, 2024
3f55317
10007: Remove getForgotPasswordCode
Feb 21, 2024
42c4e07
Merge branch '10007-story-account-unconfirmed-bug' of https://github.…
rachelschneiderman Feb 21, 2024
777098d
Merge branch '10007-story' of github.com:flexion/ef-cms into 10007-story
Feb 21, 2024
f953645
10007: Fixing flipped boolean
rachelschneiderman Feb 21, 2024
cb9c7bb
10007: Remove todo and add context around error handling
Feb 21, 2024
67382a9
10007: update changePasswordHelper unit test
TomElliottFlexion Feb 21, 2024
a462412
Merge branch '10007-story' of https://github.com/flexion/ef-cms into …
TomElliottFlexion Feb 21, 2024
f61ff6e
10007: Rename path in sequence, check if account is unconfirmed inste…
rachelschneiderman Feb 21, 2024
e69ff33
Update cypress/cypress-smoketests/integration/admissions-clerk-grants…
rachelschneiderman Feb 21, 2024
7550160
10007: fixing unit tests
rachelschneiderman Feb 21, 2024
5a941b0
Merge branch '10007-story-account-unconfirmed-bug' of https://github.…
rachelschneiderman Feb 21, 2024
ef7590c
10007: Update forgot password code with new styles, update notificati…
Feb 21, 2024
73c1685
10007: Update task list
Feb 21, 2024
2eb3972
Merge branch '10007-story' of github.com:flexion/ef-cms into 10007-story
Feb 21, 2024
782d378
10007: Destructure isEmailAvailable, fix tests
Feb 21, 2024
ac910ab
Merge pull request #10269 from flexion/10007-story-account-unconfirme…
rachelschneiderman Feb 21, 2024
c7f48da
10007: suppress cypress logs on CI globally in config file
Feb 21, 2024
6c8430f
Merge branch '10007-story' of github.com:flexion/ef-cms into 10007-story
Feb 21, 2024
5e40b24
10007: docs
Feb 21, 2024
bf8a53f
10007: add types
Feb 21, 2024
2841e56
10007: Update associated case Worker to only accept a single docket n…
Feb 21, 2024
1a1b1bc
10007: remove return value as it is unused.
Feb 22, 2024
1e43365
updateAssociatedCaseWorker unit test
TomElliottFlexion Feb 22, 2024
12ff52b
10007: flaky cypress test due to login.
rachelschneiderman Feb 22, 2024
5470a83
10007: remove pa11y test that checks for CI element in DOM
rachelschneiderman Feb 22, 2024
b588f7d
10007: remove pa11y smoketests because we cover smoketests with cypre…
rachelschneiderman Feb 22, 2024
a8f78fd
10007: PR review tweaks, notes
TomElliottFlexion Feb 22, 2024
42e77d4
Merge branch '10007-story' of https://github.com/flexion/ef-cms into …
TomElliottFlexion Feb 22, 2024
c47425f
10007: Move integration test to cypress
rachelschneiderman Feb 22, 2024
30696b1
Merge branch 'staging' into 10007-story
rachelschneiderman Feb 23, 2024
bb23599
10007: Remove integration test that has been replaced by cypress
rachelschneiderman Feb 23, 2024
c0dac92
Merge branch '10007-story' of https://github.com/flexion/ef-cms into …
rachelschneiderman Feb 23, 2024
ac55c60
10007: missing unit tests
TomElliottFlexion Feb 23, 2024
7b1fa05
Merge branch 'staging' into 10007-story
rachelschneiderman Feb 23, 2024
06a8370
Merge branch '10007-story' of https://github.com/flexion/ef-cms into …
TomElliottFlexion Feb 23, 2024
3ec0663
Merge branch 'staging' into 10007-story
rachelschneiderman Feb 23, 2024
56b41ef
10007: Remove integration test that has been replaced by cypress
rachelschneiderman Feb 23, 2024
01bf12f
10007: unit test for confirmation code persistence methods
TomElliottFlexion Feb 23, 2024
84a8285
Merge branch '10007-story' of https://github.com/flexion/ef-cms into …
rachelschneiderman Feb 23, 2024
91ac036
10007: updated email cypress smoketest only runs on circle
TomElliottFlexion Feb 23, 2024
13bd70c
10007: Update logger to check all keys for anything containing Password
Feb 23, 2024
958f14f
Merge branch 'staging' of https://github.com/ustaxcourt/ef-cms into 1…
rachelschneiderman Feb 26, 2024
c9845b0
10007: Add error handling for too many password attempt logins
Feb 26, 2024
0cbc3ff
10007: docs
Feb 26, 2024
2110e69
10007: add unit tests for too many failed attempts
Feb 26, 2024
c813d27
Merge branch '10007-story' of github.com:flexion/ef-cms into 10007-story
Feb 26, 2024
d65d1d2
10007: docs
Feb 26, 2024
beb1511
10007: fix unit test after forgot password refactoring
TomElliottFlexion Feb 26, 2024
3981aa6
10007: don't forget about forgot password
TomElliottFlexion Feb 26, 2024
1368eed
10007: Rename cypress login helper
rachelschneiderman Feb 26, 2024
9e8705c
Merge branch '10007-story' of https://github.com/flexion/ef-cms into …
rachelschneiderman Feb 26, 2024
3c8b224
10007: add explicit wait for email to update
Feb 26, 2024
2aed1a3
Merge branch '10007-story' of github.com:flexion/ef-cms into 10007-story
Feb 26, 2024
c518f9f
10007: Rename login helper, make messages test more stable
rachelschneiderman Feb 26, 2024
7ac21a4
Merge branch '10007-story' of https://github.com/flexion/ef-cms into …
rachelschneiderman Feb 26, 2024
493198c
10007: move code to authentication form
TomElliottFlexion Feb 26, 2024
9568943
10007: remove flakey pa11y test
TomElliottFlexion Feb 26, 2024
c4fb666
10007: Login with the same petitions clerk user as the one that sent …
rachelschneiderman Feb 26, 2024
355f8a8
Merge branch '10007-story' of https://github.com/flexion/ef-cms into …
rachelschneiderman Feb 26, 2024
eebbd6d
10007: merge code expired and general error paths for forgot pass
Feb 26, 2024
88f0f62
10007: converge on environment variables.
Feb 26, 2024
6542cca
10007: UX feedback, minor consistency tweaks to create petitioner acc…
TomElliottFlexion Feb 26, 2024
e9f09da
10007: Adding types
Feb 26, 2024
af017c2
10007: Remove unecessary array wrap
Feb 26, 2024
5cf3334
Merge branch '10007-story' of github.com:flexion/ef-cms into 10007-story
Feb 26, 2024
34ce768
10007: add line break to email
TomElliottFlexion Feb 26, 2024
c7facf5
10007: update feature flag tests
Feb 27, 2024
25d2521
10007: remove unecessary arrays
Feb 27, 2024
ca03f79
10007: remove socket sequence that is unused.
Feb 27, 2024
05503eb
10007: update casing. Update log in word.
Feb 27, 2024
bdacdf1
10007: docs
Feb 27, 2024
ec36046
10007: WIP one header for each site
Feb 27, 2024
faafbfe
Merge branch 'staging' into 10007-story
rachelschneiderman Feb 27, 2024
5dd1148
10007: minor styling
Feb 27, 2024
6a054ee
Merge branch '10007-story' of github.com:flexion/ef-cms into 10007-story
Feb 27, 2024
155ddde
10007: docs
Feb 27, 2024
3f5ade1
10007: change type so that we do not need inbetween constants
Feb 27, 2024
6ca8eef
Merge branch 'staging' into 10007-story
rachelschneiderman Feb 28, 2024
3f6a514
10007: docs
Feb 28, 2024
11d83b2
10007: Update emails to have a pretty name. When viewed from the inbo…
Feb 28, 2024
ddbc59c
Merge branch '10007-story' of github.com:flexion/ef-cms into 10007-story
Feb 28, 2024
d5047c4
10007: docs
Feb 28, 2024
71ea164
10007: update default
Feb 28, 2024
bdce8b5
Merge branch 'staging' into 10007-story
rachelschneiderman Feb 28, 2024
777e078
10007: Add pa11y test for forgot password and reset password pages, a…
rachelschneiderman Feb 28, 2024
7b6e255
Merge branch '10007-story' of https://github.com/flexion/ef-cms into …
rachelschneiderman Feb 28, 2024
375f5bc
10007: docs
Feb 28, 2024
e09dd10
10007: Update padding for Create Petitioner Account per UX Feedback
pixiwyn Feb 28, 2024
6285949
Merge branch '10007-story' of github.com:flexion/ef-cms into 10007-story
pixiwyn Feb 28, 2024
b1ca295
10007: docs
Feb 28, 2024
f35a2e9
Merge branch '10007-story' of github.com:flexion/ef-cms into 10007-story
Feb 28, 2024
dda20c1
10007: Update to use test selector instead of id
rachelschneiderman Feb 28, 2024
ad67ca4
Merge branch '10007-story' of https://github.com/flexion/ef-cms into …
rachelschneiderman Feb 28, 2024
ed3ed9d
10007: update task list
rachelschneiderman Feb 28, 2024
d3498c8
Merge branch 'staging' into 10007-story
rachelschneiderman Feb 28, 2024
9bfb141
10007: Unify how cypress gets environment variables between node and …
Feb 28, 2024
99e4b80
Merge branch '10007-story' of github.com:flexion/ef-cms into 10007-story
Feb 28, 2024
00f8375
10007: Add temp password for practitioner when creating account if no…
Feb 28, 2024
c1b4e3e
10007: docs
Feb 28, 2024
74b11dd
Merge branch 'staging' into 10007-story
rachelschneiderman Feb 29, 2024
8045cc9
10007: Change environment variable name since apparently CYPRESS_ENV …
rachelschneiderman Feb 29, 2024
dbc038e
10007: remove unused cypress functions
Feb 29, 2024
aedcd37
Merge branch '10007-story' of github.com:flexion/ef-cms into 10007-story
Feb 29, 2024
6a76595
10007: remove public siteurl in favor of cypress environment.
Feb 29, 2024
2316288
10007: docs
Feb 29, 2024
605e0bb
10007: Update task list
Feb 29, 2024
16d9ea3
10007: Don't run loadtests during prod deploy of 10007 since we will …
Feb 29, 2024
3157ce3
Merge branch 'staging' of github.com:ustaxcourt/ef-cms into 10007-story
Mar 4, 2024
4cc4ea4
10007: Unset token when the user logs out
pixiwyn Mar 4, 2024
106575d
Remove clear from Warning Notification on Create Petitioner Account &…
pixiwyn Mar 4, 2024
3028337
10007: Update Regex for hasNoLeadingOrTrailingSpace to allow spaces i…
pixiwyn Mar 4, 2024
a2d931b
10007: Update Forgot, Pending, and Account Verification Email Subject…
pixiwyn Mar 4, 2024
f80ef57
Merge branch 'staging' of https://github.com/ustaxcourt/ef-cms into 1…
rachelschneiderman Mar 4, 2024
4732f84
10007: Allows space to function as special character + finished email…
pixiwyn Mar 4, 2024
3ff1159
Merge branch '10007-story' of github.com:flexion/ef-cms into 10007-story
pixiwyn Mar 4, 2024
12602ea
Merge branch '10007-story' of github.com:flexion/ef-cms into 10007-co…
pixiwyn Mar 4, 2024
66dbcd1
10007: WIP update header text to not show if logged in
pixiwyn Mar 4, 2024
e11e13d
10007: Don't clear auth state until processing is done to prevent cod…
rachelschneiderman Mar 4, 2024
98b9305
Merge branch '10007-story' of https://github.com/flexion/ef-cms into …
rachelschneiderman Mar 4, 2024
bd9c7ef
10007: Deleted password test that is covered by cypress tests, fixed …
rachelschneiderman Mar 4, 2024
caee028
10007: Attempt to use single header for Client Application
pixiwyn Mar 4, 2024
eb0430b
Merge pull request #10279 from flexion/10007-combine-headers
pixiwyn Mar 5, 2024
e253e39
10007: Add email to what's being logged and indexed for easier searching
rachelschneiderman Mar 5, 2024
08f83e2
Merge branch '10007-story' of https://github.com/flexion/ef-cms into …
rachelschneiderman Mar 5, 2024
331c5a2
10007: Update Verify Pending Email Error Text
pixiwyn Mar 5, 2024
c667239
10007: Add ENV=local to local client build step
pixiwyn Mar 5, 2024
47b8940
10007: Add expiration time explanatory text to pending email verifica…
rachelschneiderman Mar 6, 2024
afbb5fa
Merge branch '10007-story' of https://github.com/flexion/ef-cms into …
rachelschneiderman Mar 6, 2024
c78f3b7
Merge branch 'staging' of https://github.com/ustaxcourt/ef-cms into 1…
rachelschneiderman Mar 6, 2024
86016c0
Merge branch 'staging' of https://github.com/ustaxcourt/ef-cms into 1…
rachelschneiderman Mar 6, 2024
51aff9b
10007: minor formatting, remove unused function
rachelschneiderman Mar 7, 2024
6a5ec43
10007: Use uswds built in styles for text wrap in header, custom css …
rachelschneiderman Mar 7, 2024
3934b87
Merge branch 'staging' into 10007-story
rachelschneiderman Mar 7, 2024
abc84a0
Merge branch 'staging' into 10007-story
rachelschneiderman Mar 7, 2024
163e590
10007: Update Account Creation Email Template and resolve issue with …
rachelschneiderman Mar 7, 2024
8aba8cf
Merge branch '10007-story' of https://github.com/flexion/ef-cms into …
rachelschneiderman Mar 7, 2024
993b1db
10007: Fix issue with request new forgotten password not reloading pa…
rachelschneiderman Mar 7, 2024
4f9f964
10007: fixing unit test
rachelschneiderman Mar 7, 2024
6da5451
10007: add testid for resend forgot password code and extend cyress t…
rachelschneiderman Mar 7, 2024
3cfb7f8
10007: add log for when the user clicks on verify pending email twice.
rachelschneiderman Mar 7, 2024
29adcca
10007: WIP
rachelschneiderman Mar 7, 2024
0d291c3
devex: convert rotate-info-indices lambda webpack config file to es6-…
jimlerza Mar 7, 2024
fd33fcb
devex: convert rotate-info-indices lambda webpack config to typescript
jimlerza Mar 7, 2024
b5f4de8
devex: convert rotate-info-indices lambda webpack config to typescript
jimlerza Mar 7, 2024
dee096b
10007: Resend temporary password if expired
Mar 7, 2024
48813f7
10007: Rethrow error in case it is not dealt with by helper function
Mar 7, 2024
7e4c553
10007: Update messaging when user attempts to log in with expired tem…
Mar 7, 2024
72b4d3d
Merge branch 'devex-fix-rotate-info-indices-config' of github.com:ust…
Mar 7, 2024
7cf37a1
10007: Loading spinner should display for interstitial page as long a…
rachelschneiderman Mar 8, 2024
59aa274
Merge branch 'staging' of https://github.com/ustaxcourt/ef-cms into 1…
rachelschneiderman Mar 8, 2024
788a950
Merge branch 'staging' of https://github.com/ustaxcourt/ef-cms into 1…
rachelschneiderman Mar 11, 2024
2b4b47c
10007: Add new line at end of files per feedback
pixiwyn Mar 11, 2024
acb10d2
10007: PR comments
pixiwyn Mar 11, 2024
b75ad2c
10007: Update import to fix build
pixiwyn Mar 11, 2024
6772477
10007: remove left overs with delay and sort imports
pixiwyn Mar 11, 2024
5613090
10007: Check ttl before returning account confirmation code since Dyn…
pixiwyn Mar 11, 2024
f154be0
10007: Return error string per feedback
pixiwyn Mar 11, 2024
dbe2c5b
10007: Fixing ttl check in get account confirmation code
rachelschneiderman Mar 11, 2024
b059914
10007: PR feedback
rachelschneiderman Mar 12, 2024
898675a
10007: PR feedback
rachelschneiderman Mar 12, 2024
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
  •  
  •  
  •  
184 changes: 115 additions & 69 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,43 +143,43 @@ jobs:
name: Setup Elasticsearch Index Settings
command: |
./web-api/setup-elasticsearch-index.sh $ENV
- run:
name: Admin User Setup
command: |
if [ "${CIRCLE_BRANCH}" != "prod" ] && [ "$DEPLOY_EMPTY_PERSISTENCE" != "true" ]; then
npx ts-node --transpile-only scripts/user/setup-admin.ts
else
echo "skipping…"
fi
- run:
name: Test Users Setup
command: |
if [ "${CIRCLE_BRANCH}" != "prod" ] && [ "$DEPLOY_EMPTY_PERSISTENCE" != "true" ]; then
./scripts/user/setup-test-users.sh $ENV
else
echo "skipping…"
fi
- run:
name: Judge Users Setup
environment:
FILE_NAME: ./scripts/circleci/judge/judge_users.csv
command: |
if [ "${CIRCLE_BRANCH}" == "prod" ] || [ "$DEPLOY_EMPTY_PERSISTENCE" == "true" ]; then
echo "skipping…"
exit 0
fi
if [ "${CIRCLE_BRANCH}" == "test" ]; then
SOURCE_DOMAIN=$(./scripts/elasticsearch/get-source-elasticsearch.sh "${ENV}")
ELASTICSEARCH_ENDPOINT=$(aws es describe-elasticsearch-domain \
--domain-name "${SOURCE_DOMAIN}" \
--region "us-east-1" \
--query 'DomainStatus.Endpoint' \
--output text)
export ELASTICSEARCH_ENDPOINT="$ELASTICSEARCH_ENDPOINT"
npx ts-node --transpile-only ./scripts/user/setup-glued-judges.ts
else
./scripts/circleci/judge/bulk-import-judge-users.sh
fi
# - run: TODO 10007 Cleanup: Put this step back after 10007 has been deployed
# name: Admin User Setup
# command: |
# if [ "${CIRCLE_BRANCH}" != "prod" ] && [ "$DEPLOY_EMPTY_PERSISTENCE" != "true" ]; then
# npx ts-node --transpile-only scripts/user/setup-admin.ts
# else
# echo "skipping…"
# fi
# - run:
# name: Test Users Setup
# command: |
# if [ "${CIRCLE_BRANCH}" != "prod" ] && [ "$DEPLOY_EMPTY_PERSISTENCE" != "true" ]; then
# ./scripts/user/setup-test-users.sh $ENV
# else
# echo "skipping…"
# fi
# - run:
# name: Judge Users Setup
# environment:
# FILE_NAME: ./scripts/circleci/judge/judge_users.csv
# command: |
# if [ "${CIRCLE_BRANCH}" == "prod" ] || [ "$DEPLOY_EMPTY_PERSISTENCE" == "true" ]; then
# echo "skipping…"
# exit 0
# fi
# if [ "${CIRCLE_BRANCH}" == "test" ]; then
# SOURCE_DOMAIN=$(./scripts/elasticsearch/get-source-elasticsearch.sh "${ENV}")
# ELASTICSEARCH_ENDPOINT=$(aws es describe-elasticsearch-domain \
# --domain-name "${SOURCE_DOMAIN}" \
# --region "us-east-1" \
# --query 'DomainStatus.Endpoint' \
# --output text)
# export ELASTICSEARCH_ENDPOINT="$ELASTICSEARCH_ENDPOINT"
# npx ts-node --transpile-only ./scripts/user/setup-glued-judges.ts
# else
# ./scripts/circleci/judge/bulk-import-judge-users.sh
# fi
- run:
name: 'Deploy - Web Client - S3'
command: |
Expand All @@ -188,10 +188,6 @@ jobs:
name: 'Deploy - Public Web Client - S3'
command: |
./web-client/deploy-public.sh
- run:
name: 'Deploy - Web API - Cognito Customize'
command: |
cd web-api && ./setup-cognito-ui.sh $ENV
- run:
name: 'Deploy - Authorizer Smoke Tests'
command: |
Expand Down Expand Up @@ -358,15 +354,12 @@ jobs:
name: Setup Env
command: |
./scripts/env/env-for-circle.sh
- run:
name: 'Disable Maintenance Mode'
command: npm run maintenance:disengage $ENV
# - run: TODO 10007 Cleanup: Put this step back after 10007 has been deployed
# name: 'Disable Maintenance Mode'
# command: npm run maintenance:disengage $ENV
- run:
name: 'Cypress Smoke Tests'
command: npm run cypress:smoketests
- run:
name: 'Pa11y Smoke Tests'
command: npm run test:pa11y:smoketests
- store_artifacts:
path: /root/project/cypress/cypress-smoketests/videos/

Expand Down Expand Up @@ -868,6 +861,42 @@ jobs:
command: |
npm run destroy:glue-cron -- $ENV

engage-maintenance-mode: # TODO 10007 Cleanup: Remove after 10007 has been deployed to ustc/prod
docker:
- image: *efcms-docker-image
aws_auth:
aws_access_key_id: $AWS_ACCESS_KEY_ID
aws_secret_access_key: $AWS_SECRET_ACCESS_KEY
resource_class: medium
steps:
- git-shallow-clone/checkout
- npm-install
- run:
name: Setup Env
command: |
./scripts/env/env-for-circle.sh
- run:
name: 'Engage Maintenance Mode'
command: npm run maintenance:engage $ENV

disengage-maintenance-mode: # TODO 10007 Cleanup: Remove after 10007 has been deployed to ustc/prod
docker:
- image: *efcms-docker-image
aws_auth:
aws_access_key_id: $AWS_ACCESS_KEY_ID
aws_secret_access_key: $AWS_SECRET_ACCESS_KEY
resource_class: medium
steps:
- git-shallow-clone/checkout
- npm-install
- run:
name: Setup Env
command: |
./scripts/env/env-for-circle.sh
- run:
name: 'Disengage Maintenance Mode'
command: npm run maintenance:disengage $ENV

only-prod: &only-prod
context: efcms-<< pipeline.git.branch >>
filters:
Expand Down Expand Up @@ -902,8 +931,12 @@ workflows:
build-and-deploy:
when: << pipeline.parameters.run_build_and_deploy >>
jobs:
- engage-maintenance-mode: # TODO 10007 Cleanup: Remove after 10007 has been deployed to ustc/dev
<<: *only-deployed-lower-environments
- deploy:
<<: *only-deployed-lower-environments
requires:
- engage-maintenance-mode
- migrate:
<<: *only-deployed-lower-environments
requires:
Expand All @@ -926,22 +959,22 @@ workflows:
<<: *only-deployed-lower-environments
requires:
- wait-for-reindex
- smoketests:
<<: *only-deployed-lower-environments
requires:
- disable-reindex-cron
- loadtests:
<<: *only-deployed-lower-environments
requires:
- smoketests
- smoketests-readonly:
<<: *only-deployed-lower-environments
requires:
- loadtests
# - smoketests: # TODO 10007 Cleanup: Add back running readonly smoketests after 10007 has been deployed
# <<: *only-deployed-lower-environments
# requires:
# - disable-reindex-cron
# - loadtests:
# <<: *only-deployed-lower-environments
# requires:
# - disable-reindex-cron
# - smoketests-readonly: # TODO 10007 Cleanup: Add back running readonly smoketests after 10007 has been deployed to ustc/prod
# <<: *only-deployed-lower-environments
# requires:
# - loadtests
- switch-colors:
<<: *only-deployed-lower-environments
requires:
- smoketests-readonly
- disable-reindex-cron
- delete-api-mappings:
<<: *only-deployed-lower-environments
requires:
Expand All @@ -950,12 +983,21 @@ workflows:
<<: *only-deployed-lower-environments
requires:
- switch-colors
- disengage-maintenance-mode: # TODO 10007 Cleanup: Remove after 10007 has been deployed to ustc/dev
<<: *only-deployed-lower-environments
requires:
- cleanup
- delete-api-mappings

build-and-deploy-with-context:
when: << pipeline.parameters.run_build_and_deploy_with_context >>
jobs:
- engage-maintenance-mode: # TODO 10007 Cleanup: Remove after 10007 has been deployed to ustc/prod
<<: *only-prod
- deploy:
<<: *only-prod
requires:
- engage-maintenance-mode
- migrate:
<<: *only-prod
requires:
Expand All @@ -978,18 +1020,18 @@ workflows:
<<: *only-prod
requires:
- wait-for-reindex
- loadtests:
<<: *only-prod
requires:
- disable-reindex-cron
- smoketests-readonly:
<<: *only-prod
requires:
- loadtests
# - loadtests: # TODO 10007 Cleanup: Add back running loadtests after 10007 has been deployed to ustc/prod
# <<: *only-prod
# requires:
# - disable-reindex-cron
# - smoketests-readonly: # TODO 10007 Cleanup: Add back running readonly smoketests after 10007 has been deployed to ustc/prod
# <<: *only-prod
# requires:
# - loadtests
- deploy-switch-colors-cron:
<<: *only-prod
requires:
- smoketests-readonly
- disable-reindex-cron
- wait-for-switch:
<<: *only-prod
type: approval
Expand All @@ -1016,6 +1058,10 @@ workflows:
requires:
- backup-source-dynamo-table
- delete-api-mappings
- disengage-maintenance-mode: # TODO 10007 Cleanup: Remove after 10007 has been deployed to ustc/prod
<<: *only-prod
requires:
- cleanup

build-and-deploy-empty:
when: << pipeline.parameters.run_build_and_deploy_empty >>
Expand Down
8 changes: 2 additions & 6 deletions .cognito/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
"secretAccessKey": "local"
},
"region": "local",
"endpoint": "http://localhost:9997"
"endpoint": "http://localhost:3011"
},
"TokenConfig": {
"IssuerDomain": "http://localhost:9229"
},
"TriggerFunctions": {
"PostConfirmation": "cognito-triggers-sls-dev-PostConfirmation_ConfirmSignUp",
"PostAuthentication": "cognito-triggers-sls-dev-PostAuthentication_Authentication"
},
"LambdaConfig": {
"endpoint": "http://localhost:9997"
"endpoint": "http://localhost:3011"
},
"UserPoolDefaults": {
"UsernameAttributes": ["email"],
Expand Down
Loading
Loading