traggo / server

self-hosted tag-based time tracking
https://traggo.net
GNU General Public License v3.0
1.09k stars 55 forks source link

going from list view to dashboards wont update the dashboards with the latest changes. #150

Open mksafavi opened 8 months ago

mksafavi commented 8 months ago

Describe the bug If you make some changes in the list view (creating and deleting a timespan or stopping a running one), you won't see it in dashboard charts right away. it requires refreshing the whole tab to fetch the new data. It's a minor inconvenience(issue) that could be by design but I thought I should mention it.
It's already working properly when you switch from list to calendar.

To Reproduce Steps to reproduce the behavior:

  1. Go to list view
  2. Add new time span with manual mode (or stop a running tracker) image
  3. Go to the dashboard
  4. Corresponding chart is empty. image
  5. reload the tab
  6. chart includes the new entry now image
jmattheis commented 8 months ago

Yeah, we probably have to make the dashboards dependent on the timespan mutations, so the cache is flushed.