diff --git a/nebula-logger/extra-tests/flows/LogHandler_Tests_Flow.flow-meta.xml b/nebula-logger/extra-tests/flows/LogHandler_Tests_Flow.flow-meta.xml deleted file mode 100644 index 8ea80e029..000000000 --- a/nebula-logger/extra-tests/flows/LogHandler_Tests_Flow.flow-meta.xml +++ /dev/null @@ -1,213 +0,0 @@ - - - - Log_user_after_updating - - 176 - 638 - FlowRecordLogEntry - apex - - T__record - User - - CurrentTransaction - - loggingLevelName - - INFO - - - - saveLog - - true - - - - tagsString - - flow tag - - - - flowName - - LogHandler_Tests_Flow - - - - message - - Logging user after updating - - - - record - - Get_current_user - - - true - - - Log_user_before_updating - - 176 - 278 - FlowRecordLogEntry - apex - - Update_user_s_first_name - - - T__record - User - - CurrentTransaction - - loggingLevelName - - INFO - - - - tagsString - - flow tag - - - - flowName - - LogHandler_Tests_Flow - - - - message - - Logging user before updating - - - - record - - Get_current_user - - - true - - 54.0 - - Update_user_s_first_name - - 176 - 398 - - Get_current_user.FirstName - Assign - - Logger-Flow-Test - - - - Save_current_user - - - An additional Flow used test dynamically running Flow plugins from LoggerSObjectHandler - LogHandler_Tests_Flow {!$Flow.CurrentDateTime} - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - AUTO_LAYOUT_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - AutoLaunchedFlow - - Get_current_user - - 176 - 158 - false - - Log_user_before_updating - - and - - Id - EqualTo - - $User.Id - - - true - User - true - - - Save_current_user - - 176 - 518 - - Log_user_after_updating - - Get_current_user - - DefaultMode - - 50 - 0 - - Get_current_user - - - Active - - Used by test class to verify that the Flow ran successfully - ranSuccessfully - Boolean - false - false - true - - false - - - - records - SObject - true - true - false - Log__c - - - triggerOld - SObject - true - true - false - Log__c - - - triggerOperationType - String - false - true - false - - diff --git a/nebula-logger/extra-tests/tests/LogHandler_Tests_Flow.cls b/nebula-logger/extra-tests/tests/LogHandler_Tests_Flow.cls deleted file mode 100644 index c37fc4ae5..000000000 --- a/nebula-logger/extra-tests/tests/LogHandler_Tests_Flow.cls +++ /dev/null @@ -1,38 +0,0 @@ -//------------------------------------------------------------------------------------------------// -// This file is part of the Nebula Logger project, released under the MIT License. // -// See LICENSE file or go to https://github.com/jongpie/NebulaLogger for full license details. // -//------------------------------------------------------------------------------------------------// - -@SuppressWarnings('PMD.ApexDoc, PMD.CyclomaticComplexity, PMD.ExcessiveParameterList, PMD.MethodNamingConventions, PMD.NcssMethodCount') -@IsTest -private class LogHandler_Tests_Flow { - // TODO Rename this class + Flow to LoggerSObjectHandler_Tests_Flow? - @IsTest - static void runFlowPluginWhenConfigured() { - // Assumption: the Flow LogHandler_Tests_Flow makes an update to the current user's FirstName - // The specific action within the Flow isn't that important - we just want to make sure - // that that Flow is dynamically executed - String pluginFlowApiName = 'LogHandler_Tests_Flow'; - String expectedUserFirstName = 'Logger-Flow-Test'; - System.assertNotEquals(expectedUserFirstName, UserInfo.getFirstName(), 'Current user first name did not match expected user first name.'); - - Test.startTest(); - - // Use the mock configurations - LoggerPlugin__mdt plugin = new LoggerPlugin__mdt( - DeveloperName = 'ExampleFlowPlugin', - IsEnabled__c = true, - SObjectHandlerFlowName__c = pluginFlowApiName - ); - LoggerPlugin.setMock(plugin); - - Log__c log = new Log__c(TransactionId__c = '1234'); - insert log; - - Test.stopTest(); - - // Verify that the Flow ran by checking if the user's FirstName was updated - User currentUser = [SELECT Id, FirstName FROM User WHERE Id = :UserInfo.getUserId()]; - System.assertEquals(expectedUserFirstName, currentUser.FirstName, 'Current user FirstName did not match expected user first name.'); - } -} diff --git a/nebula-logger/extra-tests/tests/LogHandler_Tests_Flow.cls-meta.xml b/nebula-logger/extra-tests/tests/LogHandler_Tests_Flow.cls-meta.xml deleted file mode 100644 index 891916bb0..000000000 --- a/nebula-logger/extra-tests/tests/LogHandler_Tests_Flow.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 54.0 - Active - diff --git a/nebula-logger/plugins/big-object-archiving/plugin/classes/LogEntryArchiveController_Tests.cls b/nebula-logger/plugins/big-object-archiving/plugin/classes/LogEntryArchiveController_Tests.cls index 60084972d..b1731760f 100644 --- a/nebula-logger/plugins/big-object-archiving/plugin/classes/LogEntryArchiveController_Tests.cls +++ b/nebula-logger/plugins/big-object-archiving/plugin/classes/LogEntryArchiveController_Tests.cls @@ -3,6 +3,7 @@ // See LICENSE file or go to https://github.com/jongpie/NebulaLogger for full license details. // //------------------------------------------------------------------------------------------------// +@SuppressWarnings('PMD.MethodNamingConventions, PMD.PropertyNamingConventions') @IsTest private class LogEntryArchiveController_Tests { private static final String FAKE_TRANSACTION_ID = '1234'; diff --git a/nebula-logger/plugins/big-object-archiving/plugin/lwc/logEntryArchives/logEntryArchives.js b/nebula-logger/plugins/big-object-archiving/plugin/lwc/logEntryArchives/logEntryArchives.js index f90b37928..df66b94d7 100644 --- a/nebula-logger/plugins/big-object-archiving/plugin/lwc/logEntryArchives/logEntryArchives.js +++ b/nebula-logger/plugins/big-object-archiving/plugin/lwc/logEntryArchives/logEntryArchives.js @@ -13,6 +13,7 @@ export default class LogEntryArchives extends LightningElement { getLogEntryArchives().then(results => { this.logEntryArchives = JSON.parse(JSON.stringify(results)); + /* eslint-disable-next-line no-console */ console.info('Loaded LogEntryArchive__b records', this.logEntryArchives); }); } diff --git a/nebula-logger/recipes/profiles/Admin.profile-meta.xml b/nebula-logger/recipes/profiles/Admin.profile-meta.xml index 66a7ff1b3..477afae05 100644 --- a/nebula-logger/recipes/profiles/Admin.profile-meta.xml +++ b/nebula-logger/recipes/profiles/Admin.profile-meta.xml @@ -149,10 +149,6 @@ LogHandler_Tests true - - LogHandler_Tests_Flow - true - LogMassDeleteExtension true