mcndt / obsidian-toggl-integration

A Toggl integration plugin for the popular knowledge base application Obsidian.
GNU General Public License v3.0
267 stars 19 forks source link

Summary not updated unless file is reloaded #81

Open champagnealexandre opened 2 years ago

champagnealexandre commented 2 years ago

First: thank you so much for developing this plugin! It’s really cool ; it’s a nice incitative to have my weekly report in Obsidian (so like, all the time in sight).

The only problem for now is that since I’ve pinned a md file with my report in it, it’s not showing the latest timers. The report only seems to reload when I navigate away from the file and open it back again—and since I’ve pinned the file with my report in it, it won’t update anymore (unless I e.g., close then reopen Obsidian).

Maybe an auto-refresh at set interval (e.g., every minute) would be the appropriate solution?

mcndt commented 2 years ago

Hi Alexandre, thanks for your bug report. This is indeed the current implementation.

I considered an auto-refresh interval before, but this is not a good solution because some queries can be really expensive (e.g. a query spanning 365 days takes ~5 seconds to retrieve from Toggl).

I'll tag this issue so I'll be reminded to think of new solutions!

tintinwulia commented 1 year ago

This is an awesome plugin indeed. Thanks so much, @mcndt, for developing it.

I'm actually trying to show my day's summary/list in a Daily Note – which means that I'll query a different summary/list each day. It would be great to be able to see past notes with their own summary/list as a record.

So contrary to @champagnealexandre, I do wish that the summaries/lists would stay as they are, and never auto-refresh. Or, perhaps, instead, please make it possible to automate date/time period insertion in the toggl query (e.g. with Templater)?