nexus
nexus copied to clipboard
Advanced Plugin - deal better with large JSON-LD payload
Affects version up to Fusion 1.8.0
Description
Currently, when the JSON-LD payload of a resource is large (say 50MB), the JSON-LD editor freezes. We need to find a better way to load that data, potentially not entirely and give a choice/warning to the user about anticipated consequences of loading it. An other editor that can deal with large payload is an other option. Let's have a discussion to see what out options are.
Note Both solutions needs to know the size of the file.
the resource.get
endpoint not providing the size in the header
Transfer-Encoding: chunked
currently in the header which cause Content-Length
header to be omitted
Sol 1:
Inform the user about large files and allow him either to load the file and mentioning the consequences
Acceptance criteria
- [ ] Large payload should not be displayed immediately
- [ ] The user should know that the resource is large (via a warning banner)
- [ ] The user can decide either to display full payload (with consequences) or download the payload using download button on the action bar.
Sol 2:
investigate the Lazy loading of the code