Closed VLucet closed 10 months ago
Looking at this with fresh eyes there are a few issues, namely that year are taken as independent deployments, which might not be accurate. Back to working on the PR. => Fixed in latest commit in PR, I've updated the comment above to reflect that.
Fixed with c5b8e3a49e285e7755bd2bc169c3aed95c2be00a
Hi 👋🏼 ! Here is a bug @eric-jolin and I have found in
wt_summarise_cam()
. I've also opened a PR (#40) that fixes it, and also attempts to improve the code in general (see the PR to those details).When a user provides data from more than one year, the data is aggregated across years and leads to situations where the number of days of effort can be more than 7 for a given week, and more than 31 for a month. It would also artificially inflate the effort.
Which gives:
Clearly this function should be grouping and aggregating data by year instead, regardless of the time frame requested. The PR brings that feature:
(Also, see the PR for general code cleanliness/coherence improvement I thought could be useful to bring. Feel free to ignore those if they seem superfluous)