ubiquity-os / ubiquity-os-kernel

1 stars 19 forks source link

Supabase Logger #5

Closed 0x4007 closed 1 month ago

0x4007 commented 10 months ago
  1. Allow configuration in the UbiquiBot Logger npm module to interface with our Supabase key and URL.
  2. Enable logging in this repository (just log some runtime event successfully.)
gitcoindev commented 10 months ago

Pull request should be ready by tomorrow EOD.

gitcoindev commented 10 months ago

I had a delay on this one, will continue on Sunday.

0x4007 commented 9 months ago

@gitcoindev any update

gitcoindev commented 9 months ago

@pavlovcik thank you for reminding me, I left it half-baked last week. I am on it and will try to finish today.

gitcoindev commented 9 months ago

Pull request https://github.com/ubiquity/ubiquibot-kernel/pull/16 ready for review.

ubiquibot[bot] commented 9 months ago
! No price label has been set. Skipping permit generation.
0x4007 commented 9 months ago

I'll try and replace the X25519 key tonight to the correct wallet to roll out GitHub incentives/payments again.

ubiquibot[bot] commented 9 months ago
+ Evaluating results. Please wait...
ubiquibot[bot] commented 9 months ago

[ 17 WXDAI ]

@pavlovcik
Contributions Overview
ViewContributionCountReward
IssueSpecification18.4
IssueComment24.6
ReviewComment14
Conversation Incentives
CommentFormattingRelevanceReward
1. Allow configuration in the `UbiquiBot Logger` npm module to i...
8.4
li:
  count: 2
  score: "2"
  words: 29
code:
  count: 1
  score: "1"
  words: 2
18.4
@gitcoindev any update...
0.6-0.6
I'll try and replace the X25519 key tonight to the correct walle...
40.014
> Also tested at https://github.com/gitcoindev/ubiquibot/issues/...
40.634

[ 259.9 WXDAI ]

@gitcoindev
Contributions Overview
ViewContributionCountReward
IssueTask1.00200
IssueComment40
IssueComment45.5
ReviewComment327.2
ReviewComment327.2
Conversation Incentives
CommentFormattingRelevanceReward
Pull request should be ready by tomorrow EOD....
-0.05-
I had a delay on this one, will continue on Sunday....
-0.06-
@pavlovcik thank you for reminding me, I left it half-baked last...
-0.3-
Pull request https://github.com/ubiquity/ubiquibot-kernel/pull/1...
-0.08-
Pull request should be ready by tomorrow EOD....
0.80.050.8
I had a delay on this one, will continue on Sunday....
1.10.061.1
@pavlovcik thank you for reminding me, I left it half-baked last...
2.30.32.3
Pull request https://github.com/ubiquity/ubiquibot-kernel/pull/1...
1.30.081.3
This is still a draft pull request. I have to rebase to current ...
2.30.442.3
Hi @pavlovcik @whilefoo I seem to got it right this time -) I re...
20.6
code:
  count: 1
  score: "1"
  words: 0
0.5720.6
> > Also tested at [gitcoindev/ubiquibot#10 (comment)](https://g...
4.3
a:
  count: 1
  score: "1"
  words: 4
code:
  count: 1
  score: "1"
  words: 1
0.834.3
This is still a draft pull request. I have to rebase to current ...
2.30.442.3
Hi @pavlovcik @whilefoo I seem to got it right this time -) I re...
20.6
code:
  count: 1
  score: "1"
  words: 0
0.5720.6
> > Also tested at [gitcoindev/ubiquibot#10 (comment)](https://g...
4.3
a:
  count: 1
  score: "1"
  words: 4
code:
  count: 1
  score: "1"
  words: 1
0.834.3
gitcoindev commented 9 months ago

/help

ubiquibot[bot] commented 9 months ago

Available Commands

Command Description Example
/start Assign yourself to the issue. /start
/stop Unassign yourself from the issue. /stop
/help List all available commands. /help
/query Returns the user's wallet, access, and multiplier information. /query @user
/ask Ask a context aware question. /ask is x or y the best approach?
/multiplier Set the task payout multiplier for a specific contributor, and provide a reason for why. /multiplier @user 0.5 "multiplier
reason"
/labels Set access control, for admins only. /labels @user priority time
price
/authorize Approve a label change, for admins only. /authorize
/wallet Register your wallet address for payments. /wallet ubq.eth
gitcoindev commented 9 months ago

/query @gitcoindev

ubiquibot[bot] commented 9 months ago
Property Value
Wallet 0x4D0704f400D57Ba93eEa88765C3FcDBD826dCFc4
gitcoindev commented 9 months ago

/wallet 0x7e92476D69Ff1377a8b45176b1829C4A5566653a

ubiquibot[bot] commented 9 months ago
+ Successfully registered wallet address
gitcoindev commented 9 months ago

/query @gitcoindev

ubiquibot[bot] commented 9 months ago
Property Value
Wallet 0x4D0704f400D57Ba93eEa88765C3FcDBD826dCFc4
gitcoindev commented 9 months ago

Hi @pavlovcik @whilefoo during a few hrs debugging I seem to have found the root cause. The permit was generated to a wrong destination address. See values in the comments above. I tried to update the wallet address, but the bot still returns 0x4D0704f400D57Ba93eEa88765C3FcDBD826dCFc4 , which was used in the permit.

gitcoindev commented 9 months ago

I was also able to reproduce on my localhost 'The reward is not for you' when I flipped isNonceClaimed() return value to true.

image

0x4007 commented 9 months ago

This looks promising! Do you think you can open a pull request?

gitcoindev commented 9 months ago

This looks promising! Do you think you can open a pull request?

Not yet, I am still looking at why the wallet address cannot be updated.

gitcoindev commented 9 months ago

/query @gitcoindev

ubiquibot[bot] commented 9 months ago
Property Value
Wallet 0x4D0704f400D57Ba93eEa88765C3FcDBD826dCFc4
gitcoindev commented 9 months ago

/wallet 0x7e92476D69Ff1377a8b45176b1829C4A5566653a

ubiquibot[bot] commented 9 months ago
+ Successfully registered wallet address
gitcoindev commented 9 months ago

/query @gitcoindev

ubiquibot[bot] commented 9 months ago
Property Value
Wallet 0x4D0704f400D57Ba93eEa88765C3FcDBD826dCFc4
0x4007 commented 9 months ago

I manually migrated the wallets in from the old database a couple of weeks ago. I probably messed up something with a foreign key which is probably the root cause of this issue. I can check when I'm back on my computer but also dm me your Supabase email and I can share access so you can see for yourself.

gitcoindev commented 9 months ago

I manually migrated the wallets in from the old database a couple of weeks ago. I probably messed up something with a foreign key which is probably the root cause of this issue. I can check when I'm back on my computer but also dm me your Supabase email and I can share access so you can see for yourself.

All right, thank you for the hint. I was pretty confused about this -). There is no rush, please take your time and check when you're back on your computer.

gitcoindev commented 9 months ago

/wallet 0x7e92476D69Ff1377a8b45176b1829C4A5566653a

ubiquibot[bot] commented 9 months ago
+ Successfully registered wallet address
gitcoindev commented 9 months ago

/query @gitcoindev

ubiquibot[bot] commented 9 months ago
Property Value
Wallet 0x4D0704f400D57Ba93eEa88765C3FcDBD826dCFc4
0x4007 commented 9 months ago

[ 17 WXDAI ]

@pavlovcik

[ 259.9 WXDAI ]

@gitcoindev

Due to the unexpected extended downtime with the payments I will proceed with manual payments. I will use the address you have registered for our core team base payroll 0x7e92476D69Ff1377a8b45176b1829C4A5566653a to proceed.

https://gnosisscan.io/tx/0x9b1be0f6fa49938a067b93eb9c4fd32e495e68a993e5953fdcf3e06293fa75bd

gitcoindev commented 9 months ago

/wallet 0x7e92476D69Ff1377a8b45176b1829C4A5566653a

ubiquibot[bot] commented 9 months ago
! action returned an unexpected value
gitcoindev commented 9 months ago

/start

ubiquibot[bot] commented 9 months ago
! Skipping '/start' because the issue is closed.
gitcoindev commented 9 months ago

/start

gitcoindev commented 9 months ago

/query @gitcoindev

ubiquibot[bot] commented 9 months ago
! action has an uncaught error
gitcoindev commented 9 months ago

/start

gitcoindev commented 9 months ago

Please ignore the comments below, I am debugging the root cause.

gitcoindev commented 9 months ago

/help

ubiquibot[bot] commented 9 months ago

Available Commands

Command Description Example
/start Assign yourself to the issue. /start
/stop Unassign yourself from the issue. /stop
/help List all available commands. /help
/query Returns the user's wallet, access, and multiplier information. /query @user
/ask Ask a context aware question. /ask is x or y the best approach?
/multiplier Set the task payout multiplier for a specific contributor, and provide a reason for why. /multiplier @user 0.5 "multiplier
reason"
/labels Set access control, for admins only. /labels @user priority time
price
/authorize Approve a label change, for admins only. /authorize
/wallet Register your wallet address for payments. /wallet ubq.eth
gitcoindev commented 9 months ago

/start

ubiquibot[bot] commented 9 months ago
! action has an uncaught error
gitcoindev commented 9 months ago

/query @gitcoindev

ubiquibot[bot] commented 9 months ago
Property Value
Wallet 0x7e92476D69Ff1377a8b45176b1829C4A5566653a
gitcoindev commented 9 months ago

/start