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

Implement stored searches #88

Open
ricardogsilva opened this issue Feb 10, 2021 · 0 comments
Open

Implement stored searches #88

ricardogsilva opened this issue Feb 10, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@ricardogsilva
Copy link
Member

ricardogsilva commented Feb 10, 2021

In order make restoring previous searches easier, lets allow the user to save and load search parameters. We already have some of the GUI elements in place, now we need to make them work.

Allow the saving the search parameters in QgsSettings. These shall be saved under the relevant connection key, so that each connection has its own set of stored searches. Additionally, each search shall have a unique id that is never shown to the user and is only used for organizing the settings. A search shall also have a _search_title, which is used as the name of the search for letting the user select it.

Allow restoring saved search parameters too.

# this is a title chosen by the user to refer to the stored search, 
# it is used for showing the stored search in the GUI
qgis_geonode/connections/{connection-uuid}/stored_searches/{search-uuid}/_search_title  

# in this snippet, {search-parameter} is to be replaced with 
# `title`, `abstract`, `category`, etc. This means that there 
# should be a key for each parameter of the search
qgis_geonode/connections/{connection-uuid}/stored_searches/{search-uuid}/{search-parameter}
@ricardogsilva ricardogsilva added size: 5 enhancement New feature or request labels Feb 10, 2021
@ricardogsilva ricardogsilva added this to the First production-ready release milestone Feb 10, 2021
@ricardogsilva ricardogsilva removed this from the First production-ready release milestone Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants