Documents metadata are now returned in the (sandbox) level data payload. This results in two improvements:
no need to request metadata every time the Document Viewer is opened
first document can be requested as soon as the viewer opens, so we never need to see a loading indicator for the metadata fetch
This might be easiest viewed per commit, instead of all in one go.
resolves #913
Notes
There were case-sensitivity typos in DocumentMeta model properties, causing a redundant HEAD request for every document fetched; these have been corrected, so now DocViewer code can use fileType to know what renderer to use, and the HEAD request is not needed
Improvements made to frontend service code, to remove some duplicated boilerplate - now we have separate get and post functions (copied over from the cloud infra feature branch)
Stronger type safety for responses in backend controller code
Description
Documents metadata are now returned in the (sandbox) level data payload. This results in two improvements:
This might be easiest viewed per commit, instead of all in one go.
resolves #913
Notes
fileType
to know what renderer to use, and the HEAD request is not neededget
andpost
functions (copied over from the cloud infra feature branch)Checklist
Have you done the following?