This PR contains updated projects command-line tool (coldfront.core.project.management.commands.projects) to enable renewal of ICA projects that have the "Inactive" status.
Added a subcommand renew by which this can be done.
It takes arguments: the name of the Project, the username of the User making the request, and the name of the AllocationPeriod the allowance will be valid for.
It will approve and process the request. I will provide you with some example code I've run manually in the past that should be adapted into this command.
Disallow renewals of other project types at this point (so only ICAs).
There should be a dry_run flag (see the create subcommand).
Projects no longer need to have just 1 PI. Before an error would occur if there were more than 1, but that has been adjusted. This was achieved by adding an additional argument which is the PI's username.
Writes to the database were put in a transaction
Limited acceptable AllowancePeriods to those for ICA projects
Based off code from @matthew-li
projects
command-line tool (coldfront.core.project.management.commands.projects
) to enable renewal of ICA projects that have the "Inactive" status.renew
by which this can be done.Project
, the username of theUser
making the request, and the name of theAllocationPeriod
the allowance will be valid for.dry_run
flag (see thecreate
subcommand).