I realized that some of the dashboard calculati...
# avo-2
g
I realized that some of the dashboard calculations are running even though the dashboard is not presented in that view. For example:
Copy code
Started GET "/avo/resources/subscriptions" for 127.0.0.1 at 2023-09-26 14:11:06 -0400
  AdminUser Load (0.8ms)  SELECT `admin_users`.* FROM `admin_users` WHERE `admin_users`.`id` = 36 ORDER BY `admin_users`.`id` ASC LIMIT 1
Processing by Avo::SubscriptionsController#index as HTML
   (12236.0ms)  SELECT COUNT(*) FROM `users` WHERE `users`.`created_at` BETWEEN '2023-09-01 04:00:00' AND '2023-10-01 03:59:59'
  ↳ app/avo/dashboards/users_count_over_time.rb:16:in `block in <class:UsersCountOverTime>'
Users CountOverTime is not displayed in the subscriptions resources view, why would it be called?
m
Thread automatically created by ritec in #740893011994738751
l
Hi @gorgeous-army-21193 ,you're experiencing it on every subscriptions index request?
g
Let me check.
Not all, just the first one even though it is not showing the dashboard.
l
I'll try to replicate it, would be nice to have some more context and a github issue in order to track this
g
ok I will elaborate on it in a Github issue. Thanks
l
Thank you!
Helllo @gorgeous-army-21193, can you link it here please?