VictorGrycuk / streamdeck-repository-watcher

A plug in for StreamDeck that will monitor the count of issues or pull request of a given GitHub repository.
GNU General Public License v3.0
11 stars 2 forks source link

Issue count keeps resetting to 0 #11

Open mikecnr opened 3 years ago

mikecnr commented 3 years ago

I have set up like so:

image

image

It works fine, but then after a few minutes if it updates itself (either automatically or manually) it resets to 0 and the only way to get it to work again is to change a setting.

I'm not sure exactly what the 'Initial Offset' thing is, but I can only get issues to show up if I put a high number it seems. I don't know why you would only want to show recent issues and not all of them...

If I change the interval (e.g. 9999 to 9998) and refresh the counter it works, but as I mentioned it breaks again if I update it later or it automatically updates itself later.

It also fixes itself if I untick 'Enabled' and re-tick it, and then refresh.

Please let me know if you need any more information

I don't know after how long exactly it breaks. I just left if for 5 minutes and then manually refreshed it and it was fine, it updated. But after a while something breaks and when it next updates it just shows 0...

mikecnr commented 3 years ago

While it was in this broken state of just showing 0 issues, I added a new issue to the repo and when I then refreshed the repo watcher it showed 1 issue. For some reason it's only showing recent issues. I want to see a total..

VictorGrycuk commented 3 years ago

Thanks @mikecnr for opening the issue. I'll be trying to reproduce this and get back to you as soon as I can!

mikecnr commented 3 years ago

No problem. If you need me to test a fix let me know.

VictorGrycuk commented 3 years ago

Sorry for the delay @mikecnr. The original reason behind the offset was to show new issues since you last visited the repository/refreshed the counter. I decided to remove it, it was not clear the intended usage, and it was more annoying than useful.

I created the 1.2 pre release, please try it and let me know if it works as you expect!