From 9a198711b090cda3cab2cc0bafa0172e329029b9 Mon Sep 17 00:00:00 2001 From: Jason Stoltzfus Date: Wed, 4 Nov 2020 09:18:23 -0500 Subject: [PATCH] Rename logsRetentionUpdating --- .../log_retention/log_retention_logic.test.ts | 34 +++++++++---------- .../log_retention/log_retention_logic.ts | 4 +-- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/x-pack/plugins/enterprise_search/public/applications/app_search/components/settings/log_retention/log_retention_logic.test.ts b/x-pack/plugins/enterprise_search/public/applications/app_search/components/settings/log_retention/log_retention_logic.test.ts index 9659634ecacb2..e7c07298ca631 100644 --- a/x-pack/plugins/enterprise_search/public/applications/app_search/components/settings/log_retention/log_retention_logic.test.ts +++ b/x-pack/plugins/enterprise_search/public/applications/app_search/components/settings/log_retention/log_retention_logic.test.ts @@ -50,7 +50,7 @@ describe('LogRetentionLogic', () => { const DEFAULT_VALUES = { logRetention: null, openedModal: null, - logsRetentionUpdating: false, + isLogRetentionUpdating: false, }; const mount = (defaults?: object) => { @@ -113,34 +113,34 @@ describe('LogRetentionLogic', () => { }); }); - describe('logsRetentionUpdating', () => { - it('resets logsRetentionUpdating to false', () => { + describe('isLogRetentionUpdating', () => { + it('resets isLogRetentionUpdating to false', () => { mount({ - logsRetentionUpdating: true, + isLogRetentionUpdating: true, }); LogRetentionLogic.actions.closeModals(); expect(LogRetentionLogic.values).toEqual({ ...DEFAULT_VALUES, - logsRetentionUpdating: false, + isLogRetentionUpdating: false, }); }); }); }); describe('clearLogRetentionUpdating', () => { - describe('logsRetentionUpdating', () => { - it('resets logsRetentionUpdating to false', () => { + describe('isLogRetentionUpdating', () => { + it('resets isLogRetentionUpdating to false', () => { mount({ - logsRetentionUpdating: true, + isLogRetentionUpdating: true, }); LogRetentionLogic.actions.clearLogRetentionUpdating(); expect(LogRetentionLogic.values).toEqual({ ...DEFAULT_VALUES, - logsRetentionUpdating: false, + isLogRetentionUpdating: false, }); }); }); @@ -250,17 +250,17 @@ describe('LogRetentionLogic', () => { }); describe('toggleLogRetention', () => { - describe('logsRetentionUpdating', () => { - it('sets logsRetentionUpdating to true', () => { + describe('isLogRetentionUpdating', () => { + it('sets isLogRetentionUpdating to true', () => { mount({ - logsRetentionUpdating: false, + isLogRetentionUpdating: false, }); LogRetentionLogic.actions.toggleLogRetention(ELogRetentionOptions.Analytics); expect(LogRetentionLogic.values).toEqual({ ...DEFAULT_VALUES, - logsRetentionUpdating: true, + isLogRetentionUpdating: true, }); }); }); @@ -316,17 +316,17 @@ describe('LogRetentionLogic', () => { }); describe('fetchLogRetention', () => { - describe('logsRetentionUpdating', () => { - it('sets logsRetentionUpdating to true', () => { + describe('isLogRetentionUpdating', () => { + it('sets isLogRetentionUpdating to true', () => { mount({ - logsRetentionUpdating: false, + isLogRetentionUpdating: false, }); LogRetentionLogic.actions.fetchLogRetention(); expect(LogRetentionLogic.values).toEqual({ ...DEFAULT_VALUES, - logsRetentionUpdating: true, + isLogRetentionUpdating: true, }); }); }); diff --git a/x-pack/plugins/enterprise_search/public/applications/app_search/components/settings/log_retention/log_retention_logic.ts b/x-pack/plugins/enterprise_search/public/applications/app_search/components/settings/log_retention/log_retention_logic.ts index 2b261545e98aa..e2553fbd47e18 100644 --- a/x-pack/plugins/enterprise_search/public/applications/app_search/components/settings/log_retention/log_retention_logic.ts +++ b/x-pack/plugins/enterprise_search/public/applications/app_search/components/settings/log_retention/log_retention_logic.ts @@ -26,7 +26,7 @@ interface ILogRetentionActions { interface ILogRetentionValues { logRetention: ILogRetention | null; - logsRetentionUpdating: boolean; + isLogRetentionUpdating: boolean; openedModal: ELogRetentionOptions | null; } @@ -59,7 +59,7 @@ export const LogRetentionLogic = kea false,