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

This commit is contained in:
Pete Harverson 2019-06-14 15:35:17 +01:00 committed by GitHub
parent d3f4401b4c
commit 9a943672ed
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) => { // eslint
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) => { // eslint
}
},
{
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'