-
Notifications
You must be signed in to change notification settings - Fork 7
Read-only mode #450
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
Read-only mode #450
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
853cb34
Add readonly mode support
cb1kenobi 3694db5
Merge branch 'main' into readonly-mode
cb1kenobi 39f63ab
Merge branch 'main' into readonly-mode
cb1kenobi 7164a49
Merge branch 'main' into readonly-mode
cb1kenobi 7f6bf95
Merge branch 'main' into readonly-mode
cb1kenobi 27a5d67
Merge branch 'main' into readonly-mode
cb1kenobi 6f3b6d7
ci(claude): fix yq expression in auth-gate-invariants validator
heskew 700ee19
ci(claude): bump actions/checkout v4.3.1 → v6.0.2 (Node 24)
heskew 67cd3eb
Export function to flush all RocksDB databases, rename env var
cb1kenobi 70c21c7
ci: bump third-party action versions across workflows
heskew d10c861
fix(deps): update all non-major dependencies
renovate[bot] 7825771
fix: Sandbox the component loader tests
dawsontoth deee715
fix: Revert to 21.0.3
dawsontoth 19cfb07
Remove debug
cb1kenobi 940a8c1
Add flushDatabases unit test
cb1kenobi 4a30074
Merge branch 'main' into readonly-mode
cb1kenobi 32ef66a
Formatting
cb1kenobi 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
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 |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| require('../testUtils'); | ||
| const assert = require('assert'); | ||
| const { setupTestDBPath } = require('../testUtils'); | ||
| const { table, flushDatabases } = require('#src/resources/databases'); | ||
| const { setMainIsWorker } = require('#js/server/threads/manageThreads'); | ||
|
|
||
| describe('flushDatabases', () => { | ||
| before(async function () { | ||
| setupTestDBPath(); | ||
| setMainIsWorker(true); | ||
| table({ | ||
| table: 'FlushTest', | ||
| database: 'test', | ||
| attributes: [{ name: 'id', isPrimaryKey: true }], | ||
| }); | ||
| }); | ||
|
|
||
| it('flushes all databases without error', async function () { | ||
| await assert.doesNotReject(() => flushDatabases()); | ||
| }); | ||
| }); |
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.
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.