AntonShuvaev / elasticsearch4idea

Elasticsearch Plugin for JetBrains IDEs
https://plugins.jetbrains.com/plugin/14512-elasticsearch
58 stars 8 forks source link

Keep columns filtering/order when query changes in REST Console table view on error #151

Open SosthenG opened 2 months ago

SosthenG commented 2 months ago

Is your feature request related to a problem?

Yes, to test a query I need to see only specific fields in a custom order so I use the "filter fields" option and move the columns in the order I need. EDIT: When an error occurs after I modify a query, the filtered fields & the order is lost. When I modify the query: the filtered fields & the order is lost.

Describe the solution you'd like

EDIT: Keep the saved order and filters even when an error occurs.

Additional context

Of course for the "filter fields" part, the workaround is to just filter the source in the query which I did, but I don't have a workaround for the column order.

SosthenG commented 2 months ago

Well after I wrote this I noticed that I did not reproduced everytime. It seems to only happens when an error occurs. As when debugging a query errors (even just syntax) will probably occurs, it would be nice if the order/filters were preserved.