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

[Feature] Implementation of saving in Saved Queries not only query text and filters, but also index patters and Selected fields #5812

Closed
kinseii opened this issue Feb 6, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@kinseii
Copy link

kinseii commented Feb 6, 2024

Is your feature request related to a problem? Please describe.

The Save Queries option does not save the index pattern and Selected fields. If you load a saved query, these fields are reset, which is very inconvenient because we use many different queries and we have to manually set the necessary patterns and fields.

Describe the solution you'd like

Implement the ability to save index pattern and Selected fields in the Save Queries.

Versions:
OpenSearch 2.11.1
OpenSearch Dashboards 2.11.1
AKS 1.27.7

@kinseii kinseii added the enhancement New feature or request label Feb 6, 2024
@kinseii kinseii changed the title Implementation of saving in Saved Queries not only query text and filters, but also index patters and Selected fields [FEATURE] Implementation of saving in Saved Queries not only query text and filters, but also index patters and Selected fields Feb 7, 2024
@kinseii kinseii changed the title [FEATURE] Implementation of saving in Saved Queries not only query text and filters, but also index patters and Selected fields [Feature] Implementation of saving in Saved Queries not only query text and filters, but also index patters and Selected fields Feb 8, 2024
@ananzh
Copy link
Member

ananzh commented Feb 9, 2024

I believe index patterns and fields can be saved in saved objects. For example, in Discover, we implement saved search on top of saved object which can save idx and selected fields to the table. Same for visualization. Therefore, we could this to save and select the saved query. Do you think this could satisfy your needs? Is there any specific pain for using both of them?

@kinseii
Copy link
Author

kinseii commented Feb 13, 2024

@ananzh
I apologize, I'm not quite sure what you mean. If this is a suggestion for implementing such behavior, then I agree. We use Discover and Saved Queries in the Search field (3.5" floppy disk icon). If you mean that this is already implemented, when I load any Saved Query (to the left of Search the 3.5" floppy disk icon), the Index Templates and Selected Fields fields are reset.

@kinseii
Copy link
Author

kinseii commented Feb 15, 2024

@ananzh
I apologize, I think I understand, yes, we agree that in both cases we can use it. Thank you very much for your reply!

@kinseii
Copy link
Author

kinseii commented Mar 1, 2024

@abbyhu2000
@ananzh
Guys, I may have misunderstood you. It seemed to me that you can implement this functionality. But if you have already done it, please send a link to PR. In the new version 2.12 the behavior of Saved Queries has not changed.

@kinseii
Copy link
Author

kinseii commented Mar 1, 2024

@abbyhu2000
@ananzh
Please reopen this Issue.

The thing is that saving Index Pattern and Selected fields to Saved queries does not work. I check both boxes to save the search, but only query itself and Time filter is saved. When I load Saved Query, the Index Pattern is reset to the default Index Pattern and the Selected fields are completely removed, and only query itself and Time filter loads correctly.

OpenSearch v2.12.0
OpenSearch Dashboards v2.12.0
AKS v1.27.9

Please help, here the screenshot of Saved Query:

image

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

3 participants