External requests
genesys-pgr/genesys-server!952 adds support for requests for material to be made in external systems (genesys-server#743 (closed)).
In this ticket we implement:
- Update Partner and Institute edit forms
- Update the UI flow for the user to complete a request initiated in Genesys, but needs to be completed in the external system
Update Partner and Institute forms
Update Partner and Institute edit forms with fields for requestApiEndpoint (Request API endpoint, must be valid URL) and requestApiAuthorization (Request API authorization).
Note that setting the requestApiAuthorization uses a special endpoint. The authorization field should not be empty when the endpoint is defined. Please include an <Alert if that's the case!
It would be best if these fields are editable only by Administrators.
UI flow to complete a request in other systems
The difference is that Genesys does not send an email to the genebank, but needs to call a remote endpoint to with the list of requested material, and then redirect the user to the remote website where they complete the request. A request can include accessions that go to one or more different external systems. Because the external system can reject one or more requested accessions, we should inform the user while they are completing the request that those accessions cannot be included in the request. That way both systems agree on the list of material that is being requested.