Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
2.11.1
Describe the issue:
I am trying to create a button within discover that updates a specific field in a data record in the database. I am able to run a query using DQL in dev tools to achieve this, I would like to replicate this functionality within the Data Grid Flyout of Discover. I have mapped the functionality from Console to Discover to do this but I am struggling to put all of the pieces together. I’m looking for guidance on best practices when trying to update data in the dashboards:
- Is it advisable to replicate what the Console plugin does and use DQL?
- Is there a better way to access and update the Opensearch DB with/without a DQL query?
- What existing code can I leverage from the console/discover to make an edit?