ALM-Rangers / Countdown-Widget-Extension

Counts down to a configurable moment in time.
https://marketplace.visualstudio.com/items?itemName=ms-devlabs.CountdownWidget&utm_roundup=github
Other
11 stars 16 forks source link

"Countdown Sprint" showing half of actual remaining days when all setting are set #46

Closed DanBirchgrove closed 6 years ago

DanBirchgrove commented 6 years ago

Given an iteration setup starting at 2018-10-01 and ending at 2018-12-31 And "Skip non-working days" is set When "Change background color when less than specified numbers of hours" is set Then the number of days shown on the widget is exactly half of number of days when "Skip non-working days" is not set.

Exempel: Today is 2018-10-25.

Given "Change background color when less than specified numbers of hours" is set When "Skip non-working days" is not set Then the number of days remaining is shown as 68.

Given "Change background color when less than specified numbers of hours" is set When "Skip non-working days" is set Then the number of days remaining is shown as 34.

image

image

henrybeen commented 6 years ago

Thanks for reporting this issue.

I have reproduced the issue and it is due to an get.. method having side-effects. For this reason running the calculations again for changing the background color (or not), will subtract non-working days twice.

I will check a fix in shortly and then it will be released along with other changes.