Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboard Statistics Not Updating #2056

Open
artur33s opened this issue Jan 4, 2025 · 1 comment
Open

Dashboard Statistics Not Updating #2056

artur33s opened this issue Jan 4, 2025 · 1 comment
Labels
bug Something isn't working unconfirmed

Comments

@artur33s
Copy link

artur33s commented Jan 4, 2025

  • Lunar version: 1.0.0-beta6
  • Laravel Version: 11.33.2
  • PHP Version: 8.3.14
  • Database Driver & Version: Mysql 8.0

Expected Behaviour:

The Dashboard should display accurate statistics for orders. For example, if 3 orders were created in the last 24 hours, the statistics should show the number of orders = 3.

Actual Behaviour:

The Dashboard statistics display 0 orders, even though 3 orders were created in the last 24 hours.

Steps To Reproduce:

  1. Create 3 orders in the last 24 hours.
  2. Open the Dashboard and check the statistics section.
  3. Notice that the statistics display 0 orders.

Additional Information:

The documentation does not contain any information related to the Dashboard, so it was difficult to determine what might be causing the issue. If there are specific requirements for setting up the Dashboard or commands that need to be run to make it work, please clarify.

Screenshot 2025-01-04 at 03 10 55 Screenshot 2025-01-04 at 03 11 44
@artur33s artur33s added bug Something isn't working unconfirmed labels Jan 4, 2025
@glennjacobs
Copy link
Contributor

You can see the query for one of the dashboard widgets here https://github.com/lunarphp/lunar/blob/1.x/packages/admin/src/Filament/Widgets/Dashboard/Orders/OrdersSalesChart.php

I think the main requirement is that the order has the "placed_at" value set. But maybe you can spot what is missing from your data?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed
Projects
None yet
Development

No branches or pull requests

2 participants