Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Fix/database functions #849

Closed
wants to merge 160 commits into from
Closed
Show file tree
Hide file tree
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 Aug 20, 2023
1e88b4e
refactor: small adjustments
0x4007 Aug 20, 2023
d1acd0a
refactor: small adjustments
0x4007 Aug 20, 2023
f350a5c
fix(build): remove unused variable
0x4007 Aug 20, 2023
fe36b25
feat: add more tests
whilefoo Aug 22, 2023
78bb917
fix: ignore kebab-case in tests
whilefoo Aug 22, 2023
b3081cf
feat: added tests
whilefoo Aug 23, 2023
db1850f
Merge remote-tracking branch 'upstream/development' into e2e-tests
whilefoo Sep 3, 2023
8fb1bce
feat: more tests
whilefoo Sep 4, 2023
2639a8f
feat: rate limit
whilefoo Sep 9, 2023
fc7cdf0
feat: longer timeout
whilefoo Sep 12, 2023
064cdc0
Merge remote-tracking branch 'upstream/development' into e2e-tests
whilefoo Sep 12, 2023
794f793
Merge remote-tracking branch 'upstream/development' into e2e-tests
whilefoo Sep 12, 2023
51bc95f
feat: update tests
whilefoo Sep 12, 2023
35d36ca
Merge branch 'development' into refactor/general
0x4007 Sep 14, 2023
5721a06
Delete yarn.lock
0x4007 Sep 14, 2023
5e14775
Merge remote-tracking branch 'upstream/development' into e2e-tests
whilefoo Sep 15, 2023
29e2cb4
fix: types
whilefoo Sep 15, 2023
6c66c01
build: create yarn lock
0xcodercrane Sep 17, 2023
f89d38b
fix: comment and duplication
0xcodercrane Sep 18, 2023
cc89117
feat: workflow
whilefoo Sep 18, 2023
308b6c2
Merge remote-tracking branch 'upstream/development' into e2e-tests
whilefoo Sep 24, 2023
8ba4743
feat: longer delays
whilefoo Sep 24, 2023
4892b69
Merge branch 'feat/cspell' into refactor/general
0x4007 Sep 25, 2023
0f87a1a
refactor: `paymentPermitMaxPrice` to `permitMaxPrice`
0x4007 Sep 25, 2023
66b3f35
refactor: `maxConcurrentBounties` to `maxConcurrentTasks`
0x4007 Sep 25, 2023
751e3d2
fix: defaults
0x4007 Sep 25, 2023
db3685b
fix: security related default feature enabled
0x4007 Sep 25, 2023
cd3c4b2
refactor: `enableAccessControl` to `publicAccessControl`
0x4007 Sep 25, 2023
f067479
refactor: `enableAccessControl` to `publicAccessControl` cleanup
0x4007 Sep 25, 2023
80a20dc
refactor: remove "wide" prefix in configs
0x4007 Sep 25, 2023
f98a951
refactor: `enableAccessControl` to `publicAccessControl` cleanup
0x4007 Sep 25, 2023
7062a04
refactor: evmNetworkId cleanup
0x4007 Sep 25, 2023
5f6d28d
refactor: bounty to task
0x4007 Sep 25, 2023
e93ff70
Merge commit '5f6d28dea430d669fdc1412bcd46de0dc778961a' into HEAD
0x4007 Sep 25, 2023
840620d
refactor: bounties to tasks
0x4007 Sep 25, 2023
03466d6
Merge branch 'refactor/bounties-to-tasks' into refactor/general
0x4007 Sep 25, 2023
7f374c6
refactor: adjust table
0x4007 Sep 25, 2023
3da0c0e
chore: remove telegram weekly update
0x4007 Sep 25, 2023
c1d35a2
refactor: some database column renames
0x4007 Sep 25, 2023
6f475d8
chore: delete unused actions
0x4007 Sep 25, 2023
ea3245d
chore: setup config
0x4007 Sep 25, 2023
71bb60a
Merge branch 'refactor/general' into development
0x4007 Sep 25, 2023
81f151b
fix: invalid property name
0x4007 Sep 25, 2023
f965fff
fix: invalid property name
0x4007 Sep 25, 2023
2882f67
fix: invalid property name
0x4007 Sep 25, 2023
38a07e0
fix: invalid property name
0x4007 Sep 25, 2023
22bbfa4
fix: invalid property name
0x4007 Sep 25, 2023
76882c6
fix: small issues in help menu
0x4007 Sep 25, 2023
9d18f28
chore: sort config in alphabetical order
0x4007 Sep 25, 2023
76fefe2
refactor: update secret name
0x4007 Sep 25, 2023
173b650
fix: invalid property name
0x4007 Sep 25, 2023
e2b0d93
fix: openai api key read from env
0x4007 Sep 25, 2023
c1ef1bc
fix: openai api key local testing
0x4007 Sep 25, 2023
d6a729a
fix: openai config
0x4007 Sep 25, 2023
66cff1f
Merge branch 'fix/openai-key-config' into development
0x4007 Sep 25, 2023
c4be262
Merge branch 'development' into refactor/general
0x4007 Sep 25, 2023
a617204
fix: review not implemented
0x4007 Sep 25, 2023
0700ba2
Merge branch 'development' into refactor/general
0x4007 Sep 25, 2023
57b1664
chore: remove telegram bot related code
0x4007 Sep 25, 2023
11fb9ca
Merge branch 'refactor/general' of https://github.com/pavlovcik/ubiqu…
0x4007 Sep 25, 2023
c5ec7e7
chore: spellcheck and change to
0x4007 Sep 25, 2023
799512b
chore: amountInBigNumber
0x4007 Sep 25, 2023
94587b6
refactor: cleanup
0x4007 Sep 25, 2023
bca1e33
chore: clean readme
0x4007 Sep 26, 2023
c7b7541
fix: help meny
0x4007 Sep 26, 2023
2a86ccb
chore: update readme
0x4007 Sep 26, 2023
d77dc8d
Merge branch 'development' into refactor/general
0x4007 Sep 26, 2023
7c6aee4
fix: bounty to task
0x4007 Sep 26, 2023
5e9c4ca
Merge branch 'e2e-tests' into feat/e2e-tests
0x4007 Sep 26, 2023
948ad81
fix: merge conflicts
0x4007 Sep 26, 2023
d6ab250
feat: upgrade jest to ts native
0x4007 Sep 26, 2023
e3daca0
chore: cant get tests to run
0x4007 Sep 26, 2023
aa7fd76
chore: reenable all tests
0x4007 Sep 26, 2023
8116e70
chore: update readme with a gotcha
0x4007 Sep 26, 2023
5fe3707
fix(tests): matching strings
0x4007 Sep 26, 2023
ae98452
refactor: update commit message
0x4007 Sep 26, 2023
b34e998
Merge remote-tracking branch 'pavlovcik/feat/e2e-tests' into fix/test…
0x4007 Sep 26, 2023
e5d00d5
chore: timestamp test
0x4007 Sep 26, 2023
99e688d
chore: name e2e ci test
0x4007 Sep 26, 2023
b073472
refactor: break apart tests into multiple files
0x4007 Sep 26, 2023
c95aef7
refactor: break apart tests into multiple files
0x4007 Sep 26, 2023
67d4e44
chore: use git commit hash instead of date in test issue title
0x4007 Sep 26, 2023
adddbb1
refactor: rename set and get user functions
0x4007 Sep 26, 2023
f318fb6
refactor: issue creation logic
0x4007 Sep 26, 2023
a038f3a
chore: comment out allow and start stop tests because they are broken
0x4007 Sep 26, 2023
337dc71
Merge remote-tracking branch 'ubiquibot/development' into refactor/ge…
0x4007 Sep 26, 2023
977f461
Merge branch 'fix/tests-timestamp' into refactor/general
0x4007 Sep 26, 2023
17a7044
docs: update test info
0x4007 Sep 26, 2023
8c67475
revert: local config
0x4007 Sep 26, 2023
aa87cbe
revert: local config
0x4007 Sep 26, 2023
57ecd06
feat(tests): new contributor greeting enabled
0x4007 Sep 26, 2023
4b79fa0
chore: delete log-app
0x4007 Sep 26, 2023
0752a8d
chore: remove telegram bot code
0x4007 Sep 26, 2023
fe238c2
chore: move tests into src
0x4007 Sep 26, 2023
0c6aeb3
chore: move tests into src
0x4007 Sep 26, 2023
d2e113c
chore: work on making tsconfig more strict start
0x4007 Sep 26, 2023
551d48d
fix: tsconfig and remove unused dependency
0x4007 Sep 26, 2023
7cbd24f
chore(deps): remove unused
0x4007 Sep 26, 2023
1079efc
chore: ignore tsconfig build file
0x4007 Sep 26, 2023
35cc059
Merge remote-tracking branch 'pavlovcik/fix/tsconfig' into refactor/g…
0x4007 Sep 26, 2023
a3fca96
chore: hide tsbuildinfo
0x4007 Sep 26, 2023
bff5d25
chore(supabase): init
0x4007 Sep 26, 2023
2a5cb59
chore: generate database types
0x4007 Sep 27, 2023
ca5a133
fix: jest
0x4007 Sep 27, 2023
031d2ff
fix(database): typings for logging
0x4007 Sep 27, 2023
3147c31
chore: delete build file
0x4007 Sep 27, 2023
e344a34
chore: make location optional
0x4007 Sep 27, 2023
f2c9b31
fix: preserve typings in logger of database
0x4007 Sep 27, 2023
3f33c92
chore(types): simplify node id
0x4007 Sep 27, 2023
af9098b
chore: ripping everything out from database functions to test and see…
0x4007 Sep 27, 2023
7e0a1ce
chore: update database types
0x4007 Sep 28, 2023
b348b20
refactor: database client
0x4007 Oct 3, 2023
4251c96
feat(tests): user wallet return works
0x4007 Oct 4, 2023
264845f
test(wallet): get user wallet string only based on user id
0x4007 Oct 4, 2023
295917a
feat: look up wallet set comment url using graphql
0x4007 Oct 4, 2023
139ff6f
feat: look up url based on node_id of registered wallet
0x4007 Oct 4, 2023
e6fd88a
feat: github node type enum for graphql node ids
0x4007 Oct 4, 2023
1e794d8
feat: github node url works
0x4007 Oct 4, 2023
e5d3370
chore: init rewrite all database functions
0x4007 Oct 4, 2023
79aef02
test: mock context
0x4007 Oct 4, 2023
ae1e04d
chore: cleanup
0x4007 Oct 4, 2023
0b557e4
fix: access but untested
0x4007 Oct 4, 2023
893c265
fix: labels access untested
0x4007 Oct 4, 2023
f050dcd
fix(assign): untested
0x4007 Oct 4, 2023
680c0c2
refactor: break apart functions in payout
0x4007 Oct 4, 2023
9704ffc
refactor: cleanup to reduce build errors
0x4007 Oct 4, 2023
72fd988
Merge branch 'development' of https://github.com/ubiquity/ubiquibot i…
0x4007 Oct 4, 2023
b8a3bfe
fix: kebab case
0x4007 Oct 4, 2023
fb08a77
Merge branch 'refactor/general' of https://github.com/pavlovcik/ubiqu…
0x4007 Oct 4, 2023
9e4a6b9
fix: wallet test
0x4007 Oct 4, 2023
47d2b52
fix: commands test
0x4007 Oct 4, 2023
cdf31ed
chore: types are broken
0x4007 Oct 4, 2023
b17327b
refactor: lint errors
0x4007 Oct 5, 2023
67c9303
chore: prettier
0x4007 Oct 5, 2023
1c83796
feat: label change authorizations
0x4007 Oct 5, 2023
977436a
feat: add penalty refactored
0x4007 Oct 5, 2023
a4c615b
refactor: set multiplier
0x4007 Oct 5, 2023
35146f2
refactor: set multiplier
0x4007 Oct 5, 2023
2c6bdb5
refactor(query): trying to go quickly to get things stable
0x4007 Oct 5, 2023
ba331e2
refactor: wallet and user registration
0x4007 Oct 6, 2023
e1e4f59
refactor: save label change
0x4007 Oct 6, 2023
2d57999
refactor: get user permission level
0x4007 Oct 6, 2023
59e70b8
fix: type errors
0x4007 Oct 6, 2023
e20e638
fix: type errors
0x4007 Oct 6, 2023
99d245b
fix: type errors
0x4007 Oct 6, 2023
1c99426
fix: type errors
0x4007 Oct 6, 2023
eda36e3
fix: type errors
0x4007 Oct 6, 2023
5be3203
fix: type errors
0x4007 Oct 7, 2023
79b1631
fix(credits): type errors
0x4007 Oct 7, 2023
a545e96
fix: all type errors solved
0x4007 Oct 7, 2023
5df2579
fix(ci): lint
0x4007 Oct 7, 2023
03bd004
chore: rename to kebab case in progress
0x4007 Oct 7, 2023
c0756ce
chore: rename to kebab case in progress
0x4007 Oct 7, 2023
de87bf0
chore: rename to kebab case in progress
0x4007 Oct 7, 2023
97ed659
Update kebab-case.yml
0x4007 Oct 7, 2023
cb0842b
feat: source map support
0x4007 Oct 8, 2023
6212c3f
fix: bot starts up
0x4007 Oct 8, 2023
457f59a
fix(logger): can find
0x4007 Oct 8, 2023
503c337
fix(logging): debugging
0x4007 Oct 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@
"micromark",
"milestoned",
"Numberish",
"OPENAI",
"orgname",
"pavlovcik",
"permisson",
"Postgrest",
"prereleased",
"probot",
"Probot",
Expand All @@ -49,6 +51,7 @@
"ubiquibot",
"unarchived",
"Unassigning",
"upserted",
"Upserting",
"URLSAFE",
"vitalik",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: "Bounty Proposal"
name: "Task Proposal"
description: Have a suggestion for how to improve UbiquiBot? Let us know!
title: "Bounty Proposal: "
title: "Task Proposal: "

body:
- type: markdown
attributes:
value: |
## Feature Request Form
Thank you for taking the time to file a feature request.
If you register your wallet address, you will be eligible for compensation if this is accepted!
Thank you for taking the time to file a feature request.
If you register your wallet address, you will be eligible for compensation if this is accepted!
Please let us know how we can improve the bot.

- type: textarea
Expand All @@ -17,14 +17,14 @@ body:
description: Please let us know what inspired you to write this proposal. Backlinking to specific comments on GitHub, and leaving a remark about how the bot should have interacted with it is usually sufficient context.
validations:
required: false

- type: textarea
attributes:
label: Describe the solution
description: A clear description of what you want to happen. Add any considered drawbacks.
validations:
required: true

- type: textarea
attributes:
label: Remarks
Expand Down
12 changes: 6 additions & 6 deletions .github/ubiquibot-config.yml
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!"
84 changes: 0 additions & 84 deletions .github/workflows/bot.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
env:
SUPABASE_ACCESS_TOKEN: ${{ github.ref == 'refs/heads/main' && secrets.PRODUCTION_SUPABASE_ACCESS_TOKEN || secrets.STAGING_SUPABASE_ACCESS_TOKEN }}
SUPABASE_DB_PASSWORD: ${{ github.ref == 'refs/heads/main' && secrets.PRODUCTION_SUPABASE_DB_PASSWORD || secrets.STAGING_SUPABASE_DB_PASSWORD }}
PROJECT_ID: ${{ github.ref == 'refs/heads/main' && secrets.PRODUCTION_SUPABASE_PROJECT_ID || secrets.STAGING_SUPABASE_PROJECT_ID }}
SUPABASE_PROJECT_ID: ${{ github.ref == 'refs/heads/main' && secrets.PRODUCTION_SUPABASE_PROJECT_ID || secrets.STAGING_SUPABASE_PROJECT_ID }}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update secret


steps:
- name: Checkout repository
Expand All @@ -42,7 +42,7 @@ jobs:
version: latest

- name: Link Supabase project
run: supabase link --project-ref $PROJECT_ID
run: supabase link --project-ref $SUPABASE_PROJECT_ID

- name: Run migrations
run: supabase db push
40 changes: 40 additions & 0 deletions .github/workflows/e2e-test.yml
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
Copy link
Member Author

Choose a reason for hiding this comment

The 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"
6 changes: 4 additions & 2 deletions .github/workflows/kebab-case.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ jobs:
"^\.\/build"
"^\.\/vendor"
"^\.\/\.next"
"^\.\/tests"
"\.sql$"
"\.md$"
"\.d.ts$"
"^\.\/\log-app"
"\.d\.ts$"
"\.gitignore$" # Ignore .gitignore files
"\.test\.ts$" # Ignore .test.ts files
)
while read -r file; do
basefile=$(basename "$file")
Expand Down
32 changes: 0 additions & 32 deletions .github/workflows/release.yml

This file was deleted.

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ supabase/temp
# Local Netlify folder
.netlify
bin
.yarn
.yarn
yarn-error.log
tsconfig.tsbuildinfo
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"tabWidth": 2,
"semi": true,
"singleQuote": false,
"printWidth": 160,
"printWidth": 120,
"htmlWhitespaceSensitivity": "strict",
"plugins": []
}
5 changes: 2 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"files.exclude": {
"dist": true,
"node_modules": true,
"lib": true
"tsconfig.tsbuildinfo": true
},
"explorer.excludeGitIgnore": false,
"cSpell.words": ["Probot", "Ubiqui"]
"explorer.excludeGitIgnore": false
}
Loading