kolide / fleet

A flexible control server for osquery fleets
https://kolide.com/fleet
MIT License
1.1k stars 260 forks source link

Distributed Query History #2068

Open jalseth opened 5 years ago

jalseth commented 5 years ago

It would be nice if the Fleet UI maintained a history of recent distributed queries run by the user to make writing and iterating on queries easier.

This history doesn't need to be stored on the server (although I believe these are already stored in the queries table with a distributed_ prefix on the name column), it's fine if the history is lost by closing the tab/window.

zwass commented 5 years ago

Good idea! This should not be too hard to do, but we'll need to figure out how to display it in the UI. Thoughts?

jalseth commented 5 years ago

I'd like it to be a collapsable accordian with a table listing the query and datetime, probably located below the description box. It should start collapsed as well, only showing the history if the user clicks on it. Also, clicking on an entry in the table should populate the query into the SQL input box.