Subset and Dataset accession lists
The Subset#accessions
should not be serialized when returning the Subset. The issue is when you have a Subset with 500 records: because all accession details are loaded and serialized by the server and sent back to the client, that generates a very big API response (~1MB). Because we are sending this accessionRefs
back to the server it takes a very long time for the data to upload and to receive a response from the server.
We should split out the accessionRefs
and load and display them only on Stepper pages where they are required.
We require an API endpoint to load subset.accession
by page and use <PagedLoader
component to retrieve remaining accession records on demand.
Same applies for Dataset.