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

Support shortened keys in URL query #45

Open
justinkambic opened this issue May 30, 2019 · 4 comments
Open

Support shortened keys in URL query #45

justinkambic opened this issue May 30, 2019 · 4 comments
Labels
discuss enhancement New feature or request

Comments

@justinkambic
Copy link

justinkambic commented May 30, 2019

Is your feature request related to a problem? Please describe.
Today, we allow the persistence of app state in the URL's query parameters like so:
image

It would be better if we could allow smaller keys so the URL doesn't get so long:

http://localhost:5601/app/uptime#/?autorefreshInterval=45000&autorefreshIsPaused=false&dateRangeStart=now-15m&dateRangeEnd=now&search=&selectedPingStatus=up

..would be shortened to:

http://localhost:5601/app/uptime#/?ai=45000&ap=f&ds=now-15m&de=now&q=&ps=up

Describe the solution you'd like
We will continue to support the existing keys but internally we will render the URL params with their shortened variants.

Describe alternatives you've considered
The alternative is doing nothing, as this feature already works.

Additional context
N/A

@justinkambic justinkambic added enhancement New feature or request discuss labels May 30, 2019
@andrewvc
Copy link
Contributor

andrewvc commented Jun 4, 2019

I like this idea! Agreed that it's not the highest priority ATM however.

@dov0211
Copy link

dov0211 commented Jun 4, 2019

In case we would remove time picker will this still be relevant?

@justinkambic
Copy link
Author

In case we would remove time picker will this still be relevant?

Yes - we would still pass the URL params between pages, including Overview.

@andrewvc
Copy link
Contributor

We could use rison for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants