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

Disable bfetch in serverless #183096

Merged
merged 9 commits into from
May 30, 2024
1 change: 1 addition & 0 deletions config/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ xpack.actions.queued.max: 10000
uiSettings:
overrides:
enableESQL: true
bfetch:disable: true

# Task Manager
xpack.task_manager.allow_reading_invalid_state: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
);
await kibanaServer.uiSettings.replace({
defaultIndex: 'logstash-*',
'bfetch:disable': true,
// 'bfetch:disable': true, // bfetch is already disabled in serverless
// TODO: Removed ES|QL setting since ES|QL isn't supported in Serverless
});
await PageObjects.timePicker.setDefaultAbsoluteRangeViaUiSettings();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,22 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await PageObjects.svlCommonPage.loginAsAdmin();
});

describe('with bfetch', () => {
testSearchExample();
});
// bfetch is disabled in serverless
// describe('with bfetch', () => {
// testSearchExample();
// });

describe('no bfetch', () => {
const kibanaServer = getService('kibanaServer');
before(async () => {
await kibanaServer.uiSettings.replace({
'bfetch:disable': true,
});
});
after(async () => {
await kibanaServer.uiSettings.unset('bfetch:disable');
});
// No need to disable since it is disabled in serverless.yml
// const kibanaServer = getService('kibanaServer');
// before(async () => {
// await kibanaServer.uiSettings.replace({
// 'bfetch:disable': true,
// });
// });
// after(async () => {
// await kibanaServer.uiSettings.unset('bfetch:disable');
// });

testSearchExample();
});
Expand Down