Adding api to get latest partition date for cube

Why is this change required?