[APM] Remove usage of refresh=true in agent configuration and custom links (#161346)

Closes https://github.com/elastic/kibana/issues/158135
This commit is contained in:
Miriam 2023-07-10 07:49:29 +02:00 committed by GitHub
parent b06fb1a109
commit 106bb331e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -26,7 +26,7 @@ export function createOrUpdateConfiguration({
internalESClient: APMInternalESClient;
}) {
const params: APMIndexDocumentParams<AgentConfiguration> = {
refresh: true,
refresh: 'wait_for' as const,
index: APM_AGENT_CONFIGURATION_INDEX,
body: {
agent_name: configurationIntake.agent_name,

View file

@ -41,7 +41,7 @@ describe('Create or Update Custom link', () => {
expect(internalClientIndexMock).toHaveBeenCalledWith(
'create_or_update_custom_link',
{
refresh: true,
refresh: 'wait_for',
index: '.apm-custom-link',
body: {
'@timestamp': 1570737000000,
@ -62,7 +62,7 @@ describe('Create or Update Custom link', () => {
expect(internalClientIndexMock).toHaveBeenCalledWith(
'create_or_update_custom_link',
{
refresh: true,
refresh: 'wait_for',
index: '.apm-custom-link',
id: 'bar',
body: {

View file

@ -26,7 +26,7 @@ export function createOrUpdateCustomLink({
internalESClient: APMInternalESClient;
}) {
const params: APMIndexDocumentParams<CustomLinkES> = {
refresh: true,
refresh: 'wait_for' as const,
index: APM_CUSTOM_LINK_INDEX,
body: {
'@timestamp': Date.now(),