ubiquity / ubiquity-dollar

Ubiquity Dollar (UUSD) smart contracts and user interface.
https://uad.ubq.fi
Apache License 2.0
34 stars 91 forks source link

Analytics dashboard #965

Open rndquu opened 1 month ago

rndquu commented 1 month ago

It would be useful create a dune analytics dashboard for the Ubiquity protocol (example).

What data to display in the dashboard:

Smart contract addresses: https://github.com/ubiquity/ubiquity-dollar/wiki/24.-Smart-Contracts

0x4007 commented 1 month ago

Let's do dune and are there any specifics you want to monitor? You should add to your spec and this is a simple and straightforward bounty for anybody who has built dashboards using dune.

We could start with any popular frax dune dashboard.

rndquu commented 1 month ago

are there any specifics you want to monitor?

Everything is mentioned in the issue description.

YanVictorSN commented 1 month ago

/start

rndquu commented 1 month ago

/start

rndquu commented 1 month ago

@gentlementlegen Help

I'm trying to debug why the bot is not responding.

There are 2 kernel workers in the cloudflare dashboard: ubiquity-os-kernel-main and ubiquity-os-kernel-development.

Questions:

  1. ubiquity-os-kernel-main targets github's main branch while ubiquity-os-kernel-development targets the development branch of the bot's repo, correct?
  2. ubiquity-os-deployer (production bot instance) uses the main branch of the https://github.com/ubiquity-os/ubiquity-os-kernel repo, right?
0x4007 commented 1 month ago
  1. Yes
  2. Deployer is a dedicated app only for deployments. It was created to offset rate limits. The one you are looking for is ubiquity-os. That is the "actor" of the kernel.

We have been having problems with start all month. It's unreliable

ubiquity-os[bot] commented 1 month ago

@YanVictorSN the deadline is at Tue, Oct 1, 11:48 AM UTC

gentlementlegen commented 1 month ago

/start

ubiquity-os[bot] commented 1 month ago
! This issue is already assigned. Please choose another unassigned task.
gentlementlegen commented 1 month ago

The command-start-stop was never called which is why it never worked. The reason is that a plugin is failing on a fatal error because of the new orgs that have been created and somehow doesn't have the proper access level

{
      "message": [
        "Calling handler {\"owner\":\"ubiquibot\",\"repo\":\"user-activity-watcher\",\"workflowId\":\"compute.yml\",\"ref\":\"development\"} for event issue_comment"
      ],
      "level": "log",
      "timestamp": 1727697850120
},
{
      "message": [
        "Error in event handler",
        "HttpError: Resource not accessible by integration - https://docs.github.com/rest/actions/workflows#create-a-workflow-dispatch-event"
      ],
      "level": "error",
      "timestamp": 1727697850679
}

I fixed by making the plugin higher on the list. I believe the loop should not break if a plugin is not working properly but just log the error. Also maintaining 4 repos is complex, these repos won't get moved?


Edit: after reading my comment I realize that the configuration points to an old repo, that also got renamed (user-activity-watcher -> disqualifier) so that might be why the name doesn't get resolved.

rndquu commented 1 month ago

ubiquity-os targets the main branch of https://github.com/ubiquity-os/ubiquity-os-kernel, right?

gentlementlegen commented 1 month ago

Not sure of what your question is with the links you included. The ubiquity-os-bot targets https://ubiquity-os-kernel-main.ubq.workers.dev so the main branch yes.

rndquu commented 1 month ago

@gentlementlegen Where did you get these logs? From cloudflare dashboard?

Screenshot 2024-09-30 at 15 17 59
gentlementlegen commented 1 month ago

@rndquu Correct. You can see the time when the github comment was posted

image

so I could narrow down the logs. I also tested with the > live logs to make sure I was correct. Plus I had the command-start-stop logs open in the meantime which showed me no POST was ever received.

YanVictorSN commented 1 month ago

hi @rndquu . You have any recommendation for open a PR draft in this case? What change in the code can I do for that?

rndquu commented 1 month ago

hi @rndquu . You have any recommendation for open a PR draft in this case? What change in the code can I do for that?

Open a draft PR with updated README file containing URL to the dune dashboard

YanVictorSN commented 1 month ago

/wallet 0xF51cFA5eb9128F064eafb75524502A039F063D91

ubiquity-os[bot] commented 1 month ago

+ Successfully registered wallet address
ubiquity-os[bot] commented 1 month ago

@YanVictorSN, this task has been idle for a while. Please provide an update.

ubiquity-os[bot] commented 1 month ago

@YanVictorSN, this task has been idle for a while. Please provide an update.

ubiquity-os[bot] commented 1 month ago

@YanVictorSN, this task has been idle for a while. Please provide an update.

ubiquity-os[bot] commented 1 month ago

@YanVictorSN, this task has been idle for a while. Please provide an update.

ubiquity-os[bot] commented 1 month ago

@YanVictorSN, this task has been idle for a while. Please provide an update.

ubiquity-os[bot] commented 1 month ago

@YanVictorSN, this task has been idle for a while. Please provide an update.

ubiquity-os[bot] commented 1 month ago

@YanVictorSN, this task has been idle for a while. Please provide an update.

ubiquity-os[bot] commented 1 month ago

@YanVictorSN, this task has been idle for a while. Please provide an update.

ubiquity-os[bot] commented 1 month ago

@YanVictorSN, this task has been idle for a while. Please provide an update.

ubiquity-os[bot] commented 1 month ago

@YanVictorSN, this task has been idle for a while. Please provide an update.

ubiquity-os[bot] commented 1 month ago

@YanVictorSN the deadline is at Tue, Oct 15, 7:15 PM UTC

YanVictorSN commented 1 month ago

/start

ubiquity-os[bot] commented 1 month ago
! YanVictorSN you were previously unassigned from this task. You cannot be reassigned.
YanVictorSN commented 1 month ago

Hi @0x4007 can you assigned me again?

ubiquity-os[bot] commented 1 month ago

@YanVictorSN the deadline is at Tue, Oct 15, 8:55 PM UTC

YanVictorSN commented 1 month ago

@YanVictorSN the deadline is at Tue, Oct 15, 8:55 PM UTC

Already done. Just waiting for a review.

0x4007 commented 4 weeks ago

@YanVictorSN the deadline is at Tue, Oct 15, 8:55 PM UTC

Already done. Just waiting for a review.

@rndquu is the deliverable acceptable?

luisantoniocrag commented 4 weeks ago

/start

ubiquity-os[bot] commented 4 weeks ago
! This issue is already assigned. Please choose another unassigned task.
ubiquity-os[bot] commented 3 weeks ago

@YanVictorSN the deadline is at Wed, Oct 23, 4:50 AM UTC

YanVictorSN commented 3 weeks ago

/start

ubiquity-os[bot] commented 3 weeks ago
! You are already assigned to this task.
ubiquity-os[bot] commented 1 week ago

Passed the deadline and no activity is detected, removing assignees: @YanVictorSN.

YanVictorSN commented 1 week ago

@rndquu @0x4007 can I get assigned, please? I'm just waiting for a review.