oceanprotocol / pdr-backend

Instructions & code to run predictoors, traders, more.
Apache License 2.0
28 stars 22 forks source link

[PdrDashboard, v0.5] Predictoor page not loading #1541

Closed KatunaNorbert closed 1 month ago

KatunaNorbert commented 1 month ago

Describe the bug

When I click on the Predictoors navbar link the url path changes but everything inside the app stays the same and nothing happens When accessing the Predictoors page directly by url the app shows a blank page

To Reproduce

Steps to reproduce:

  1. Start app and click on Predictoors navbar item
  2. Enter the app url and use /predictoors patch

Expected behavior

I should see the Predictoors page accesing it trough either one of the ways mentioned abobe

Screenshots

When accessing trough navbar:

Screenshot 2024-08-21 at 12 45 04

When accessing trough url:

Screenshot 2024-08-21 at 12 15 15

Additional context

From inspecting the issue it seems to come from get_main_container() function, possibly from getting predictoor table data and displaying it inside the table. It could also possibly be related to my Lake not being up to date

KatunaNorbert commented 1 month ago

After more investigation it turns out that the issue is that the query take to long to execute. We need to make improvements such as removing the join between the prediction and payout tables