This repository has been archived by the owner on Sep 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
Fix/database functions #849
Closed
Closed
Changes from all commits
Commits
Show all changes
160 commits
Select commit
Hold shift + click to select a range
92b5b86
feat: e2e test setup
whilefoo 1e88b4e
refactor: small adjustments
0x4007 d1acd0a
refactor: small adjustments
0x4007 f350a5c
fix(build): remove unused variable
0x4007 fe36b25
feat: add more tests
whilefoo 78bb917
fix: ignore kebab-case in tests
whilefoo b3081cf
feat: added tests
whilefoo db1850f
Merge remote-tracking branch 'upstream/development' into e2e-tests
whilefoo 8fb1bce
feat: more tests
whilefoo 2639a8f
feat: rate limit
whilefoo fc7cdf0
feat: longer timeout
whilefoo 064cdc0
Merge remote-tracking branch 'upstream/development' into e2e-tests
whilefoo 794f793
Merge remote-tracking branch 'upstream/development' into e2e-tests
whilefoo 51bc95f
feat: update tests
whilefoo 35d36ca
Merge branch 'development' into refactor/general
0x4007 5721a06
Delete yarn.lock
0x4007 5e14775
Merge remote-tracking branch 'upstream/development' into e2e-tests
whilefoo 29e2cb4
fix: types
whilefoo 6c66c01
build: create yarn lock
0xcodercrane f89d38b
fix: comment and duplication
0xcodercrane cc89117
feat: workflow
whilefoo 308b6c2
Merge remote-tracking branch 'upstream/development' into e2e-tests
whilefoo 8ba4743
feat: longer delays
whilefoo 4892b69
Merge branch 'feat/cspell' into refactor/general
0x4007 0f87a1a
refactor: `paymentPermitMaxPrice` to `permitMaxPrice`
0x4007 66b3f35
refactor: `maxConcurrentBounties` to `maxConcurrentTasks`
0x4007 751e3d2
fix: defaults
0x4007 db3685b
fix: security related default feature enabled
0x4007 cd3c4b2
refactor: `enableAccessControl` to `publicAccessControl`
0x4007 f067479
refactor: `enableAccessControl` to `publicAccessControl` cleanup
0x4007 80a20dc
refactor: remove "wide" prefix in configs
0x4007 f98a951
refactor: `enableAccessControl` to `publicAccessControl` cleanup
0x4007 7062a04
refactor: evmNetworkId cleanup
0x4007 5f6d28d
refactor: bounty to task
0x4007 e93ff70
Merge commit '5f6d28dea430d669fdc1412bcd46de0dc778961a' into HEAD
0x4007 840620d
refactor: bounties to tasks
0x4007 03466d6
Merge branch 'refactor/bounties-to-tasks' into refactor/general
0x4007 7f374c6
refactor: adjust table
0x4007 3da0c0e
chore: remove telegram weekly update
0x4007 c1d35a2
refactor: some database column renames
0x4007 6f475d8
chore: delete unused actions
0x4007 ea3245d
chore: setup config
0x4007 71bb60a
Merge branch 'refactor/general' into development
0x4007 81f151b
fix: invalid property name
0x4007 f965fff
fix: invalid property name
0x4007 2882f67
fix: invalid property name
0x4007 38a07e0
fix: invalid property name
0x4007 22bbfa4
fix: invalid property name
0x4007 76882c6
fix: small issues in help menu
0x4007 9d18f28
chore: sort config in alphabetical order
0x4007 76fefe2
refactor: update secret name
0x4007 173b650
fix: invalid property name
0x4007 e2b0d93
fix: openai api key read from env
0x4007 c1ef1bc
fix: openai api key local testing
0x4007 d6a729a
fix: openai config
0x4007 66cff1f
Merge branch 'fix/openai-key-config' into development
0x4007 c4be262
Merge branch 'development' into refactor/general
0x4007 a617204
fix: review not implemented
0x4007 0700ba2
Merge branch 'development' into refactor/general
0x4007 57b1664
chore: remove telegram bot related code
0x4007 11fb9ca
Merge branch 'refactor/general' of https://github.com/pavlovcik/ubiqu…
0x4007 c5ec7e7
chore: spellcheck and change to
0x4007 799512b
chore: amountInBigNumber
0x4007 94587b6
refactor: cleanup
0x4007 bca1e33
chore: clean readme
0x4007 c7b7541
fix: help meny
0x4007 2a86ccb
chore: update readme
0x4007 d77dc8d
Merge branch 'development' into refactor/general
0x4007 7c6aee4
fix: bounty to task
0x4007 5e9c4ca
Merge branch 'e2e-tests' into feat/e2e-tests
0x4007 948ad81
fix: merge conflicts
0x4007 d6ab250
feat: upgrade jest to ts native
0x4007 e3daca0
chore: cant get tests to run
0x4007 aa7fd76
chore: reenable all tests
0x4007 8116e70
chore: update readme with a gotcha
0x4007 5fe3707
fix(tests): matching strings
0x4007 ae98452
refactor: update commit message
0x4007 b34e998
Merge remote-tracking branch 'pavlovcik/feat/e2e-tests' into fix/test…
0x4007 e5d00d5
chore: timestamp test
0x4007 99e688d
chore: name e2e ci test
0x4007 b073472
refactor: break apart tests into multiple files
0x4007 c95aef7
refactor: break apart tests into multiple files
0x4007 67d4e44
chore: use git commit hash instead of date in test issue title
0x4007 adddbb1
refactor: rename set and get user functions
0x4007 f318fb6
refactor: issue creation logic
0x4007 a038f3a
chore: comment out allow and start stop tests because they are broken
0x4007 337dc71
Merge remote-tracking branch 'ubiquibot/development' into refactor/ge…
0x4007 977f461
Merge branch 'fix/tests-timestamp' into refactor/general
0x4007 17a7044
docs: update test info
0x4007 8c67475
revert: local config
0x4007 aa87cbe
revert: local config
0x4007 57ecd06
feat(tests): new contributor greeting enabled
0x4007 4b79fa0
chore: delete log-app
0x4007 0752a8d
chore: remove telegram bot code
0x4007 fe238c2
chore: move tests into src
0x4007 0c6aeb3
chore: move tests into src
0x4007 d2e113c
chore: work on making tsconfig more strict start
0x4007 551d48d
fix: tsconfig and remove unused dependency
0x4007 7cbd24f
chore(deps): remove unused
0x4007 1079efc
chore: ignore tsconfig build file
0x4007 35cc059
Merge remote-tracking branch 'pavlovcik/fix/tsconfig' into refactor/g…
0x4007 a3fca96
chore: hide tsbuildinfo
0x4007 bff5d25
chore(supabase): init
0x4007 2a5cb59
chore: generate database types
0x4007 ca5a133
fix: jest
0x4007 031d2ff
fix(database): typings for logging
0x4007 3147c31
chore: delete build file
0x4007 e344a34
chore: make location optional
0x4007 f2c9b31
fix: preserve typings in logger of database
0x4007 3f33c92
chore(types): simplify node id
0x4007 af9098b
chore: ripping everything out from database functions to test and see…
0x4007 7e0a1ce
chore: update database types
0x4007 b348b20
refactor: database client
0x4007 4251c96
feat(tests): user wallet return works
0x4007 264845f
test(wallet): get user wallet string only based on user id
0x4007 295917a
feat: look up wallet set comment url using graphql
0x4007 139ff6f
feat: look up url based on node_id of registered wallet
0x4007 e6fd88a
feat: github node type enum for graphql node ids
0x4007 1e794d8
feat: github node url works
0x4007 e5d3370
chore: init rewrite all database functions
0x4007 79aef02
test: mock context
0x4007 ae1e04d
chore: cleanup
0x4007 0b557e4
fix: access but untested
0x4007 893c265
fix: labels access untested
0x4007 f050dcd
fix(assign): untested
0x4007 680c0c2
refactor: break apart functions in payout
0x4007 9704ffc
refactor: cleanup to reduce build errors
0x4007 72fd988
Merge branch 'development' of https://github.com/ubiquity/ubiquibot i…
0x4007 b8a3bfe
fix: kebab case
0x4007 fb08a77
Merge branch 'refactor/general' of https://github.com/pavlovcik/ubiqu…
0x4007 9e4a6b9
fix: wallet test
0x4007 47d2b52
fix: commands test
0x4007 cdf31ed
chore: types are broken
0x4007 b17327b
refactor: lint errors
0x4007 67c9303
chore: prettier
0x4007 1c83796
feat: label change authorizations
0x4007 977436a
feat: add penalty refactored
0x4007 a4c615b
refactor: set multiplier
0x4007 35146f2
refactor: set multiplier
0x4007 2c6bdb5
refactor(query): trying to go quickly to get things stable
0x4007 ba331e2
refactor: wallet and user registration
0x4007 e1e4f59
refactor: save label change
0x4007 2d57999
refactor: get user permission level
0x4007 59e70b8
fix: type errors
0x4007 e20e638
fix: type errors
0x4007 99d245b
fix: type errors
0x4007 1c99426
fix: type errors
0x4007 eda36e3
fix: type errors
0x4007 5be3203
fix: type errors
0x4007 79b1631
fix(credits): type errors
0x4007 a545e96
fix: all type errors solved
0x4007 5df2579
fix(ci): lint
0x4007 03bd004
chore: rename to kebab case in progress
0x4007 c0756ce
chore: rename to kebab case in progress
0x4007 de87bf0
chore: rename to kebab case in progress
0x4007 97ed659
Update kebab-case.yml
0x4007 cb0842b
feat: source map support
0x4007 6212c3f
fix: bot starts up
0x4007 457f59a
fix(logger): can find
0x4007 503c337
fix(logging): debugging
0x4007 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 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
price-multiplier: 1.5 | ||
# newContributorGreeting: | ||
# enabled: true | ||
# header: "Thank you for contributing to UbiquiBot! Please be sure to set your wallet address before completing your first bounty so that the automatic payout upon task completion will work for you." | ||
# helpMenu: true | ||
# footer: "###### Also please star this repository and [@ubiquity/devpool-directory](https://github.com/ubiquity/devpool-directory/) to show your support. It helps a lot!" | ||
priceMultiplier: 1.5 | ||
newContributorGreeting: | ||
enabled: true | ||
header: "Thank you for contributing to UbiquiBot! Please be sure to set your wallet address before completing your first task so that the automatic payout upon task completion will work for you." | ||
helpMenu: true | ||
footer: "###### Also please star this repository and [@ubiquity/devpool-directory](https://github.com/ubiquity/devpool-directory/) to show your support. It helps a lot!" |
This file was deleted.
Oops, something went wrong.
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,40 @@ | ||
name: Run E2E Tests | ||
|
||
on: | ||
- workflow_dispatch | ||
- push | ||
|
||
jobs: | ||
e2e-test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18.16.0" | ||
|
||
- name: Install | ||
run: yarn install | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- name: Test | ||
env: | ||
LOG_ENVIRONMENT: "production" | ||
SUPABASE_URL: ${{ secrets.SUPABASE_URL }} | ||
SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }} | ||
X25519_PRIVATE_KEY: "QCDb30UHUkwJAGhLWC-R2N0PiEbd4vQY6qH2Wloybyo" | ||
APP_ID: ${{ secrets.APP_ID }} | ||
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | ||
WEBHOOK_PROXY_URL: ${{ secrets.WEBHOOK_PROXY_URL }} | ||
WEBHOOK_SECRET: ${{ secrets.WEBHOOK_SECRET }} | ||
TEST_ORGANIZATION_NAME: ${{ secrets.TEST_ORGANIZATION_NAME }} | ||
TEST_REPOSITORY_NAME: ${{ secrets.TEST_REPOSITORY_NAME }} | ||
TEST_ADMIN_PAT: ${{ secrets.TEST_ADMIN_PAT }} | ||
TEST_OUTSIDE_COLLABORATOR_PAT: ${{ secrets.TEST_OUTSIDE_COLLABORATOR_PAT }} | ||
Comment on lines
+28
to
+39
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These will probably need to be updated as I think I'll use a new database instance to drop all the old unused triggers/functions/enums etc from the old database. |
||
run: "yarn test:e2e" |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -14,4 +14,6 @@ supabase/temp | |
# Local Netlify folder | ||
.netlify | ||
bin | ||
.yarn | ||
.yarn | ||
yarn-error.log | ||
tsconfig.tsbuildinfo |
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.
Update secret