-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/accident-notification-procure
- Loading branch information
Showing
26 changed files
with
394 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,11 @@ describe('InternalCaseController - Deliver indictment info to court', () => { | |
{ eventType: EventType.INDICTMENT_CONFIRMED, created: indictmentDate }, | ||
], | ||
defendants: [{ name: 'Test Ákærði', nationalId: '1234567890' }], | ||
prosecutor: { name: 'Test Sækjandi', nationalId: '0101010101' }, | ||
prosecutor: { | ||
name: 'Test Sækjandi', | ||
nationalId: '0101010101', | ||
email: '[email protected]', | ||
}, | ||
} as Case | ||
|
||
let mockCourtService: CourtService | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# BFF Service Troubleshooting Guide | ||
|
||
## Common Issues and Solutions | ||
|
||
- Make sure that you are running the `dev` script and not `start` script. For example when running the service portal you should run: | ||
`yarn dev service-portal` and not `yarn start service-portal`. | ||
|
||
- Make sure to install dependencies and run code generation with the following command: | ||
`yarn install && yarn codegen`. | ||
|
||
- Make sure to login to the correct AWS account and region: | ||
|
||
- Run `aws sso login --profile islandis-dev` to login to the correct AWS account. | ||
|
||
- Not necessary but a nice to have is to have Redis server running: | ||
|
||
- Run `yarn dev-services services-bff` to start Redis server. | ||
- This is necessary if you want the sessions to persist. | ||
|
||
- Make sure that you are not running the same service twice, since you could already be running a service like API. | ||
Lets take `yarn dev application-system-form` as an example. This script starts the following services: | ||
|
||
- `yarn get-secrets application-system-api` | ||
- `yarn nx run application-system-api:dev-services` | ||
- `yarn nx run application-system-api:migrate` | ||
- `yarn nx codegen/backend-schema api` | ||
- `yarn nx run services-user-profile:dev-init` | ||
- `yarn nx run service-portal:start-bff` | ||
- `yarn start application-system-form` | ||
So make sure that you are not running the same service twice. | ||
|
||
- If you are running the service on Windows, we recommend using [WSL2](https://docs.microsoft.com/en-us/windows/wsl/install) for running the services within the repo. | ||
This is because all of the scripts generated by the `infra` package are not tested on Windows and may not work as expected. | ||
|
||
- On macOS, the AirPlay Receiver is listening on the same port as the Redis server, e.g. 7000. Either change the port or disable the AirPlay Receiver. | ||
|
||
- If everything fails, then a good old computer restart might do the trick. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.