fleetdm / fleet

Open-source platform for IT, security, and infrastructure teams. (Linux, macOS, Chrome, Windows, cloud, data center)
https://fleetdm.com
Other
3.18k stars 435 forks source link

Has anyone proposed a command history in the Fleet query field? #16240

Open nonpunctual opened 10 months ago

nonpunctual commented 10 months ago

How might this have a positive effect on your organization?

It might make it a little easier to do testing of queries. I use a macOS clipboard history utility so I am a click away from my copy/pastes but not everyone does.

What is the current situation? Why does the current situation hurt?

Many admins are used to having up arrow key / down arrow key access to command history in a shell or Terminal.

What are you doing right now to work around this issue? What's non-ideal about it?

Copying & pasting.

Problem

The query field in Fleet accepts multiple numbered lines but has no command history. I think a reasonable cache might be the last 100 queries or something like that, it's potentially a pretty small amount of data, but I suppose browser state might be an issue for this capability to work seamlessly.

Potential solutions

Add a cache in the web app for command history data & a persistence cookie & maybe clear it out after 7d or 100 or the end of a session persistence token or however it works.

THANKS!!!!!

noahtalerman commented 9 months ago

Heads up @nonpunctual, this feature request was brought to feature fest on 2024-02-15 and wasn't prioritized for the current design sprint.