-
Notifications
You must be signed in to change notification settings - Fork 22
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
feat(access-client): cli and recover #207
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
6ab5192
feat(access-client): cli and recover
hugomrdias f8174dc
chore: fix types
hugomrdias b7f9fe9
feat: add metadata and invocation to d1 and move to mocha
hugomrdias 54ef7bf
chore: lock
hugomrdias 3e01d39
chore: same delegations in d1 and importFromDelegations with metadata…
hugomrdias d55bff6
chore: rebase
hugomrdias 5fb283c
fix: remove duplication on wait for delegation over ws
hugomrdias 0892e0d
chore: feedback
hugomrdias 46d9aa0
chore: types
hugomrdias 68a6291
chore: feedback
hugomrdias 323873d
chore: remove assert from access-api
hugomrdias 9811e4b
chore: lock
hugomrdias 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
6 changes: 6 additions & 0 deletions
6
packages/access-api/migrations/0001_add_metadata_and_invocation_to_spaces.sql
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,6 @@ | ||
-- Migration number: 0001 2022-11-24T11:52:58.174Z | ||
ALTER TABLE "spaces" | ||
ADD COLUMN "metadata" JSON NOT NULL DEFAULT '"{}"'; | ||
|
||
ALTER TABLE "spaces" | ||
ADD COLUMN "invocation" text NOT NULL; |
3 changes: 3 additions & 0 deletions
3
packages/access-api/migrations/0002_add_delegation_column.sql
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,3 @@ | ||
-- Migration number: 0002 2022-11-29T14:41:37.991Z | ||
ALTER TABLE "spaces" | ||
ADD COLUMN "delegation" text DEFAULT NULL; | ||
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 |
---|---|---|
|
@@ -10,8 +10,8 @@ | |
"lint": "tsc --build && eslint '**/*.{js,ts}' && prettier --check '**/*.{js,ts,yml,json}' --ignore-path ../../.gitignore", | ||
"dev": "scripts/cli.js dev", | ||
"build": "scripts/cli.js build", | ||
"check": "tsc --build", | ||
"test": "pnpm build && tsc --build && ava --timeout 10s" | ||
"test": "pnpm build && mocha --bail --timeout 10s -n no-warnings -n experimental-vm-modules", | ||
"test-watch": "pnpm build && mocha --bail --timeout 10s --watch --parallel -n no-warnings -n experimental-vm-modules --watch-files src,test" | ||
}, | ||
"author": "Hugo Dias <[email protected]> (hugodias.me)", | ||
"license": "(Apache-2.0 OR MIT)", | ||
|
@@ -39,16 +39,18 @@ | |
"@sentry/cli": "2.7.0", | ||
"@types/assert": "^1.5.6", | ||
"@types/git-rev-sync": "^2.0.0", | ||
"@types/node": "^18.11.10", | ||
"@types/mocha": "^10.0.1", | ||
"@types/node": "^18.11.9", | ||
"@types/qrcode": "^1.5.0", | ||
"ava": "^5.1.0", | ||
"better-sqlite3": "8.0.1", | ||
"better-sqlite3": "8.0.0", | ||
"buffer": "^6.0.3", | ||
"dotenv": "^16.0.3", | ||
"esbuild": "^0.15.16", | ||
"git-rev-sync": "^3.0.2", | ||
"hd-scripts": "^3.0.2", | ||
"is-subset": "^0.1.1", | ||
"miniflare": "^2.11.0", | ||
"mocha": "^10.1.0", | ||
"p-wait-for": "^5.0.0", | ||
"process": "^0.11.10", | ||
"readable-stream": "^4.2.0", | ||
|
@@ -66,6 +68,9 @@ | |
"jsx": true | ||
} | ||
}, | ||
"env": { | ||
"mocha": true | ||
}, | ||
"globals": { | ||
"VERSION": "readonly", | ||
"COMMITHASH": "readonly", | ||
|
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not Blob type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah it was just easier to do it like this, can we change this in a follow PR when we move to providers and accounts ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#249