mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 19:13:14 -04:00
## Summary Introducing the `search_homepage` plugin along with integration into `enterprise_search` and `serverless_search` behind a feature flag. This will allow implementing the feature gated behind the feature flag. To test these changes you can enable the feature flag with the Kibana Dev Console using the following command: ``` POST kbn:/internal/kibana/settings/searchHomepage:homepageEnabled {"value": true} ``` You can then disable the feature flag with the following command: ``` DELETE kbn:/internal/kibana/settings/searchHomepage:homepageEnabled ``` ### Checklist - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
32 lines
1.2 KiB
TypeScript
32 lines
1.2 KiB
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
import { FtrProviderContext } from '../ftr_provider_context';
|
|
import { RoleCredentials } from '../../shared/services';
|
|
|
|
export function UISettingsServiceProvider({ getService }: FtrProviderContext) {
|
|
const svlCommonApi = getService('svlCommonApi');
|
|
const supertestWithoutAuth = getService('supertestWithoutAuth');
|
|
|
|
return {
|
|
async setUiSetting(role: RoleCredentials, settingId: string, value: unknown) {
|
|
await supertestWithoutAuth
|
|
.post(`/internal/kibana/settings/${settingId}`)
|
|
.set(svlCommonApi.getInternalRequestHeader())
|
|
.set(role.apiKeyHeader)
|
|
.send({ value })
|
|
.expect(200);
|
|
},
|
|
async deleteUISetting(role: RoleCredentials, settingId: string) {
|
|
await supertestWithoutAuth
|
|
.delete(`/internal/kibana/settings/${settingId}`)
|
|
.set(svlCommonApi.getInternalRequestHeader())
|
|
.set(role.apiKeyHeader)
|
|
.expect(200);
|
|
},
|
|
};
|
|
}
|