Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase data stored in the url #299

Open
manthey opened this issue Apr 25, 2023 · 4 comments
Open

Increase data stored in the url #299

manthey opened this issue Apr 25, 2023 · 4 comments

Comments

@manthey
Copy link
Contributor

manthey commented Apr 25, 2023

We store some data in the url (e.g., image position, selected analysis task). It would be good to add frame selection, viewed annotations, task options that aren't the default, etc. so that a url could better recreate the state of the viewer.

There could be enough options that this would exceed the sensible browser url size (although this varies by browser, 2k is the same limit). Perhaps we should save this state to a database collection and have a reference to it (maybe when a sharable link is asked for?).

@Leengit
Copy link

Leengit commented Apr 25, 2023

If we decide to look at using a database then there is the consideration of server side vs. client side. That is, if the goal is along the lines of allowing a client to restart where they left off, instead of a server-side database to interpret the user's URL, we could have a client-side cookie (or cookies) to tell the server the current state. Or some combination where the cookies would give the server some context for interpreting a URL that specified only some options.

This approach wouldn't allow a user to easily share state from one client computer to another client computer, so if that's a desired outcome then never mind.

@manthey
Copy link
Contributor Author

manthey commented Apr 25, 2023

I think sharing is a key component to this. You want to be able to share a link with a colleague.

@dgutman
Copy link
Contributor

dgutman commented Apr 25, 2023 via email

@manthey
Copy link
Contributor Author

manthey commented Apr 25, 2023

would it be possible to use a zipped / compressed version of the query string/URL string

Maybe -- we do this in some other instances (geojs editable tutorials, for instance), and it works up to a point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants