-
Notifications
You must be signed in to change notification settings - Fork 153
fix: defer reading of database configuration until needed to fix race #1316
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
Merged
Merged
Changes from 13 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
4c54a58
fix: defer import of proxy and service until config file has been set…
kriswest 4655f62
fix: defer read of DB config until needed to fix race + move getAllPr…
kriswest 49338a6
fix: move neDB folder initialisation to occur on first use
kriswest 7430b1a
chore: clean up in index.ts
kriswest 4f56a3d
Merge branch 'main' into 1313-config-race-condition-b
kriswest 139e2dd
test: fixing issues in tests (both existing types issues and caused b…
kriswest 8b2740a
fix: defer import of proxy and service until config file has been set…
kriswest c3c226f
fix: defer read of DB config until needed to fix race + move getAllPr…
kriswest 9a8b2c6
fix: move neDB folder initialisation to occur on first use
kriswest b547479
test: fixing issues in tests (both existing types issues and caused b…
kriswest c5b030e
chore: clean up in index.ts
kriswest 9b1d2df
Merge branch '1313-config-race-condition' of https://natwest.gitlab-d…
kriswest 989e866
Merge branch '1313-config-race-condition-c' into 1313-config-race-con…
kriswest 7defaa0
Apply suggestions from code review
kriswest b4971c1
Apply suggestions from code review
kriswest a5a1d95
Merge branch 'finos:main' into 1313-config-race-condition-b
kriswest 18d51bc
Apply suggestions from code review
kriswest bb8d97a
chore: replace `00000...` string with `EMPTY_COMMIT_HASH`, run `npm r…
jescalada File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1 +1,7 @@ | ||
| import { existsSync, mkdirSync } from 'fs'; | ||
|
|
||
| export const getSessionStore = (): undefined => undefined; | ||
| export const initializeFolders = () => { | ||
| if (!existsSync('./.data')) mkdirSync('./.data'); | ||
| if (!existsSync('./.data/db')) mkdirSync('./.data/db'); | ||
| }; | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.