hcl icon indicating copy to clipboard operation
hcl copied to clipboard

Projects list doesn't get updated

Open mustafa01ali opened this issue 8 years ago • 6 comments

Initial setup works fine, however any new projects that I am added to do not show up when I try to fetch the list of all tasks using hcl tasks. Haven't gone through the code, but perhaps the projects and tasks are being cached locally to speed things up. Is there a way to refresh it?

Edit - I can see the new projects on the Harvest website.

mustafa01ali avatar Dec 07 '16 04:12 mustafa01ali

I see this too. I tried using the --reauth option to at least log in again -- no change.

jhawksley avatar Dec 19 '16 08:12 jhawksley

I was able to refresh the list by deleting the local cache (~/.hcl/cache/tasks) and fetching the list of tasks.

On Dec 19, 2016 1:53 PM, "John Hawksley" [email protected] wrote:

I see this too. I tried using the --reauth option to at least log in again -- no change.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/zenhob/hcl/issues/77#issuecomment-267907051, or mute the thread https://github.com/notifications/unsubscribe-auth/AAu22eRmzTvAhCZTFBqwYkGR2SyMRk_6ks5rJj77gaJpZM4LGMEP .

mustafa01ali avatar Dec 19 '16 08:12 mustafa01ali

@mustafa01ali workaround works great - thanks!

jhawksley avatar Dec 19 '16 09:12 jhawksley

Awesome, this worked for me too! The path on my system was ~/.hcl/cache/tasks.yml. Version 0.4.15 for reference.

dpikt avatar Jan 26 '17 18:01 dpikt

Btw this is a pretty big issue for companies that add new projects regularly. Maybe there should be a flag for clearing the cache, something like hcl tasks --clear-cache?

@zenhob I would be happy to open a PR for this if you think it's a good idea.

dpikt avatar Jan 26 '17 18:01 dpikt

Just saw #71 😀

dpikt avatar Jan 26 '17 18:01 dpikt