-
Notifications
You must be signed in to change notification settings - Fork 8.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] Add API tests for filters stats endpoint #135118
[ML] Add API tests for filters stats endpoint #135118
Conversation
Pinging @elastic/ml-ui (:ml) |
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.
LGTM with just one small suggestion for this PR or a follow-up.
x-pack/test/api_integration/apis/ml/filters/get_filters_stats.ts
Outdated
Show resolved
Hide resolved
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.
In contrast to what I thought, It turns out that eql
doesn't like different sorting of compared arrays . so we should sort the arrays before comparing them. Also a small suggestion to simplify the assertions.
x-pack/test/api_integration/apis/ml/filters/get_filters_stats.ts
Outdated
Show resolved
Hide resolved
x-pack/test/api_integration/apis/ml/filters/get_filters_stats.ts
Outdated
Show resolved
Hide resolved
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.
Latest changes LGTM
LGTM 🎉 |
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
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.
LGTM
Summary
Adds tests to check the response of the filters stats endpoint:
/api/ml/filters/_stats
Part of #133871
Checklist