A change in the API since the first implementation of space_member_usage() has caused last_activity() to not be available in what's returned from the RETRIEVE SPACE USAGE SUMMARY call. The existing code was not robust to last_activity being returned from the API to be NULL. With this change the NULL result for last_activity is now converted to NA and hence the rest of the calculations that rely on last_activity don't fail as it no longer gets dropped.
If/when the API is updated to return last_activity this revised code for space_member_usage() should still work. Alternatively, we might add additional arguments to space_member_usage() in the future to explicitly ask for last_activity to be returned. For now, the code works but space_member_usage() reports NA for last_activity.
A change in the API since the first implementation of
space_member_usage()
has causedlast_activity()
to not be available in what's returned from theRETRIEVE SPACE USAGE SUMMARY
call. The existing code was not robust tolast_activity
being returned from the API to beNULL
. With this change theNULL
result forlast_activity
is now converted toNA
and hence the rest of the calculations that rely onlast_activity
don't fail as it no longer gets dropped.If/when the API is updated to return
last_activity
this revised code forspace_member_usage()
should still work. Alternatively, we might add additional arguments tospace_member_usage()
in the future to explicitly ask forlast_activity
to be returned. For now, the code works butspace_member_usage()
reportsNA
forlast_activity
.Closes #43 and #40.