crossminer / scava

https://eclipse.org/scava/
Eclipse Public License 2.0
18 stars 13 forks source link

Some factoids based on historic metrics might retrive the wrong date #405

Closed creat89 closed 4 years ago

creat89 commented 4 years ago

While creating a factoid for documentation sentiment, I discovered that some factoids based on historic metrics, instead of retrieving the entry created for the delta day, they retrieve the entries between a particular range of dates.

The rage of dates normally starts on the day which the analysis is executed and between -30 and -365 days. These range might not cover the delta day and in consequence generate a wrong factoid as the data retrieved might be null (which at the same time could generate a zero).

creat89 commented 4 years ago

This has been solved with multiples commits.