LCOGT / hermes-frontend

The frontend for hermes.
GNU General Public License v3.0
0 stars 1 forks source link

Added ability to preload fields in the submission form through base64… #77

Closed jnation3406 closed 8 months ago

jnation3406 commented 9 months ago

… urlencoded json param 'preload'

This is purely a frontend change, and the url param will be stripped out and removed after it is loaded to keep the url clean. This will allow the TOM toolkit to link to a preloaded hermes submission page. There might be an upper limit on how big the query param/payload can be but I think its browser dependent and in modern browsers it is near infinite...

jnation3406 commented 9 months ago

Are there limits on the length of the url params that get passed to this given that the message text could be long?

There are limits, but i think its usually at the proxy/nginx/server level now, not the browser. So I think we will be able to make them very large for our deploy. There will be an upper limit this works for, so once that is defined we can restrict the link from showing up in the tom toolkit if it exceeds that limit. Theres also an implicit limit in the UI framework, i.e. you won't want 100s of datapoints in the UI or it might crash your browser or something.