Page MenuHomePhabricator

Track number of available accounts per partner, and don't allow more than that to be distributed
Closed, ResolvedPublic

Description

When authentication is implemented, we will be trusting account coordinators to not approve any accounts over the designated limit for that partner. Currently, there is a second check when those users details are sent on to the partner, but they will be trusting us to distribute the correct number of accounts when using authentication. As such, there should be a fixed limit per partner in the library card platform past which no accounts can be distributed.

We shouldn't do this for non-authentication partners because one of the areas where users drop out - thus muddying the total # of accounts left - is after we send details off to the publisher. With authentication this won't be a problem since users should gain access immediately after being approved.

Event Timeline

In terms of the workflow, we should still allow coordinators to view, comment, and set non-Approved/Sent statuses for applications, but if they attempt to Approve an application, we disallow that and post a message informing them we're out of accounts.