Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some filter should run once #5539

Closed
bufferflies opened this issue Sep 21, 2022 · 0 comments · Fixed by #5544
Closed

some filter should run once #5539

bufferflies opened this issue Sep 21, 2022 · 0 comments · Fixed by #5544
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@bufferflies
Copy link
Contributor

bufferflies commented Sep 21, 2022

The storeStateFilter, SpecialUseFilter, RegionScoreFilter can be run once , not every target.
some related code:

filters := []filter.Filter{
filter.NewExcludedFilter(s.GetName(), nil, solver.region.GetStoreIDs()),
filter.NewPlacementSafeguard(s.GetName(), solver.GetOpts(), solver.GetBasicCluster(), solver.GetRuleManager(), solver.region, solver.source),
filter.NewRegionScoreFilter(s.GetName(), solver.source, solver.GetOpts()),
filter.NewSpecialUseFilter(s.GetName()),
&filter.StoreStateFilter{ActionScope: s.GetName(), MoveRegion: true},
}

@ti-chi-bot ti-chi-bot added the needs-type Indicates an issue requires a type label. label Sep 21, 2022
@rleungx rleungx added the type/enhancement The issue or PR belongs to an enhancement. label Sep 30, 2022
@ti-chi-bot ti-chi-bot removed the needs-type Indicates an issue requires a type label. label Sep 30, 2022
ti-chi-bot added a commit that referenced this issue Oct 13, 2022
ti-chi-bot added a commit that referenced this issue Oct 18, 2022
close #5539

Signed-off-by: bufferflies <[email protected]>

Co-authored-by: Ti Chi Robot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants