Submission Form should be loaded using fewer REST requests #3162
Labels
affects: 7.x
Issue impacts 7.x releases
affects: 8.x
Issue impacts 8.x releases
bug
claimed: 4Science
4Science team is working on this issue & will contribute back
component: submission
performance / caching
Related to performance, caching or embedded objects
Describe the bug
In 7.x and 8.x, when a user starts a new submission, this makes ~9 calls to the REST API to load all the required information to create the Submission form. First, the WorkspaceItem is loaded, then each section of the form (one by one), then any controlled vocabularies (one by one).
Here's an example of what you see in Chrome DevTools when the Submission Form loads:
Ideally, it'd be better to see if we can load all this information in a single request (or at least fewer requests) by better usage of Projections (
embed
param)To Reproduce
Steps to reproduce the behavior:
Expected behavior
Ideally, better usage of projections should allow us to load all this information in fewer REST requests. If additional endpoints need to be added to the REST API to support this behavior, then we should add them.
The text was updated successfully, but these errors were encountered: