Page MenuHomePhabricator

Write scripts for creating new authorization objects for converted proxy partners
Closed, ResolvedPublic

Description

When we switch partners from a manual access method to Proxy (not Bundle), we also need to make sure users have Authorization objects. At the moment that's only the case for applications approved since Authorizations were added to the platform, less than a year ago. Even in that case, they largely haven't been created with expiry dates.

We need a script which, given some parameters, can go through and create Authorization objects with 12 month expiry dates for users who should still have access. This won't necessarily be every user with a sent application, as for many publishers access was time limited and has since expired. We need to figure out partner-by-partner where the cutoff should be.

We can probably do this easiest with an input that's simply partner_id - date cutoff, leaving the date cutoff blank for any partners for which we're happy for all Sent users to be authorized.