Open Sae126V opened 1 year ago
@gregcorbett , This is ready for the functionality review.
Could you also add printing out the last renewed time to reportDryRun
?
Could you also add printing out the last renewed time to
reportDryRun
?
Sure, Greg. Added the support for last renewed time in 0d1ec9abee0d0f4ee6f42ce0b0a439fd8f86e603
Functionality looks good. I noticed that when emails were generated for both unrenewed and inactive API credentitals, I got:
> php resources/ManageAPICredentials/ManageUnusedAPICredentials.php --warning_threshold 9 --deletion_threshold 15 --renewals ... The API credential associated with the following identifier registered at site X has not been renewed for the last 0 months and will be deleted if it reaches 15 months.
Where
0
should have been closer to12
, which is why the warning email was generated. Could you look into that?
Right. I see the flow of code was designed such that it calculates the month difference i.e. say, Sept to sept the month difference is zero and it ignored the year part. I have provided a fix in 0d1ec9abee0d0f4ee6f42ce0b0a439fd8f86e603.
Ready for the functionality review with the fix and suggestions @gregcorbett.
Resolves
" #438 and #453 "