fleetdm / fleet

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

UA: ensure the pending behavior is still correct #23921

Open mna opened 3 days ago

mna commented 3 days ago

Prior to the unified queue, the pending upcoming activities were all stored in their "final" tables - e.g. nano_commands, host_script_results, etc. but with some NULL column indicating that the actual result was pending. Some fleet behavior depended on that - e.g. summaries of host counts by state, deletion of pending script execution when a script is modified, etc.

We need to ensure those "pending state" behaviors are adjusted to work properly in the new unified queue world.

Most (possibly all?) of those places where the "pending" state depended on the upcoming activity to be in its final table were captured in the brainstorm document: