diff --git a/README.md b/README.md index 312973a8c..cb5dc16f3 100644 --- a/README.md +++ b/README.md @@ -5,15 +5,15 @@ The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects. -## Unlocked Package - v4.14.2 +## Unlocked Package - v4.14.3 -[![Install Unlocked Package in a Sandbox](./images/btn-install-unlocked-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000015oQZQAY) -[![Install Unlocked Package in Production](./images/btn-install-unlocked-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000015oQZQAY) +[![Install Unlocked Package in a Sandbox](./images/btn-install-unlocked-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000015oQjQAI) +[![Install Unlocked Package in Production](./images/btn-install-unlocked-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000015oQjQAI) [![View Documentation](./images/btn-view-documentation.png)](https://jongpie.github.io/NebulaLogger/) -`sf package install --wait 20 --security-type AdminsOnly --package 04t5Y0000015oQZQAY` +`sf package install --wait 20 --security-type AdminsOnly --package 04t5Y0000015oQjQAI` -`sfdx force:package:install --wait 20 --securitytype AdminsOnly --package 04t5Y0000015oQZQAY` +`sfdx force:package:install --wait 20 --securitytype AdminsOnly --package 04t5Y0000015oQjQAI` --- diff --git a/nebula-logger/core/main/log-management/flexipages/LogEntryRecordPage.flexipage-meta.xml b/nebula-logger/core/main/log-management/flexipages/LogEntryRecordPage.flexipage-meta.xml index 162cd20fa..edb84d90b 100644 --- a/nebula-logger/core/main/log-management/flexipages/LogEntryRecordPage.flexipage-meta.xml +++ b/nebula-logger/core/main/log-management/flexipages/LogEntryRecordPage.flexipage-meta.xml @@ -1103,7 +1103,7 @@ flexipage:fieldSection flexipage_fieldSection8 - 1 AND 2 + 1 OR 2 {!Record.HasRecordId__c} EQUAL diff --git a/nebula-logger/core/main/logger-engine/classes/Logger.cls b/nebula-logger/core/main/logger-engine/classes/Logger.cls index 952df12c6..f5da74740 100644 --- a/nebula-logger/core/main/logger-engine/classes/Logger.cls +++ b/nebula-logger/core/main/logger-engine/classes/Logger.cls @@ -15,7 +15,7 @@ global with sharing class Logger { // There's no reliable way to get the version number dynamically in Apex @TestVisible - private static final String CURRENT_VERSION_NUMBER = 'v4.14.2'; + private static final String CURRENT_VERSION_NUMBER = 'v4.14.3'; private static final System.LoggingLevel FALLBACK_LOGGING_LEVEL = System.LoggingLevel.DEBUG; private static final List LOG_ENTRIES_BUFFER = new List(); private static final String MISSING_SCENARIO_ERROR_MESSAGE = 'No logger scenario specified. A scenario is required for logging in this org.'; diff --git a/nebula-logger/core/main/logger-engine/lwc/logger/logEntryBuilder.js b/nebula-logger/core/main/logger-engine/lwc/logger/logEntryBuilder.js index 5b70032aa..6ea626522 100644 --- a/nebula-logger/core/main/logger-engine/lwc/logger/logEntryBuilder.js +++ b/nebula-logger/core/main/logger-engine/lwc/logger/logEntryBuilder.js @@ -5,7 +5,7 @@ import FORM_FACTOR from '@salesforce/client/formFactor'; import { LoggerStackTrace } from './loggerStackTrace'; -const CURRENT_VERSION_NUMBER = 'v4.14.2'; +const CURRENT_VERSION_NUMBER = 'v4.14.3'; const LOGGING_LEVEL_EMOJIS = { ERROR: '⛔', diff --git a/nebula-logger/core/tests/log-management/classes/LogBatchPurgeController_Tests.cls b/nebula-logger/core/tests/log-management/classes/LogBatchPurgeController_Tests.cls index f0b7ac033..372f3ac00 100644 --- a/nebula-logger/core/tests/log-management/classes/LogBatchPurgeController_Tests.cls +++ b/nebula-logger/core/tests/log-management/classes/LogBatchPurgeController_Tests.cls @@ -164,8 +164,8 @@ private class LogBatchPurgeController_Tests { private static void it_should_return_summary_for_logEntryTag_created_today() { Integer expectedRecordCountWithPurgeActionDelete = 5; Integer expectedRecordCountWithPurgeActionCustom = 4; - createLogEntryTagRecords('TXN1', 'Delete', expectedRecordCountWithPurgeActionDelete, System.now()); - createLogEntryTagRecords('TXN2', 'Custom', expectedRecordCountWithPurgeActionCustom, System.now()); + createLogEntryTagRecords('Delete', expectedRecordCountWithPurgeActionDelete, System.now()); + createLogEntryTagRecords('Custom', expectedRecordCountWithPurgeActionCustom, System.now()); List logObjectResult = LogBatchPurgeController.getLogEntryTagObjectSummary('TODAY'); @@ -186,8 +186,8 @@ private class LogBatchPurgeController_Tests { Integer expectedRecordCountWithPurgeActionDelete = 5; Integer expectedRecordCountWithPurgeActionCustom = 4; Datetime createDate = DateTime.newInstance(Date.today().toStartOfWeek(), Datetime.now().time()); - createLogEntryTagRecords('TXN1', 'Delete', expectedRecordCountWithPurgeActionDelete, createDate); - createLogEntryTagRecords('TXN2', 'Custom', expectedRecordCountWithPurgeActionCustom, createDate); + createLogEntryTagRecords('Delete', expectedRecordCountWithPurgeActionDelete, createDate); + createLogEntryTagRecords('Custom', expectedRecordCountWithPurgeActionCustom, createDate); List logObjectResult = LogBatchPurgeController.getLogEntryTagObjectSummary('THIS_WEEK'); @@ -208,8 +208,8 @@ private class LogBatchPurgeController_Tests { Integer expectedRecordCountWithPurgeActionDelete = 5; Integer expectedRecordCountWithPurgeActionCustom = 4; Datetime createDate = DateTime.newInstance(Date.today().toStartOfMonth(), Datetime.now().time()); - createLogEntryTagRecords('TXN1', 'Delete', expectedRecordCountWithPurgeActionDelete, createDate); - createLogEntryTagRecords('TXN2', 'Custom', expectedRecordCountWithPurgeActionCustom, createDate); + createLogEntryTagRecords('Delete', expectedRecordCountWithPurgeActionDelete, createDate); + createLogEntryTagRecords('Custom', expectedRecordCountWithPurgeActionCustom, createDate); List logObjectResult = LogBatchPurgeController.getLogEntryTagObjectSummary('THIS_MONTH'); @@ -230,8 +230,8 @@ private class LogBatchPurgeController_Tests { Integer expectedRecordCountWithPurgeActionDelete = 5; Integer expectedRecordCountWithPurgeActionCustom = 4; Datetime createDate = Datetime.now(); - createLogEntryTagRecords('TXN1', 'Delete', expectedRecordCountWithPurgeActionDelete, createDate); - createLogEntryTagRecords('TXN2', 'Custom', expectedRecordCountWithPurgeActionCustom, createDate); + createLogEntryTagRecords('Delete', expectedRecordCountWithPurgeActionDelete, createDate); + createLogEntryTagRecords('Custom', expectedRecordCountWithPurgeActionCustom, createDate); Map metricsResult = LogBatchPurgeController.getMetrics('TODAY'); @@ -360,8 +360,8 @@ private class LogBatchPurgeController_Tests { } } - private static void createLogEntryTagRecords(String transactionIdPrefix, String purgeAction, Integer noOfRecords, Datetime createDate) { - Log__c log = new log__c(TransactionId__c = transactionIdPrefix); + private static void createLogEntryTagRecords(String purgeAction, Integer noOfRecords, Datetime createDate) { + Log__c log = new log__c(TransactionId__c = System.UUID.randomUUID().toString()); log.LogPurgeAction__c = purgeAction; log.LogRetentionDate__c = System.today(); insert log; diff --git a/package.json b/package.json index 9edf95d25..7acd0a500 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nebula-logger", - "version": "4.14.2", + "version": "4.14.3", "description": "The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects.", "author": "Jonathan Gillespie", "license": "MIT", diff --git a/q b/q deleted file mode 100644 index 0209f7970..000000000 --- a/q +++ /dev/null @@ -1,488 +0,0 @@ - .github/ISSUE_TEMPLATE/bug-report.yml | 50 +- - .github/ISSUE_TEMPLATE/feature-request.yml | 16 +- - .github/codecov.yml | 20 +- - .github/workflows/build.yml | 812 +- - .github/workflows/fetch-repo-stats.yml | 26 +- - .prettierrc | 2 +- - CODE_OF_CONDUCT.md | 30 +- - CONTRIBUTING.md | 18 +- - README.md | 329 +- - config/docs/apexdocs.json | 14 +- - .../classes/ChangePasswordController.cls | 16 +- - .../classes/ChangePasswordControllerTest.cls | 18 +- - .../classes/ForgotPasswordController.cls | 22 +- - .../classes/ForgotPasswordControllerTest.cls | 14 +- - .../classes/MicrobatchSelfRegController.cls | 102 +- - .../classes/MicrobatchSelfRegControllerTest.cls | 20 +- - .../classes/MyProfilePageController.cls | 160 +- - .../classes/MyProfilePageControllerTest.cls | 102 +- - .../classes/SiteLoginController.cls | 16 +- - .../classes/SiteLoginControllerTest.cls | 16 +- - .../classes/SiteRegisterController.cls | 98 +- - .../classes/SiteRegisterControllerTest.cls | 24 +- - .../brandingSets/buildYourOwn.json | 104 +- - .../Logger_Test_Aura_Site1/config/languages.json | 8 +- - .../config/loggerTestAuraSite.json | 18 +- - .../config/loginAppPage.json | 10 +- - .../Logger_Test_Aura_Site1/config/mainAppPage.json | 18 +- - .../config/nativeConfig.json | 66 +- - .../routes/checkPassword.json | 18 +- - .../routes/createRecord.json | 18 +- - .../Logger_Test_Aura_Site1/routes/error.json | 20 +- - .../routes/forgotPassword.json | 18 +- - .../Logger_Test_Aura_Site1/routes/home.json | 20 +- - .../Logger_Test_Aura_Site1/routes/login.json | 18 +- - .../Logger_Test_Aura_Site1/routes/loginError.json | 18 +- - .../routes/recordDetail.json | 18 +- - .../Logger_Test_Aura_Site1/routes/recordList.json | 20 +- - .../Logger_Test_Aura_Site1/routes/register.json | 18 +- - .../routes/relatedRecordList.json | 20 +- - .../Logger_Test_Aura_Site1/routes/search.json | 20 +- - .../routes/serviceNotAvailable.json | 18 +- - .../routes/tooManyRequests.json | 18 +- - .../themes/buildYourOwn.json | 280 +- - .../views/checkPassword.json | 122 +- - .../Logger_Test_Aura_Site1/views/createRecord.json | 72 +- - .../Logger_Test_Aura_Site1/views/error.json | 104 +- - .../views/forgotPassword.json | 146 +- - .../Logger_Test_Aura_Site1/views/home.json | 148 +- - .../Logger_Test_Aura_Site1/views/login.json | 156 +- - .../Logger_Test_Aura_Site1/views/loginError.json | 104 +- - .../Logger_Test_Aura_Site1/views/recordDetail.json | 138 +- - .../Logger_Test_Aura_Site1/views/recordList.json | 96 +- - .../Logger_Test_Aura_Site1/views/register.json | 180 +- - .../views/relatedRecordList.json | 82 +- - .../Logger_Test_Aura_Site1/views/search.json | 50 +- - .../views/serviceNotAvailable.json | 50 +- - .../views/tooManyRequests.json | 66 +- - .../brandingSets/buildYourOwnLWR.json | 436 +- - .../Logger_Test_LWR_Site1/config/languages.json | 8 +- - .../config/loggerTestLWRSite.json | 16 +- - .../Logger_Test_LWR_Site1/config/mainAppPage.json | 20 +- - .../routes/checkPassword.json | 18 +- - .../Logger_Test_LWR_Site1/routes/error.json | 18 +- - .../routes/forgotPassword.json | 18 +- - .../Logger_Test_LWR_Site1/routes/home.json | 18 +- - .../Logger_Test_LWR_Site1/routes/login.json | 18 +- - .../Logger_Test_LWR_Site1/routes/register.json | 18 +- - .../routes/serviceNotAvailable.json | 18 +- - .../routes/tooManyRequests.json | 18 +- - .../themes/buildYourOwnLWR.json | 198 +- - .../Logger_Test_LWR_Site1/views/checkPassword.json | 152 +- - .../Logger_Test_LWR_Site1/views/error.json | 132 +- - .../views/forgotPassword.json | 158 +- - .../Logger_Test_LWR_Site1/views/home.json | 144 +- - .../Logger_Test_LWR_Site1/views/login.json | 204 +- - .../Logger_Test_LWR_Site1/views/register.json | 164 +- - .../views/serviceNotAvailable.json | 94 +- - .../views/tooManyRequests.json | 110 +- - .../brandingSets/buildYourOwnLWR.json | 376 +- - .../Logger_Test_Site1/config/languages.json | 8 +- - .../Logger_Test_Site1/config/loggerTestSite.json | 16 +- - .../Logger_Test_Site1/config/mainAppPage.json | 20 +- - .../Logger_Test_Site1/routes/checkPassword.json | 18 +- - .../Logger_Test_Site1/routes/error.json | 18 +- - .../Logger_Test_Site1/routes/forgotPassword.json | 18 +- - .../experiences/Logger_Test_Site1/routes/home.json | 18 +- - .../Logger_Test_Site1/routes/login.json | 18 +- - .../Logger_Test_Site1/routes/register.json | 18 +- - .../routes/serviceNotAvailable.json | 18 +- - .../Logger_Test_Site1/routes/tooManyRequests.json | 18 +- - .../Logger_Test_Site1/themes/buildYourOwnLWR.json | 176 +- - .../Logger_Test_Site1/views/checkPassword.json | 152 +- - .../experiences/Logger_Test_Site1/views/error.json | 132 +- - .../Logger_Test_Site1/views/forgotPassword.json | 158 +- - .../experiences/Logger_Test_Site1/views/home.json | 132 +- - .../experiences/Logger_Test_Site1/views/login.json | 204 +- - .../Logger_Test_Site1/views/register.json | 164 +- - .../views/serviceNotAvailable.json | 94 +- - .../Logger_Test_Site1/views/tooManyRequests.json | 110 +- - config/jest/mocks/lightning/empApi.js | 20 +- - config/jest/mocks/lightning/navigation.js | 34 +- - config/linters/.eslintrc.json | 148 +- - config/linters/lint-staged.config.js | 28 +- - config/linters/pmd-ruleset.xml | 8 +- - config/scratch-orgs/build-base-scratch-def.json | 32 +- - .../build-experience-cloud-scratch-def.json | 38 +- - config/scratch-orgs/dev-scratch-def.json | 58 +- - docs/lightning-components/LogEntryBuilder.md | 22 +- - jest.config.js | 14 +- - .../classes/LoggerBatchableContext.cls | 30 +- - .../main/configuration/classes/LoggerCache.cls | 428 +- - .../configuration/classes/LoggerFieldMapper.cls | 232 +- - .../main/configuration/classes/LoggerParameter.cls | 1620 +- - .../main/configuration/classes/LoggerPlugin.cls | 274 +- - .../configuration/classes/LoggerScenarioRule.cls | 96 +- - .../classes/LoggerTriggerableContext.cls | 120 +- - ...MaskRule.MastercardCreditCardNumber.md-meta.xml | 6 +- - ...ryDataMaskRule.SocialSecurityNumber.md-meta.xml | 6 +- - ...ryDataMaskRule.VisaCreditCardNumber.md-meta.xml | 6 +- - .../customMetadata/LogStatus.Done.md-meta.xml | 6 +- - .../customMetadata/LogStatus.Ignored.md-meta.xml | 6 +- - .../LogStatus.In_Progress.md-meta.xml | 6 +- - .../customMetadata/LogStatus.New.md-meta.xml | 6 +- - .../customMetadata/LogStatus.On_Hold.md-meta.xml | 6 +- - .../LoggerParameter.CallStatusApi.md-meta.xml | 10 +- - ....DefaultLogEntryRelatedListFieldSet.md-meta.xml | 10 +- - ...Parameter.EnableLogEntryEventStream.md-meta.xml | 10 +- - ...arameter.EnableLoggerSystemMessages.md-meta.xml | 6 +- - ...erParameter.EnableStackTraceParsing.md-meta.xml | 10 +- - .../LoggerParameter.EnableTagging.md-meta.xml | 10 +- - ...er.LogEntryEventStreamDisplayFields.md-meta.xml | 10 +- - ...ggerParameter.NormalizeScenarioData.md-meta.xml | 10 +- - .../LoggerParameter.NormalizeTagData.md-meta.xml | 10 +- - ...arameter.PlatformCachePartitionName.md-meta.xml | 6 +- - .../LoggerParameter.QueryApexClassData.md-meta.xml | 10 +- - ...oggerParameter.QueryApexTriggerData.md-meta.xml | 10 +- - ...oggerParameter.QueryAuthSessionData.md-meta.xml | 10 +- - ...r.QueryAuthSessionDataSynchronously.md-meta.xml | 10 +- - ...rameter.QueryFlowDefinitionViewData.md-meta.xml | 10 +- - .../LoggerParameter.QueryNetworkData.md-meta.xml | 6 +- - ...meter.QueryNetworkDataSynchronously.md-meta.xml | 6 +- - ...ggerParameter.QueryOrganizationData.md-meta.xml | 10 +- - ....QueryOrganizationDataSynchronously.md-meta.xml | 10 +- - ...gerParameter.QueryRelatedRecordData.md-meta.xml | 10 +- - .../LoggerParameter.QueryUserData.md-meta.xml | 10 +- - ...arameter.QueryUserDataSynchronously.md-meta.xml | 10 +- - ...oggerParameter.RequireScenarioUsage.md-meta.xml | 6 +- - ...rameter.SendErrorEmailNotifications.md-meta.xml | 10 +- - .../LoggerParameter.StoreHeapSizeLimit.md-meta.xml | 10 +- - ...meter.StoreHttpResponseHeaderValues.md-meta.xml | 10 +- - ...erParameter.StoreOrganizationLimits.md-meta.xml | 10 +- - ...ameter.StoreRestRequestHeaderValues.md-meta.xml | 10 +- - ...meter.StoreRestResponseHeaderValues.md-meta.xml | 10 +- - ...gerParameter.StoreTransactionLimits.md-meta.xml | 10 +- - ...rParameter.SystemDebugMessageFormat.md-meta.xml | 6 +- - ...Parameter.UseFirstSpecifiedScenario.md-meta.xml | 10 +- - .../LoggerParameter.UsePlatformCache.md-meta.xml | 10 +- - .../LoggerParameter.UseTopicsForTags.md-meta.xml | 6 +- - ...SObjectHandler.LogEntryEventHandler.md-meta.xml | 6 +- - ...oggerSObjectHandler.LogEntryHandler.md-meta.xml | 6 +- - ...erSObjectHandler.LogEntryTagHandler.md-meta.xml | 6 +- - .../LoggerSObjectHandler.LogHandler.md-meta.xml | 6 +- - ...ObjectHandler.LoggerScenarioHandler.md-meta.xml | 6 +- - ...ggerSObjectHandler.LoggerTagHandler.md-meta.xml | 6 +- - .../LogEntryDataMaskRule__mdt.object-meta.xml | 2 +- - .../fields/ApplyToMessage__c.field-meta.xml | 2 +- - .../fields/ApplyToRecordJson__c.field-meta.xml | 2 +- - .../LoggerFieldMapping__mdt.object-meta.xml | 2 +- - .../fields/SourceField__c.field-meta.xml | 2 +- - .../fields/TargetField__c.field-meta.xml | 2 +- - .../fields/Comments__c.field-meta.xml | 2 +- - .../LoggerPlugin__mdt.object-meta.xml | 2 +- - .../BatchPurgerExecutionOrder__c.field-meta.xml | 4 +- - .../SObjectHandlerExecutionOrder__c.field-meta.xml | 4 +- - .../LoggerSObjectHandler__mdt.object-meta.xml | 2 +- - .../fields/IsEnabled__c.field-meta.xml | 4 +- - .../fields/SObjectTypeOverride__c.field-meta.xml | 4 +- - .../IsAnonymousModeEnabled__c.field-meta.xml | 2 +- - ...ApexSystemDebugLoggingEnabled__c.field-meta.xml | 2 +- - .../fields/IsDataMaskingEnabled__c.field-meta.xml | 2 +- - ...vaScriptConsoleLoggingEnabled__c.field-meta.xml | 2 +- - .../IsLogAssignmentEnabled__c.field-meta.xml | 2 +- - ...IsLogRetentionOverrideEnabled__c.field-meta.xml | 2 +- - ...IsRecordFieldStrippingEnabled__c.field-meta.xml | 2 +- - .../NumberOfDaysToRetainLogs__c.field-meta.xml | 2 +- - .../PlatformEventStorageLocation__c.field-meta.xml | 2 +- - .../fields/UserLoggingLevel__c.field-meta.xml | 2 +- - .../fields/DefaultLogOwner__c.field-meta.xml | 2 +- - .../fields/DefaultLogPurgeAction__c.field-meta.xml | 2 +- - .../DefaultLogShareAccessLevel__c.field-meta.xml | 4 +- - ...faultNumberOfDaysToRetainLogs__c.field-meta.xml | 4 +- - ...tPlatformEventStorageLocation__c.field-meta.xml | 4 +- - ...tformEventStorageLoggingLevel__c.field-meta.xml | 2 +- - .../fields/DefaultSaveMethod__c.field-meta.xml | 4 +- - .../IsAnonymousModeEnabled__c.field-meta.xml | 2 +- - ...ApexSystemDebugLoggingEnabled__c.field-meta.xml | 2 +- - .../fields/IsDataMaskingEnabled__c.field-meta.xml | 2 +- - ...vaScriptConsoleLoggingEnabled__c.field-meta.xml | 2 +- - ...IsRecordFieldStrippingEnabled__c.field-meta.xml | 2 +- - .../classes/LogBatchPurgeController.cls | 219 +- - .../classes/LogBatchPurgeScheduler.cls | 68 +- - .../main/log-management/classes/LogBatchPurger.cls | 572 +- - .../classes/LogEntryEventHandler.cls | 1368 +- - .../classes/LogEntryEventStreamController.cls | 56 +- - .../classes/LogEntryFieldSetPicklist.cls | 54 +- - .../log-management/classes/LogEntryHandler.cls | 1007 +- - .../classes/LogEntryMetadataViewerController.cls | 144 +- - .../log-management/classes/LogEntryTagHandler.cls | 78 +- - .../main/log-management/classes/LogHandler.cls | 598 +- - .../classes/LogManagementDataSelector.cls | 750 +- - .../classes/LogMassDeleteExtension.cls | 86 +- - .../log-management/classes/LogViewerController.cls | 82 +- - .../log-management/classes/LoggerEmailSender.cls | 336 +- - .../classes/LoggerHomeHeaderController.cls | 180 +- - .../classes/LoggerSObjectMetadata.cls | 162 +- - .../classes/LoggerScenarioHandler.cls | 14 +- - .../classes/LoggerSettingsController.cls | 728 +- - .../log-management/classes/LoggerTagHandler.cls | 44 +- - .../classes/RelatedLogEntriesController.cls | 520 +- - .../__tests__/data/getBatchPurgeJobRecords.json | 88 +- - .../__tests__/data/getLogMetrics.ThisMonth.json | 24 +- - .../__tests__/data/getLogMetrics.ThisWeek.json | 24 +- - .../__tests__/data/getLogMetrics.Today.json | 24 +- - .../__tests__/data/getLogMetrics.noLogRecords.json | 6 +- - .../__tests__/data/getPurgeActionOptions.json | 4 +- - .../__tests__/data/getSchemaForName.log.json | 1142 +- - .../__tests__/data/getSchemaForName.logEntry.json | 1122 +- - .../data/getSchemaForName.logEntryTag.json | 70 +- - .../__tests__/data/runBatchPurge.json | 2 +- - .../logBatchPurge/__tests__/logBatchPurge.test.js | 602 +- - .../lwc/logBatchPurge/logBatchPurge.css | 10 +- - .../lwc/logBatchPurge/logBatchPurge.html | 180 +- - .../lwc/logBatchPurge/logBatchPurge.js | 396 +- - .../__tests__/data/getSchemaForName.json | 1610 +- - .../__tests__/logEntryEventStream.test.js | 1084 +- - .../logEntryEventStream/logEntryEventStream.css | 72 +- - .../logEntryEventStream/logEntryEventStream.html | 418 +- - .../lwc/logEntryEventStream/logEntryEventStream.js | 654 +- - .../logEntryMetadataViewer.html | 156 +- - .../logEntryMetadataViewer.js | 256 +- - .../__tests__/data/getRecord.json | 28 +- - .../__tests__/logOrganizationLimits.test.js | 120 +- - .../logOrganizationLimits.html | 104 +- - .../logOrganizationLimits/logOrganizationLimits.js | 102 +- - .../__tests__/data/LogViewerController.getLog.json | 1698 +-- - .../lwc/logViewer/__tests__/logViewer.test.js | 196 +- - .../log-management/lwc/logViewer/logViewer.css | 4 +- - .../log-management/lwc/logViewer/logViewer.html | 68 +- - .../main/log-management/lwc/logViewer/logViewer.js | 260 +- - .../__tests__/loggerCodeViewer.test.js | 98 +- - .../lwc/loggerCodeViewer/loggerCodeViewer.css | 4 +- - .../lwc/loggerCodeViewer/loggerCodeViewer.html | 28 +- - .../lwc/loggerCodeViewer/loggerCodeViewer.js | 52 +- - .../__tests__/loggerHomeHeader.test.js | 274 +- - .../lwc/loggerHomeHeader/loggerHomeHeader.html | 452 +- - .../lwc/loggerHomeHeader/loggerHomeHeader.js | 112 +- - .../loggerHomeHeader/loggerHomeHeader.js-meta.xml | 2 +- - .../__tests__/loggerPageSection.test.js | 114 +- - .../lwc/loggerPageSection/loggerPageSection.html | 32 +- - .../lwc/loggerPageSection/loggerPageSection.js | 24 +- - .../__tests__/data/createRecord.json | 42 +- - .../__tests__/data/getOrganization.json | 6 +- - .../__tests__/data/getPicklistOptions.json | 72 +- - .../loggerSettings/__tests__/data/getRecords.json | 1046 +- - .../__tests__/data/getSchemaForName.json | 342 +- - .../__tests__/data/searchForSetupOwner.json | 56 +- - .../__tests__/loggerSettings.test.js | 974 +- - .../lwc/loggerSettings/loggerSettings.html | 662 +- - .../lwc/loggerSettings/loggerSettings.js | 806 +- - .../lwc/loggerSettings/loggerSettingsPageLayout.js | 260 +- - .../__tests__/data/getQueryResult.json | 250 +- - .../__tests__/relatedLogEntries.test.js | 48 +- - .../lwc/relatedLogEntries/relatedLogEntries.html | 58 +- - .../lwc/relatedLogEntries/relatedLogEntries.js | 254 +- - .../LogEntryTag__c/LogEntryTag__c.object-meta.xml | 2 +- - .../LogEntry__c/LogEntry__c.object-meta.xml | 2 +- - .../fields/ApexClassApiVersion__c.field-meta.xml | 2 +- - .../fields/ApexClassId__c.field-meta.xml | 2 +- - .../fields/ApexInnerClassName__c.field-meta.xml | 2 +- - .../fields/FlowDurableId__c.field-meta.xml | 2 +- - .../LogEntry__c/fields/FlowLabel__c.field-meta.xml | 2 +- - .../FlowLastModifiedByName__c.field-meta.xml | 2 +- - .../fields/FlowLastModifiedDate__c.field-meta.xml | 2 +- - .../fields/FlowProcessType__c.field-meta.xml | 2 +- - .../fields/FlowRecordTriggerType__c.field-meta.xml | 2 +- - .../fields/FlowTriggerOrder__c.field-meta.xml | 2 +- - .../fields/FlowTriggerType__c.field-meta.xml | 2 +- - .../FlowVersionApiVersionRuntime__c.field-meta.xml | 4 +- - .../fields/FlowVersionNumber__c.field-meta.xml | 2 +- - .../fields/FlowVersionRunInMode__c.field-meta.xml | 2 +- - .../Log__c/fields/LogPurgeAction__c.field-meta.xml | 2 +- - .../fields/NetworkUrlPathPrefix__c.field-meta.xml | 4 +- - .../Log__c/fields/ParentLog__c.field-meta.xml | 4 +- - .../LoggerScenario__c.object-meta.xml | 2 +- - .../LoggerTag__c/LoggerTag__c.object-meta.xml | 2 +- - .../main/log-management/pages/LogMassDelete.page | 130 +- - .../staticresources/LoggerResources/prism.css | 260 +- - .../staticresources/LoggerResources/prism.js | 2600 ++-- - .../core/main/log-management/triggers/Log.trigger | 2 +- - .../main/log-management/triggers/LogEntry.trigger | 2 +- - .../log-management/triggers/LogEntryEvent.trigger | 2 +- - .../log-management/triggers/LogEntryTag.trigger | 2 +- - .../log-management/triggers/LoggerScenario.trigger | 2 +- - .../main/log-management/triggers/LoggerTag.trigger | 2 +- - .../main/logger-engine/classes/ComponentLogger.cls | 762 +- - .../classes/FlowCollectionLogEntry.cls | 170 +- - .../main/logger-engine/classes/FlowLogEntry.cls | 150 +- - .../core/main/logger-engine/classes/FlowLogger.cls | 372 +- - .../logger-engine/classes/FlowRecordLogEntry.cls | 155 +- - .../logger-engine/classes/LogEntryEventBuilder.cls | 2372 ++- - .../core/main/logger-engine/classes/LogMessage.cls | 154 +- - .../core/main/logger-engine/classes/Logger.cls | 7154 +++++---- - .../main/logger-engine/classes/LoggerDataStore.cls | 568 +- - .../classes/LoggerEngineDataSelector.cls | 436 +- - .../logger-engine/classes/LoggerSObjectHandler.cls | 482 +- - .../logger-engine/classes/LoggerSObjectProxy.cls | 142 +- - .../logger-engine/classes/LoggerStackTrace.cls | 492 +- - .../logger/__tests__/data/chromeBrowserError.json | 2 +- - .../logger/__tests__/data/edgeBrowserError.json | 2 +- - .../logger/__tests__/data/firefoxBrowserError.json | 2 +- - .../logger/__tests__/data/getLoggerSettings.json | 10 +- - .../lwc/logger/__tests__/logger.test.js | 1954 +-- - .../lwc/logger/__tests__/loggerStackTrace.test.js | 48 +- - .../logger-engine/lwc/logger/logEntryBuilder.js | 434 +- - .../core/main/logger-engine/lwc/logger/logger.js | 270 +- - .../main/logger-engine/lwc/logger/loggerService.js | 220 +- - .../logger-engine/lwc/logger/loggerStackTrace.js | 441 +- - .../fields/NetworkUrlPathPrefix__c.field-meta.xml | 2 +- - .../fields/RecordId__c.field-meta.xml | 2 +- - .../fields/TimestampString__c.field-meta.xml | 2 +- - .../LoggerLogCreator.permissionset-meta.xml | 2 +- - .../configuration/classes/LoggerCache_Tests.cls | 746 +- - .../classes/LoggerFieldMapper_Tests.cls | 266 +- - .../classes/LoggerParameter_Tests.cls | 1020 +- - .../configuration/classes/LoggerPlugin_Tests.cls | 266 +- - .../classes/LoggerScenarioRule_Tests.cls | 219 +- - .../utilities/LoggerMockDataCreator.cls | 1266 +- - .../classes/LogBatchPurgeController_Tests.cls | 811 +- - .../classes/LogBatchPurgeScheduler_Tests.cls | 104 +- - .../classes/LogBatchPurger_Tests.cls | 808 +- - .../classes/LogEntryEventHandler_Tests.cls | 3676 +++-- - .../LogEntryEventStreamController_Tests.cls | 52 +- - .../classes/LogEntryFieldSetPicklist_Tests.cls | 96 +- - .../classes/LogEntryHandler_Tests.cls | 2324 ++- - .../LogEntryMetadataViewerController_Tests.cls | 314 +- - .../classes/LogEntryTagHandler_Tests.cls | 228 +- - .../log-management/classes/LogHandler_Tests.cls | 1272 +- - .../classes/LogManagementDataSelector_Tests.cls | 1016 +- - .../classes/LogMassDeleteExtension_Tests.cls | 164 +- - .../classes/LogViewerController_Tests.cls | 48 +- - .../classes/LoggerBatchableContext_Tests.cls | 36 +- - .../classes/LoggerEmailSender_Tests.cls | 284 +- - .../classes/LoggerHomeHeaderController_Tests.cls | 235 +- - .../classes/LoggerSObjectMetadata_Tests.cls | 64 +- - .../classes/LoggerScenarioHandler_Tests.cls | 118 +- - .../classes/LoggerSettingsController_Tests.cls | 786 +- - .../classes/LoggerTagHandler_Tests.cls | 128 +- - .../classes/RelatedLogEntriesController_Tests.cls | 212 +- - .../utilities/LoggerTestConfigurator.cls | 292 +- - .../classes/ComponentLogger_Tests.cls | 856 +- - .../classes/FlowCollectionLogEntry_Tests.cls | 592 +- - .../logger-engine/classes/FlowLogEntry_Tests.cls | 508 +- - .../logger-engine/classes/FlowLogger_Tests.cls | 438 +- - .../classes/FlowRecordLogEntry_Tests.cls | 580 +- - .../classes/LogEntryEventBuilder_Tests.cls | 3860 +++-- - .../logger-engine/classes/LogMessage_Tests.cls | 122 +- - .../classes/LoggerDataStore_Tests.cls | 1098 +- - .../classes/LoggerEngineDataSelector_Tests.cls | 404 +- - .../classes/LoggerSObjectHandler_Tests.cls | 788 +- - .../classes/LoggerSObjectProxy_Tests.cls | 156 +- - .../classes/LoggerStackTrace_Tests.cls | 480 +- - .../classes/LoggerTriggerableContext_Tests.cls | 142 +- - .../tests/logger-engine/classes/Logger_Tests.cls | 15139 +++++++++---------- - .../utilities/LoggerMockDataStore.cls | 372 +- - .../classes/ExampleInboundEmailHandler.cls | 48 +- - .../extra-tests/classes/NebulaLogger_E2E_Tests.cls | 342 +- - ...oggerFieldMapping.SomeLogEntryField.md-meta.xml | 6 +- - .../LoggerFieldMapping.SomeLogField.md-meta.xml | 6 +- - ...ieldMapping.SomeLoggerScenarioField.md-meta.xml | 6 +- - .../tests/LogBatchPurger_Tests_Database.cls | 98 +- - .../tests/LogBatchPurger_Tests_Flow.cls | 378 +- - .../tests/LogEntryEventBuilder_Tests_Network.cls | 140 +- - .../tests/LogEntryEventBuilder_Tests_Security.cls | 256 +- - .../LogEntryEventHandler_Tests_FieldMappings.cls | 160 +- - .../tests/LogEntryHandler_Tests_EmailMessage.cls | 44 +- - .../tests/LogEntryHandler_Tests_Flow.cls | 306 +- - .../LogEntryMetadataViwrCtlr_Tests_Security.cls | 420 +- - .../tests/LogManagementDataSelector_Tests_Flow.cls | 44 +- - .../extra-tests/tests/LoggerBenchmarking_Tests.cls | 100 +- - .../tests/LoggerCache_Tests_PlatformCache.cls | 442 +- - .../LoggerEngineDataSelector_Tests_Network.cls | 96 +- - .../tests/LoggerSObjectHandler_Tests_Flow.cls | 58 +- - .../LoggerSettingsController_Tests_Security.cls | 134 +- - .../tests/Logger_Tests_InboundEmailHandler.cls | 46 +- - .../extra-tests/tests/Logger_Tests_MergeResult.cls | 2024 +-- - .../extra-tests/tests/Logger_Tests_Network.cls | 200 +- - .../configuration/classes/LoggerInstallHandler.cls | 40 +- - .../classes/LoggerInstallHandler_Tests.cls | 110 +- - .../EnableStatusApiCallout__c.field-meta.xml | 4 +- - ...IsPlatformEventStorageEnabled__c.field-meta.xml | 4 +- - .../aura/logJSONViewer/logJSONViewer.cmp | 2 +- - ....LogEntryEventHandler_CallStatusApi.md-meta.xml | 6 +- - ....LogEntryEventHandler_EnableTagging.md-meta.xml | 10 +- - ...gEntryEventHandler_UseTopicsForTags.md-meta.xml | 6 +- - ....LogHandler_NonPreviewInstances_v52.md-meta.xml | 6 +- - ...ter.LogHandler_PreviewInstances_v52.md-meta.xml | 6 +- - .../NumberOfDaysToRetainLogs__c.field-meta.xml | 2 +- - .../fields/UserLoggingLevel__c.field-meta.xml | 2 +- - .../fields/IsEnabled__c.field-meta.xml | 2 +- - ...LoggerSObjectHandlerPlugin__mdt.object-meta.xml | 2 +- - .../fields/ExecutionOrder__c.field-meta.xml | 4 +- - .../fields/SObjectHandler__c.field-meta.xml | 4 +- - nebula-logger/managed-package/sfdx-project.json | 68 +- - .../classes/LogBatchApexErrorEventHandler.cls | 94 +- - .../LogBatchApexErrorEventHandler_Tests.cls | 156 +- - .../plugin/classes/LogFinalizer.cls | 44 +- - .../plugin/classes/LogFinalizer_Tests.cls | 76 +- - .../classes/LogFlowExecutionErrorEventHandler.cls | 188 +- - .../LogFlowExecutionErrorEventHandler_Tests.cls | 210 +- - ...eter.FlowExecutionErrorEventHandled.md-meta.xml | 10 +- - ...rSObjectHandler.BatchApexErrorEvent.md-meta.xml | 6 +- - ...erFlowExecutionErrorEventHandling.flow-meta.xml | 2 +- - .../triggers/LogBatchApexErrorEventTrigger.trigger | 2 +- - .../plugins/big-object-archiving/README.md | 6 +- - .../plugin/classes/LogEntryArchiveBuilder.cls | 604 +- - .../classes/LogEntryArchiveBuilder_Tests.cls | 1712 +-- - .../plugin/classes/LogEntryArchiveController.cls | 156 +- - .../classes/LogEntryArchiveController_Tests.cls | 152 +- - .../plugin/classes/LogEntryArchivePlugin.cls | 406 +- - .../plugin/classes/LogEntryArchivePlugin_Tests.cls | 450 +- - ...rameter.CustomLogPurgeActionArchive.md-meta.xml | 6 +- - ....CustomSaveMethodBigObjectImmediate.md-meta.xml | 6 +- - ....CustomSaveMethodBigObjectQueueable.md-meta.xml | 6 +- - ...eter.CustomStorageLocationBigObject.md-meta.xml | 10 +- - .../LoggerPlugin.LogEntryArchive.md-meta.xml | 6 +- - .../LoggerSObjectMetadata.getSchemaForName.json | 1594 +- - .../__tests__/logEntryArchives.test.js | 428 +- - .../lwc/logEntryArchives/logEntryArchives.html | 142 +- - .../lwc/logEntryArchives/logEntryArchives.js | 356 +- - .../LogEntryArchive__b.object-meta.xml | 2 +- - .../fields/NetworkUrlPathPrefix__c.field-meta.xml | 2 +- - .../fields/RecordId__c.field-meta.xml | 2 +- - .../fields/TimestampString__c.field-meta.xml | 2 +- - .../plugins/log-retention-rules/README.md | 4 +- - .../plugin/classes/LogRetentionFilter.cls | 806 +- - .../plugin/classes/LogRetentionFilter_Tests.cls | 900 +- - .../plugin/classes/LogRetentionRulesPlugin.cls | 204 +- - .../classes/LogRetentionRulesPlugin_Tests.cls | 400 +- - ...entionRule.Sample_Rule_1_Error_Logs.md-meta.xml | 6 +- - ...Sample_Rule_1_Scenarios_With_Errors.md-meta.xml | 6 +- - ...Sample_Rule_2_Additional_Error_Logs.md-meta.xml | 6 +- - ...ition.Sample_Rule_1_Error_Condition.md-meta.xml | 6 +- - ....Sample_Rule_1_Scenario_A_Condition.md-meta.xml | 6 +- - ....Sample_Rule_1_Scenario_B_Condition.md-meta.xml | 6 +- - ...leCondition.Sample_Rule_1_condition.md-meta.xml | 6 +- - ...ition.Sample_Rule_2_Error_Condition.md-meta.xml | 6 +- - .../LoggerPlugin.LogRetentionRules.md-meta.xml | 10 +- - .../LogRetentionRuleCondition__mdt.object-meta.xml | 2 +- - .../LogRetentionRule__mdt.object-meta.xml | 2 +- - .../fields/ExecutionOrder__c.field-meta.xml | 2 +- - .../NumberOfDaysToRetainLogs__c.field-meta.xml | 2 +- - nebula-logger/plugins/slack/README.md | 8 +- - .../plugins/slack/plugin/core/main/README.md | 4 +- - .../plugin/slack/classes/SlackLoggerPlugin.cls | 636 +- - .../slack/classes/SlackLoggerPlugin_Tests.cls | 574 +- - .../LoggerParameter.SlackEndpoint.md-meta.xml | 6 +- - ...ameter.SlackLogNotificationFieldSet.md-meta.xml | 6 +- - ...meter.SlackNotificationLoggingLevel.md-meta.xml | 10 +- - .../customMetadata/LoggerPlugin.Slack.md-meta.xml | 6 +- - .../loggerAuraEmbedDemo/loggerAuraEmbedDemo.cmp | 22 +- - .../loggerAuraEmbedDemo/loggerAuraEmbedDemo.css | 4 +- - .../loggerAuraEmbedDemoController.js | 14 +- - .../classes/Account_Batch_Logger_Example.cls | 96 +- - .../classes/Account_Queueable_Logger_Example.cls | 84 +- - .../classes/ExampleBigObjectDataGenerator.cls | 30 +- - .../classes/ExampleClassWithComplexLogging.cls | 186 +- - .../recipes/classes/ExampleClassWithLogging.cls | 32 +- - .../recipes/classes/LoggerLWCDemoController.cls | 16 +- - .../Logger_Recipes_Home_Page.flexipage-meta.xml | 2 +- - .../lwc/loggerLWCEmbedDemo/loggerLWCEmbedDemo.html | 65 +- - .../lwc/loggerLWCEmbedDemo/loggerLWCEmbedDemo.js | 190 +- - .../__tests__/loggerLWCImportDemo.test.js | 58 +- - .../loggerLWCImportDemo/loggerLWCImportDemo.html | 60 +- - .../lwc/loggerLWCImportDemo/loggerLWCImportDemo.js | 274 +- - .../Account_Trigger_Logger_Example.trigger | 24 +- - package.json | 192 +- - sfdx-project.json | 400 +- - 487 files changed, 57494 insertions(+), 58002 deletions(-) diff --git a/sfdx-project.json b/sfdx-project.json index d80db7dd0..75c01b731 100644 --- a/sfdx-project.json +++ b/sfdx-project.json @@ -9,9 +9,9 @@ "path": "./nebula-logger/core", "definitionFile": "./config/scratch-orgs/build-base-scratch-def.json", "scopeProfiles": true, - "versionNumber": "4.14.2.NEXT", - "versionName": "Jest Test Bugfixes", - "versionDescription": "Fixed some Jest test failures that weren't previously reported by the pipeline", + "versionNumber": "4.14.3.NEXT", + "versionName": "LogEntryRecordPage Tab Visibility Bugfixes", + "versionDescription": "Fixed an issue with the visibility for the tab 'Related Record Details' on LogEntryRecordPage", "releaseNotesUrl": "https://github.com/jongpie/NebulaLogger/releases", "unpackagedMetadata": { "path": "./nebula-logger/extra-tests" @@ -187,6 +187,7 @@ "Nebula Logger - Core@4.14.0-summer-'24-release": "04t5Y0000015oPvQAI", "Nebula Logger - Core@4.14.1-reduced-prettier-tab-width": "04t5Y0000015oQPQAY", "Nebula Logger - Core@4.14.2-jest-test-bugfixes": "04t5Y0000015oQZQAY", + "Nebula Logger - Core@4.14.3-logentryrecordpage-tab-visibility-bugfixes": "04t5Y0000015oQjQAI", "Nebula Logger - Core Plugin - Async Failure Additions": "0Ho5Y000000blO4SAI", "Nebula Logger - Core Plugin - Async Failure Additions@1.0.0": "04t5Y0000015lhiQAA", "Nebula Logger - Core Plugin - Async Failure Additions@1.0.1": "04t5Y0000015lhsQAA",