-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
[ML] Get ML filters size should default to 100 #54207
[ML] Get ML filters size should default to 100 #54207
Conversation
When get filters is called without setting the `size` paramter only up to 10 filters are returned. However, 100 filters should be returned. This commit fixes this and adds an integ test to guard it. It seems this was accidentally broken in elastic#39976. Closes elastic#54206
Pinging @elastic/ml-core (:ml) |
// nothing to clean | ||
} | ||
|
||
public void testGetFilters_ShouldReturnUpTo100ByDefault() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#nit
This seems like a very expensive test. Spinning up 3 nodes and native processes to make filter API calls.
I suppose it is thorough. Might could move to our single node internal cluster tests at some point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. I fixed it.
When get filters is called without setting the `size` paramter only up to 10 filters are returned. However, 100 filters should be returned. This commit fixes this and adds an integ test to guard it. It seems this was accidentally broken in elastic#39976. Closes elastic#54206 Backport of elastic#54207
When get filters is called without setting the
size
parameter only up to 10 filters are returned. However,
100 filters should be returned. This commit fixes this
and adds an integ test to guard it.
It seems this was accidentally broken in #39976.
Closes #54206