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

Create a better way to "Make Saved Search" from the Search UI #11592

Open
whatisgalen opened this issue Oct 30, 2024 · 0 comments
Open

Create a better way to "Make Saved Search" from the Search UI #11592

whatisgalen opened this issue Oct 30, 2024 · 0 comments

Comments

@whatisgalen
Copy link
Member

Currently, a user copies the url from a search query and pastes this into the "saved search" url field. The reasons this isn't ideal are:

  • migrating saved searches data from one instance to another (e.g. dev to prod) carries the baggage of the different host names (which then must be manually changed)
  • the url only contains query parameters for GET requests -- longer requests (involving geojson filtering) may get made as POST, thus not showing up in the url parameters due to character limits
  • the http encoding of the url can make the search request very hard to visually parse; a better representation would be key: value a la json object

*As a side note, a related issue with the saved searches UX is that it reloads the entire page. Search is basically a progressive web app, so it should just mutate the query based on whatever the saved search query params were, not reload the entire page.

What might a potential solution be?

A user with high enough permissions could click a button labeled "Make saved Search" which copies the current query parameters to a json object, storing that in the saved search tile.

@whatisgalen whatisgalen changed the title Create a way to "Make Saved Search" from the Search UI Create a better way to "Make Saved Search" from the Search UI Oct 30, 2024
@chiatt chiatt added this to pipeline Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant