From 6136d93048a7d819f5024ffc52a585452b696c9d Mon Sep 17 00:00:00 2001 From: Philipp Zehnder Date: Fri, 5 Jul 2024 09:19:17 +0200 Subject: [PATCH] fix(#2997): Fix default selection for timestamp rule (#2998) --- .../tests/adapter/fileStream.smoke.spec.ts | 40 ++++++++++--------- .../edit-timestamp-property.component.html | 2 +- .../edit-timestamp-property.component.ts | 20 ++++++---- 3 files changed, 34 insertions(+), 28 deletions(-) diff --git a/ui/cypress/tests/adapter/fileStream.smoke.spec.ts b/ui/cypress/tests/adapter/fileStream.smoke.spec.ts index c93bbb6ba5..ebf1815dfc 100644 --- a/ui/cypress/tests/adapter/fileStream.smoke.spec.ts +++ b/ui/cypress/tests/adapter/fileStream.smoke.spec.ts @@ -85,24 +85,26 @@ describe( ); }); - // it('File Stream adapter with unix timestamp in milliseconds', () => { - // FileManagementUtils.addFile('connect/fileReplay/timestampInMilliseconds/input.csv'); - // const adapterConfiguration = - // ConnectUtils.setUpPreprocessingRuleTest(false); - // - // // Edit timestamp property - // ConnectEventSchemaUtils.editTimestampPropertyWithNumber( - // 'timestamp', - // 'Milliseconds', - // ); - // - // ConnectEventSchemaUtils.finishEventSchemaConfiguration(); - // ConnectUtils.tearDownPreprocessingRuleTest( - // adapterConfiguration, - // 'cypress/fixtures/connect/fileReplay/timestampInMilliseconds/expected.csv', - // false, - // 2000, - // ); - // }); + it('File Stream adapter with unix timestamp in milliseconds', () => { + FileManagementUtils.addFile( + 'connect/fileReplay/timestampInMilliseconds/input.csv', + ); + const adapterConfiguration = + ConnectUtils.setUpPreprocessingRuleTest(false); + + // Edit timestamp property + ConnectEventSchemaUtils.editTimestampPropertyWithNumber( + 'timestamp', + 'Milliseconds', + ); + + ConnectEventSchemaUtils.finishEventSchemaConfiguration(); + ConnectUtils.tearDownPreprocessingRuleTest( + adapterConfiguration, + 'cypress/fixtures/connect/fileReplay/timestampInMilliseconds/expected.csv', + false, + 2000, + ); + }); }, ); diff --git a/ui/src/app/connect/dialog/edit-event-property/components/edit-value-transformation/edit-timestamp-property/edit-timestamp-property.component.html b/ui/src/app/connect/dialog/edit-event-property/components/edit-value-transformation/edit-timestamp-property/edit-timestamp-property.component.html index da7236b67b..8b5ffd30d7 100644 --- a/ui/src/app/connect/dialog/edit-event-property/components/edit-value-transformation/edit-timestamp-property/edit-timestamp-property.component.html +++ b/ui/src/app/connect/dialog/edit-event-property/components/edit-value-transformation/edit-timestamp-property/edit-timestamp-property.component.html @@ -64,7 +64,7 @@ Milliseconds