Files
Yichao YangandGitHub de3aa87e1a Improve multi-cursor actions (#8416)
## What changed?
- Introduced a new "move (task) group" action replacing the "incorrect"
slice-predicate action. See inline comment for how it works.
- Improve task Predicate AND/OR calculation to reduce predicate size.
- Skip empty slices when adding queue slices to readers.

## Why?
- Better namespace isolation.

## How did you test it?
- [x] built
- [x] run locally and tested manually
- [ ] covered by existing tests
- [x] added new unit test(s)
- [ ] added new functional test(s)

## Potential risks
- The new action can be disabled via dc.
2025-10-02 22:48:23 -07:00

11 lines
235 B
Go

package queues
type (
// Action is a set of operations that can be run on a ReaderGroup.
// It is created and run by Mitigator upon receiving an Alert.
Action interface {
Name() string
Run(*ReaderGroup) (actionTaken bool)
}
)