[ML] Increase max data frames in list from 100 to 1000 (#38973)

This commit is contained in:
Pete Harverson 2019-06-14 14:32:55 +01:00 committed by GitHub
parent c33c8877dd
commit 1a03c5135b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,10 +105,13 @@ export const elasticsearchJsPlugin = (Client, config, components) => {
method: 'POST'
});
// Currently the endpoint uses a default size of 100 unless a size is supplied.
// So until paging is supported in the UI, explicitly supply a size of 1000
// to match the max number of docs that the endpoint can return.
ml.getDataFrameTransforms = ca({
urls: [
{
fmt: '/_data_frame/transforms',
fmt: '/_data_frame/transforms/_all?size=1000',
}
],
method: 'GET'
@ -125,7 +128,10 @@ export const elasticsearchJsPlugin = (Client, config, components) => {
}
},
{
fmt: '/_data_frame/transforms/_stats',
// Currently the endpoint uses a default size of 100 unless a size is supplied.
// So until paging is supported in the UI, explicitly supply a size of 1000
// to match the max number of docs that the endpoint can return.
fmt: '/_data_frame/transforms/_all/_stats?size=1000',
}
],
method: 'GET'