MaterialSubRequest status
The admin page shows the basic information about MaterialSubRequest
that does not include the STATE of it.
The states for MaterialSubRequest#state
are:
public static final int NOTCONFIRMED = 0; // default
public static final int CONFIRMED = 1; // the genebank has clicked the link we sent them in the message
Please display the SubRequest state t(....subRequest.state.${state})
after the institute recipient email.
If the state is 0
, please add an action button "Resend" to manually trigger another email notification to be sent out. A new admin-only endpoint is needed to load and call public void relayRequest(MaterialSubRequest materialSubRequest)
in RequestServiceImpl
.
Update this service method to check that state is 0
before sending the email. When it's not zero, throw the standard API exception.