Conversation
|
Hi @enricofer, thank you for your interest in the project and for the pull request! The idea of the Search History sounds interesting, and I wonder how it could play with #1 (Saved search queries). These concepts are a bit different, but at the end of the day, they solve the same problem - enable past queries re-use. Saved search queries feature seem to be slightly more powerful because users could give friendly names to the queries and also share them with others. However, it would require an explicit action from the user - click Save to save a query. Automated search history doesn't require any clicks and the interface implementation is simpler, but it won't allow users to give names to their queries or share queries with others. Could it be possible to find an interface concept that would combine benefits from both features - History and Saved Queries? That would be great if we could find such concept. If not, then most likely we'll have to choose between History and Saved Queries, i.e. implement only one of these, but not both. Does it make sense? What do you think? |
|
Hi @stebunovd, Regarding my PR, I was thinking that history should be filtered by user (as it is) but furthermore by model otherwise if djangoql is used in a multimodel web app, the history list is likely to mix queries on different models that could bring issues and unclearness. Even the search bookmarks should be filtered by models. And this is why I would not overload the save query next with user sharing, because this can be easily achevied copying and pasting the query in the completion textbox making the user aware of what he is doing. I would prefer making "public" my personal search bookmarks, making them visible in all other user bookmarks list. |
I included a search history model to track queries per user.

Search history is loaded in completion listbox and the selected query is performed on click.
Djangoql app has to be migrated in order to register the new history model.
I hope you will find it useful.
Regards
Enrico