diff --git a/.forceignore b/.forceignore index 23acdb5d1..b19a6504a 100644 --- a/.forceignore +++ b/.forceignore @@ -4,6 +4,7 @@ nebula-logger/managed-package/sfdx-project.json nebula-logger/managed-package/**/*.animationRule-meta.xml +nebula-logger/managed-package/**/*.indx-meta.xml nebula-logger/managed-package/**/*.testSuite-meta.xml /**/Admin.profile-meta.xml @@ -17,4 +18,4 @@ nebula-logger/managed-package/**/*.testSuite-meta.xml # LWC Jest **/__tests__/** -**/jest-mocks/** \ No newline at end of file +**/jest-mocks/** diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7b51501c6..b8dc0ab6d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -362,7 +362,7 @@ jobs: npx sfdx bummer:package:aliases:sort npx prettier --write ./sfdx-project.json git add ./sfdx-project.json - git commit -m "Created new package version" + git commit -m "Created new core unlocked package version" git push promote-package-versions: diff --git a/README.md b/README.md index 79920c913..4998099e9 100644 --- a/README.md +++ b/README.md @@ -5,21 +5,27 @@ The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects. -## Unlocked Package - v4.10.6 +## Unlocked Package - v4.11.0 -[![Install Unlocked Package in a Sandbox](./images/btn-install-unlocked-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000023SCqQAM) -[![Install Unlocked Package in Production](./images/btn-install-unlocked-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000023SCqQAM) +[![Install Unlocked Package in a Sandbox](./images/btn-install-unlocked-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000023SI6QAM) +[![Install Unlocked Package in Production](./images/btn-install-unlocked-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000023SI6QAM) [![View Documentation](./images/btn-view-documentation.png)](https://jongpie.github.io/NebulaLogger/) -`sfdx package install --wait 20 --security-type AdminsOnly --package 04t5Y0000023SCqQAM` +`sf package install --wait 20 --security-type AdminsOnly --package 04t5Y0000023SI6QAM` -## Managed Package - v4.10.0 +`sfdx force:package:install --wait 20 --securitytype AdminsOnly --package 04t5Y0000023SI6QAM` -[![Install Managed Package in a Sandbox](./images/btn-install-managed-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?mgd=true&p0=04t5Y0000015nWeQAI) -[![Install Managed Package in Production](./images/btn-install-managed-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?mgd=true&p0=04t5Y0000015nWeQAI) -[![View Milestone](./images/btn-view-managed-package-milestone.png)](https://github.com/jongpie/NebulaLogger/milestone/10?closed=1) +--- + +## Managed Package - v4.11.0 + +[![Install Managed Package in a Sandbox](./images/btn-install-managed-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?mgd=true&p0=04t5Y0000023SI1QAM) +[![Install Managed Package in Production](./images/btn-install-managed-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?mgd=true&p0=04t5Y0000023SI1QAM) +[![View Milestone](./images/btn-view-managed-package-milestone.png)](https://github.com/jongpie/NebulaLogger/milestone/11?closed=1) + +`sf package install --wait 30 --security-type AdminsOnly --package 04t5Y0000023SI1QAM` -`sfdx package install --wait 30 --security-type AdminsOnly --package 04t5Y0000015nWeQAI` +`sfdx force:package:install --wait 20 --securitytype AdminsOnly --package 04t5Y0000023SI1QAM` --- diff --git a/config/experience-cloud/classes/ChangePasswordController.cls-meta.xml b/config/experience-cloud/classes/ChangePasswordController.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/config/experience-cloud/classes/ChangePasswordController.cls-meta.xml +++ b/config/experience-cloud/classes/ChangePasswordController.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/config/experience-cloud/classes/ChangePasswordControllerTest.cls-meta.xml b/config/experience-cloud/classes/ChangePasswordControllerTest.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/config/experience-cloud/classes/ChangePasswordControllerTest.cls-meta.xml +++ b/config/experience-cloud/classes/ChangePasswordControllerTest.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/config/experience-cloud/classes/ForgotPasswordController.cls-meta.xml b/config/experience-cloud/classes/ForgotPasswordController.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/config/experience-cloud/classes/ForgotPasswordController.cls-meta.xml +++ b/config/experience-cloud/classes/ForgotPasswordController.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/config/experience-cloud/classes/ForgotPasswordControllerTest.cls-meta.xml b/config/experience-cloud/classes/ForgotPasswordControllerTest.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/config/experience-cloud/classes/ForgotPasswordControllerTest.cls-meta.xml +++ b/config/experience-cloud/classes/ForgotPasswordControllerTest.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/config/experience-cloud/classes/MicrobatchSelfRegController.cls-meta.xml b/config/experience-cloud/classes/MicrobatchSelfRegController.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/config/experience-cloud/classes/MicrobatchSelfRegController.cls-meta.xml +++ b/config/experience-cloud/classes/MicrobatchSelfRegController.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/config/experience-cloud/classes/MicrobatchSelfRegControllerTest.cls-meta.xml b/config/experience-cloud/classes/MicrobatchSelfRegControllerTest.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/config/experience-cloud/classes/MicrobatchSelfRegControllerTest.cls-meta.xml +++ b/config/experience-cloud/classes/MicrobatchSelfRegControllerTest.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/config/experience-cloud/classes/MyProfilePageController.cls-meta.xml b/config/experience-cloud/classes/MyProfilePageController.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/config/experience-cloud/classes/MyProfilePageController.cls-meta.xml +++ b/config/experience-cloud/classes/MyProfilePageController.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/config/experience-cloud/classes/MyProfilePageControllerTest.cls-meta.xml b/config/experience-cloud/classes/MyProfilePageControllerTest.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/config/experience-cloud/classes/MyProfilePageControllerTest.cls-meta.xml +++ b/config/experience-cloud/classes/MyProfilePageControllerTest.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/config/experience-cloud/classes/SiteLoginController.cls-meta.xml b/config/experience-cloud/classes/SiteLoginController.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/config/experience-cloud/classes/SiteLoginController.cls-meta.xml +++ b/config/experience-cloud/classes/SiteLoginController.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/config/experience-cloud/classes/SiteLoginControllerTest.cls-meta.xml b/config/experience-cloud/classes/SiteLoginControllerTest.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/config/experience-cloud/classes/SiteLoginControllerTest.cls-meta.xml +++ b/config/experience-cloud/classes/SiteLoginControllerTest.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/config/experience-cloud/classes/SiteRegisterController.cls-meta.xml b/config/experience-cloud/classes/SiteRegisterController.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/config/experience-cloud/classes/SiteRegisterController.cls-meta.xml +++ b/config/experience-cloud/classes/SiteRegisterController.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/config/experience-cloud/classes/SiteRegisterControllerTest.cls-meta.xml b/config/experience-cloud/classes/SiteRegisterControllerTest.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/config/experience-cloud/classes/SiteRegisterControllerTest.cls-meta.xml +++ b/config/experience-cloud/classes/SiteRegisterControllerTest.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/config/experience-cloud/pages/BandwidthExceeded.page-meta.xml b/config/experience-cloud/pages/BandwidthExceeded.page-meta.xml index 450869536..ad650f58d 100644 --- a/config/experience-cloud/pages/BandwidthExceeded.page-meta.xml +++ b/config/experience-cloud/pages/BandwidthExceeded.page-meta.xml @@ -1,6 +1,6 @@ - 57.0 + 58.0 false false Página predeterminada de límite superado de Plataforma Lightning diff --git a/config/experience-cloud/pages/ChangePassword.page-meta.xml b/config/experience-cloud/pages/ChangePassword.page-meta.xml index 21ff0ab52..9ad90c6a7 100644 --- a/config/experience-cloud/pages/ChangePassword.page-meta.xml +++ b/config/experience-cloud/pages/ChangePassword.page-meta.xml @@ -1,6 +1,6 @@ - 57.0 + 58.0 false false Página de cambio de contraseña predeterminada de Sitios de Salesforce diff --git a/config/experience-cloud/pages/CommunitiesLanding.page-meta.xml b/config/experience-cloud/pages/CommunitiesLanding.page-meta.xml index 64ee18ba3..74ceedc23 100644 --- a/config/experience-cloud/pages/CommunitiesLanding.page-meta.xml +++ b/config/experience-cloud/pages/CommunitiesLanding.page-meta.xml @@ -1,6 +1,6 @@ - 57.0 + 58.0 false false Página de inicio de experiencias predeterminadas diff --git a/config/experience-cloud/pages/CommunitiesLogin.page-meta.xml b/config/experience-cloud/pages/CommunitiesLogin.page-meta.xml index 62701b396..ca9ee90ed 100644 --- a/config/experience-cloud/pages/CommunitiesLogin.page-meta.xml +++ b/config/experience-cloud/pages/CommunitiesLogin.page-meta.xml @@ -1,6 +1,6 @@ - 57.0 + 58.0 false false Página de inicio de sesión para experiencias predeterminadas diff --git a/config/experience-cloud/pages/CommunitiesSelfReg.page-meta.xml b/config/experience-cloud/pages/CommunitiesSelfReg.page-meta.xml index 8913a8193..1c7fbacc9 100644 --- a/config/experience-cloud/pages/CommunitiesSelfReg.page-meta.xml +++ b/config/experience-cloud/pages/CommunitiesSelfReg.page-meta.xml @@ -1,6 +1,6 @@ - 57.0 + 58.0 false false Página de inscripción automática de experiencias predeterminadas diff --git a/config/experience-cloud/pages/CommunitiesSelfRegConfirm.page-meta.xml b/config/experience-cloud/pages/CommunitiesSelfRegConfirm.page-meta.xml index b91a5f964..e4b8b4702 100644 --- a/config/experience-cloud/pages/CommunitiesSelfRegConfirm.page-meta.xml +++ b/config/experience-cloud/pages/CommunitiesSelfRegConfirm.page-meta.xml @@ -1,6 +1,6 @@ - 57.0 + 58.0 false false Página de confirmación de registro de experiencias predeterminadas diff --git a/config/experience-cloud/pages/Exception.page-meta.xml b/config/experience-cloud/pages/Exception.page-meta.xml index 11e894a6d..5eaeb048b 100644 --- a/config/experience-cloud/pages/Exception.page-meta.xml +++ b/config/experience-cloud/pages/Exception.page-meta.xml @@ -1,6 +1,6 @@ - 57.0 + 58.0 false false Página predeterminada de Plataforma Lightning para errores post-autenticación diff --git a/config/experience-cloud/pages/FileNotFound.page-meta.xml b/config/experience-cloud/pages/FileNotFound.page-meta.xml index 2948d50f1..6891c8e51 100644 --- a/config/experience-cloud/pages/FileNotFound.page-meta.xml +++ b/config/experience-cloud/pages/FileNotFound.page-meta.xml @@ -1,6 +1,6 @@ - 57.0 + 58.0 false false Página predeterminada de página/datos no encontrados de Plataforma Lightning diff --git a/config/experience-cloud/pages/ForgotPasswordConfirm.page-meta.xml b/config/experience-cloud/pages/ForgotPasswordConfirm.page-meta.xml index 766a1d089..0f3c18b90 100644 --- a/config/experience-cloud/pages/ForgotPasswordConfirm.page-meta.xml +++ b/config/experience-cloud/pages/ForgotPasswordConfirm.page-meta.xml @@ -1,6 +1,6 @@ - 57.0 + 58.0 false false Página Contraseña olvidada predeterminada de Sitios de Salesforce diff --git a/config/experience-cloud/pages/InMaintenance.page-meta.xml b/config/experience-cloud/pages/InMaintenance.page-meta.xml index 3df1f2979..172b74e4e 100644 --- a/config/experience-cloud/pages/InMaintenance.page-meta.xml +++ b/config/experience-cloud/pages/InMaintenance.page-meta.xml @@ -1,6 +1,6 @@ - 57.0 + 58.0 false false Página predeterminada de Plataforma Lightning en mantenimiento diff --git a/config/experience-cloud/pages/SiteRegisterConfirm.page-meta.xml b/config/experience-cloud/pages/SiteRegisterConfirm.page-meta.xml index 0e30f1a4d..18fdb4230 100644 --- a/config/experience-cloud/pages/SiteRegisterConfirm.page-meta.xml +++ b/config/experience-cloud/pages/SiteRegisterConfirm.page-meta.xml @@ -1,6 +1,6 @@ - 57.0 + 58.0 false false Página Confirmación de registro de usuario predeterminada de Sitios de Salesforce diff --git a/config/linters/lint-staged.config.js b/config/linters/lint-staged.config.js index 8d1693a3a..c48f715ac 100644 --- a/config/linters/lint-staged.config.js +++ b/config/linters/lint-staged.config.js @@ -2,9 +2,11 @@ module.exports = { 'sfdx-project.json': () => { return `npm run package:version:number:fix`; }, - '*.{cls,cmp,component,css,html,js,json,md,page,trigger,yaml,yml}': filenames => filenames.map(filename => `prettier --write '${filename}'`), + '*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}': filenames => filenames.map(filename => `prettier --write '${filename}'`), '**/lwc/**': filenames => { - return [`eslint --config ./config/linters/.eslintrc.json ${filenames.join(' ')} --fix`, `npm run test:lwc`]; + return [`eslint --config ./config/linters/.eslintrc.json ${filenames.join(' ')} --fix`]; + // FIXME this command should only run tests for the changed LWCs (instead of running tests for all LWCs) + // return [`eslint --config ./config/linters/.eslintrc.json ${filenames.join(' ')} --fix`, `npm run test:lwc`]; } // FIXME this command should only scan the changed Apex files (instead of scanning all Apex files) // '*.{cls,trigger}': () => { diff --git a/docs/apex/Configuration/LoggerParameter.md b/docs/apex/Configuration/LoggerParameter.md index 4c112a103..69bbea744 100644 --- a/docs/apex/Configuration/LoggerParameter.md +++ b/docs/apex/Configuration/LoggerParameter.md @@ -14,6 +14,10 @@ Provides a centralized way to load parameters for SObject handlers & plugins Indicates if Nebula Logger will make an async callout to `https://api.status.salesforce.com` to get additional details about the current org, which is then stored on the Log\_\_c record. Controlled by the custom metadata record `LoggerParameter.CallStatusApi`, or `false` as the default +#### `ENABLE_LOG_ENTRY_EVENT_STREAM` → `Boolean` + +Indicates if Nebula Logger's LWC `logEntryEventStream` is enabled. The component uses the Emp API, which counts towards orgs' daily delivery allocations for platform events. To help reduce usage of the daily allocation limit, orgs can disable the LWC. Controlled by the custom metadata record `LoggerParameter.EnableLogEntryEventStream`, or `true` as the default + #### `ENABLE_STACK_TRACE_PARSING` → `Boolean` Indicates if Nebula Logger will parse a stack trace for each log entry, which is then used to populate fields like `LogEntry__c.StackTrace__c` and `LogEntry__c.OriginLocation__c`. Controlled by the custom metadata record `LoggerParameter.EnableStackTraceParsing`, or `true` as the default diff --git a/docs/apex/Configuration/LoggerPlugin.md b/docs/apex/Configuration/LoggerPlugin.md index 7473b9b6e..7a9ec7307 100644 --- a/docs/apex/Configuration/LoggerPlugin.md +++ b/docs/apex/Configuration/LoggerPlugin.md @@ -41,6 +41,20 @@ List<LoggerPlugin_t> The list of matching `LoggerPlugin_t` records +#### `getPluginConfigurations()` → `List` + +Returns all enabled `LoggerPlugin_t` records, based on `IsEnabled__c == true` + +##### Return + +**Type** + +List<LoggerPlugin_t> + +**Description** + +The list of enabled `LoggerPlugin_t` records + #### `newBatchableInstance(String apexClassTypeName)` → `Batchable` Creates an instance of the class `LoggerPlugin.Batchable` based on the provided `LoggerPlugin_t` configuration diff --git a/docs/apex/Log-Management/LogEntryEventStreamController.md b/docs/apex/Log-Management/LogEntryEventStreamController.md index bd5ebf605..d2da74edf 100644 --- a/docs/apex/Log-Management/LogEntryEventStreamController.md +++ b/docs/apex/Log-Management/LogEntryEventStreamController.md @@ -24,4 +24,18 @@ List<String> The instance of `List<String>`, containing the list of columns to be displayed in +#### `isEnabled()` → `Boolean` + +Indicates if the LWC `logEntryEventStream` has been enabled (default) or disabled + +##### Return + +**Type** + +Boolean + +**Description** + +The `Boolean` value of the `LoggerParameter_t` record `LoggerParameter.EnableLogEntryEventStream` + --- diff --git a/docs/apex/Log-Management/LoggerHomeHeaderController.md b/docs/apex/Log-Management/LoggerHomeHeaderController.md index 361acb1b1..55cc1e654 100644 --- a/docs/apex/Log-Management/LoggerHomeHeaderController.md +++ b/docs/apex/Log-Management/LoggerHomeHeaderController.md @@ -34,6 +34,10 @@ An instance of `LoggerHomeHeaderController.Environment` ##### Properties +###### `loggerEnabledPlugins` → `String` + +###### `loggerEnabledPluginsCount` → `Integer` + ###### `loggerNamespacePrefix` → `String` ###### `loggerVersionNumber` → `String` @@ -44,8 +48,6 @@ An instance of `LoggerHomeHeaderController.Environment` ###### `organizationDomainUrl` → `String` -###### `organizationEnvironment` → `String` - ###### `organizationFormattedCreatedDate` → `String` ###### `organizationId` → `String` @@ -64,8 +66,6 @@ An instance of `LoggerHomeHeaderController.Environment` ###### `organizationReleaseVersion` → `String` -###### `organizationStatus` → `String` - ###### `organizationType` → `String` --- diff --git a/docs/apex/Logger-Engine/Logger.md b/docs/apex/Logger-Engine/Logger.md index c347ce12a..965ed46e7 100644 --- a/docs/apex/Logger-Engine/Logger.md +++ b/docs/apex/Logger-Engine/Logger.md @@ -26,7 +26,7 @@ Enum used to control how LogEntryEvent\_\_e records are inserted #### `callStatusApi()` → `StatusApiResponse` -**This is only intended to be used internally by Nebula Logger, and is subject to change.** Calls Salesforce's API endpoint https://api.status.salesforce.com/v1/instances/ to get more details about the current org, including the org's release number and release version +**This is only intended to be used internally by Nebula Logger, and is subject to change.** Calls Salesforce's API endpoint https://api.status.salesforce.com/v1/instances/ to get more details about the current org, including the org's release number and release version. Trust API docs available at https://api.status.salesforce.com/v1/docs/ ##### Return diff --git a/nebula-logger/core/main/configuration/classes/LoggerBatchableContext.cls-meta.xml b/nebula-logger/core/main/configuration/classes/LoggerBatchableContext.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/nebula-logger/core/main/configuration/classes/LoggerBatchableContext.cls-meta.xml +++ b/nebula-logger/core/main/configuration/classes/LoggerBatchableContext.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/nebula-logger/core/main/configuration/classes/LoggerCache.cls-meta.xml b/nebula-logger/core/main/configuration/classes/LoggerCache.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/nebula-logger/core/main/configuration/classes/LoggerCache.cls-meta.xml +++ b/nebula-logger/core/main/configuration/classes/LoggerCache.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/nebula-logger/core/main/configuration/classes/LoggerParameter.cls b/nebula-logger/core/main/configuration/classes/LoggerParameter.cls index fe23aa23b..0e66bd5ba 100644 --- a/nebula-logger/core/main/configuration/classes/LoggerParameter.cls +++ b/nebula-logger/core/main/configuration/classes/LoggerParameter.cls @@ -30,6 +30,23 @@ public class LoggerParameter { private set; } + /** + * @description Indicates if Nebula Logger's LWC `logEntryEventStream` is enabled. The component uses + * the Emp API, which counts towards orgs' daily delivery allocations for platform events. + * To help reduce usage of the daily allocation limit, orgs can disable the LWC. + * Controlled by the custom metadata record `LoggerParameter.EnableLogEntryEventStream`, + * or `true` as the default + */ + public static final Boolean ENABLE_LOG_ENTRY_EVENT_STREAM { + get { + if (ENABLE_LOG_ENTRY_EVENT_STREAM == null) { + ENABLE_LOG_ENTRY_EVENT_STREAM = getBoolean('EnableLogEntryEventStream', true); + } + return ENABLE_LOG_ENTRY_EVENT_STREAM; + } + private set; + } + /** * @description Indicates if Nebula Logger will parse a stack trace for each log entry, which is then used to populate * fields like `LogEntry__c.StackTrace__c` and `LogEntry__c.OriginLocation__c`. diff --git a/nebula-logger/core/main/configuration/classes/LoggerParameter.cls-meta.xml b/nebula-logger/core/main/configuration/classes/LoggerParameter.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/nebula-logger/core/main/configuration/classes/LoggerParameter.cls-meta.xml +++ b/nebula-logger/core/main/configuration/classes/LoggerParameter.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/nebula-logger/core/main/configuration/classes/LoggerPlugin.cls b/nebula-logger/core/main/configuration/classes/LoggerPlugin.cls index 35297b478..f73719e1e 100644 --- a/nebula-logger/core/main/configuration/classes/LoggerPlugin.cls +++ b/nebula-logger/core/main/configuration/classes/LoggerPlugin.cls @@ -9,7 +9,7 @@ * based on configurations stored in the custom metadata type `LoggerPlugin__mdt` */ public without sharing class LoggerPlugin { - private static final Map DEVELOPER_NAME_TO_RECORD = loadRecords(); + private static final Map DEVELOPER_NAME_TO_RECORD = loadEnabledRecords(); /** * @description Interface used to create plugins that can be used within Logger's batch job `LogBatchPurger` @@ -29,6 +29,14 @@ public without sharing class LoggerPlugin { void execute(LoggerPlugin__mdt configuration, LoggerTriggerableContext input); } + /** + * @description Returns all enabled `LoggerPlugin__mdt` records, based on `IsEnabled__c == true` + * @return The list of enabled `LoggerPlugin__mdt` records + */ + public static List getPluginConfigurations() { + return DEVELOPER_NAME_TO_RECORD.values(); + } + /** * @description Filters the configured `LoggerPlugin__mdt` records based on a list of `SObjectField` - only records that have a value for 1 or more * of the specified `populatedFilterFields` will be returned, sorted by the specified `SObjectField` parameter `sortByField` @@ -94,12 +102,17 @@ public without sharing class LoggerPlugin { return System.Type.forName(apexClassTypeName)?.newInstance(); } - private static Map loadRecords() { - Map pluginConfigurations = LoggerPlugin__mdt.getAll().clone(); + private static Map loadEnabledRecords() { + Map pluginDeveloperNameToConfiguration = new Map(); + for (LoggerPlugin__mdt pluginConfiguration : LoggerPlugin__mdt.getAll().values()) { + if (pluginConfiguration.IsEnabled__c == true) { + pluginDeveloperNameToConfiguration.put(pluginConfiguration.DeveloperName, pluginConfiguration); + } + } if (System.Test.isRunningTest() == true) { - pluginConfigurations.clear(); + pluginDeveloperNameToConfiguration.clear(); } - return pluginConfigurations; + return pluginDeveloperNameToConfiguration; } @TestVisible diff --git a/nebula-logger/core/main/configuration/classes/LoggerPlugin.cls-meta.xml b/nebula-logger/core/main/configuration/classes/LoggerPlugin.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/nebula-logger/core/main/configuration/classes/LoggerPlugin.cls-meta.xml +++ b/nebula-logger/core/main/configuration/classes/LoggerPlugin.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/nebula-logger/core/main/configuration/classes/LoggerScenarioRule.cls-meta.xml b/nebula-logger/core/main/configuration/classes/LoggerScenarioRule.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/nebula-logger/core/main/configuration/classes/LoggerScenarioRule.cls-meta.xml +++ b/nebula-logger/core/main/configuration/classes/LoggerScenarioRule.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/nebula-logger/core/main/configuration/classes/LoggerTriggerableContext.cls-meta.xml b/nebula-logger/core/main/configuration/classes/LoggerTriggerableContext.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/nebula-logger/core/main/configuration/classes/LoggerTriggerableContext.cls-meta.xml +++ b/nebula-logger/core/main/configuration/classes/LoggerTriggerableContext.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/nebula-logger/core/main/configuration/customMetadata/LoggerParameter.EnableLogEntryEventStream.md-meta.xml b/nebula-logger/core/main/configuration/customMetadata/LoggerParameter.EnableLogEntryEventStream.md-meta.xml new file mode 100644 index 000000000..86d102484 --- /dev/null +++ b/nebula-logger/core/main/configuration/customMetadata/LoggerParameter.EnableLogEntryEventStream.md-meta.xml @@ -0,0 +1,19 @@ + + + + false + + Description__c + When set to 'true' (default), the LWC logEntryEventStream is enabled & subscribes to LogEntryEvent__e records, using the Emp API. Using the Emp API counts towards your org's event delivery allocations, so the LWC can be disabled if the allocation needs to be conserved. See this page for more details may be generated that contain additional details about the logging system - https://developer.salesforce.com/docs/atlas.en-us.platform_events.meta/platform_events/platform_event_limits.htm + + + Value__c + true + + diff --git a/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/DefaultLogOwner__c.field-meta.xml b/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/DefaultLogOwner__c.field-meta.xml index d80171064..365e775a8 100644 --- a/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/DefaultLogOwner__c.field-meta.xml +++ b/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/DefaultLogOwner__c.field-meta.xml @@ -2,7 +2,7 @@ DefaultLogOwner__c Active - CCPA;GDPR;PII + PII;GDPR;CCPA false Specifies the default owner for new Log__c records. This can be a user ID, a username, a queue ID, or a queue's developer name. diff --git a/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/DefaultLogPurgeAction__c.field-meta.xml b/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/DefaultLogPurgeAction__c.field-meta.xml index 6e047052d..e5f85579d 100644 --- a/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/DefaultLogPurgeAction__c.field-meta.xml +++ b/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/DefaultLogPurgeAction__c.field-meta.xml @@ -2,7 +2,7 @@ DefaultLogPurgeAction__c Active - CCPA;GDPR;PII + PII;GDPR;CCPA 'Delete' false DefaultLogShareAccessLevel__c Active - CCPA;GDPR;PII + PII;GDPR;CCPA 'Read' Uses Apex managed sharing to grants users read or edit access to their log records (on insert only). When no access level is specified, no Apex sharing logic is executed. This only gives record-level access - users will still need to be granted access to the Log__c object using permission sets or profiles. diff --git a/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/DefaultNumberOfDaysToRetainLogs__c.field-meta.xml b/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/DefaultNumberOfDaysToRetainLogs__c.field-meta.xml index d8b4511fe..e9366053a 100644 --- a/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/DefaultNumberOfDaysToRetainLogs__c.field-meta.xml +++ b/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/DefaultNumberOfDaysToRetainLogs__c.field-meta.xml @@ -2,7 +2,7 @@ DefaultNumberOfDaysToRetainLogs__c Active - CCPA;GDPR;PII + PII;GDPR;CCPA 14 This value is used to set the field Log__c.LogRetentionDate__c, which is then used by LogBatchPurger to delete old logs. To keep logs indefinitely, set this field to blank (null). diff --git a/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/DefaultPlatformEventStorageLocation__c.field-meta.xml b/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/DefaultPlatformEventStorageLocation__c.field-meta.xml index 60371528f..d2a9a93ef 100644 --- a/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/DefaultPlatformEventStorageLocation__c.field-meta.xml +++ b/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/DefaultPlatformEventStorageLocation__c.field-meta.xml @@ -2,7 +2,7 @@ DefaultPlatformEventStorageLocation__c Active - CCPA;GDPR;PII + PII;GDPR;CCPA 'CUSTOM_OBJECTS' Defaults to CUSTOM_OBJECTS. This controls the default location where LogEntryEvent__e records are stored - when null, LogEntryEvent__e records will not be stored. diff --git a/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/DefaultSaveMethod__c.field-meta.xml b/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/DefaultSaveMethod__c.field-meta.xml index d208cc053..4d38c5c90 100644 --- a/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/DefaultSaveMethod__c.field-meta.xml +++ b/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/DefaultSaveMethod__c.field-meta.xml @@ -2,7 +2,7 @@ DefaultSaveMethod__c Active - CCPA;GDPR;PII + PII;GDPR;CCPA 'EVENT_BUS' Defaults to EVENT_BUS. This controls the default save method used by Logger when calling saveLog(). In most situations, EVENT_BUS should be used. diff --git a/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/DefaultScenario__c.field-meta.xml b/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/DefaultScenario__c.field-meta.xml index dcaa84bfc..b5460eeaa 100644 --- a/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/DefaultScenario__c.field-meta.xml +++ b/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/DefaultScenario__c.field-meta.xml @@ -2,7 +2,7 @@ DefaultScenario__c Active - CCPA;GDPR;PII + PII;GDPR;CCPA Sets a default scenario for the transaction false Sets a default scenario for the transaction diff --git a/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/EndTime__c.field-meta.xml b/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/EndTime__c.field-meta.xml index 6a06c6073..a4c66003c 100644 --- a/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/EndTime__c.field-meta.xml +++ b/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/EndTime__c.field-meta.xml @@ -5,5 +5,6 @@ Optional - when set, the LoggerSettings__c record is only used when EndTime__c >= System.now() false + false DateTime diff --git a/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/IsAnonymousModeEnabled__c.field-meta.xml b/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/IsAnonymousModeEnabled__c.field-meta.xml index 64789e802..98ffb5052 100644 --- a/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/IsAnonymousModeEnabled__c.field-meta.xml +++ b/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/IsAnonymousModeEnabled__c.field-meta.xml @@ -2,7 +2,7 @@ IsAnonymousModeEnabled__c Active - CCPA;GDPR;PII + PII;GDPR;CCPA false false IsApexSystemDebugLoggingEnabled__c Active - CCPA;GDPR;PII + PII;GDPR;CCPA true false IsDataMaskingEnabled__c Active - CCPA;GDPR;PII + PII;GDPR;CCPA true false IsEnabled__c Active - CCPA;GDPR;PII + PII;GDPR;CCPA true false Controls if Logger is enabled for the specified level (organization, profile, or user) diff --git a/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/IsJavaScriptConsoleLoggingEnabled__c.field-meta.xml b/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/IsJavaScriptConsoleLoggingEnabled__c.field-meta.xml index 847c91691..68b792d38 100644 --- a/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/IsJavaScriptConsoleLoggingEnabled__c.field-meta.xml +++ b/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/IsJavaScriptConsoleLoggingEnabled__c.field-meta.xml @@ -2,7 +2,7 @@ IsJavaScriptConsoleLoggingEnabled__c Active - CCPA;GDPR;PII + PII;GDPR;CCPA true false IsRecordFieldStrippingEnabled__c Active - CCPA;GDPR;PII + PII;GDPR;CCPA false false IsSavingEnabled__c Active - CCPA;GDPR;PII + PII;GDPR;CCPA true Controls if saving is enabled - when disabled, any calls to saveLog() are ignored. false diff --git a/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/LoggingLevel__c.field-meta.xml b/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/LoggingLevel__c.field-meta.xml index 9581311e3..7bae13fb4 100644 --- a/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/LoggingLevel__c.field-meta.xml +++ b/nebula-logger/core/main/configuration/objects/LoggerSettings__c/fields/LoggingLevel__c.field-meta.xml @@ -2,7 +2,7 @@ LoggingLevel__c Active - CCPA;GDPR;PII + PII;GDPR;CCPA 'FINEST' false diff --git a/nebula-logger/core/main/log-management/animationRules/LogStatus.animationRule-meta.xml b/nebula-logger/core/main/log-management/animationRules/LogStatus.animationRule-meta.xml index 1a3a57185..34a931ab7 100644 --- a/nebula-logger/core/main/log-management/animationRules/LogStatus.animationRule-meta.xml +++ b/nebula-logger/core/main/log-management/animationRules/LogStatus.animationRule-meta.xml @@ -3,7 +3,7 @@ always LogStatus true - Log Status + Nebula Logger: Log Status Master __MASTER__ Log__c diff --git a/nebula-logger/core/main/log-management/classes/LogBatchPurgeController.cls-meta.xml b/nebula-logger/core/main/log-management/classes/LogBatchPurgeController.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/nebula-logger/core/main/log-management/classes/LogBatchPurgeController.cls-meta.xml +++ b/nebula-logger/core/main/log-management/classes/LogBatchPurgeController.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/nebula-logger/core/main/log-management/classes/LogBatchPurgeScheduler.cls-meta.xml b/nebula-logger/core/main/log-management/classes/LogBatchPurgeScheduler.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/nebula-logger/core/main/log-management/classes/LogBatchPurgeScheduler.cls-meta.xml +++ b/nebula-logger/core/main/log-management/classes/LogBatchPurgeScheduler.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/nebula-logger/core/main/log-management/classes/LogBatchPurger.cls-meta.xml b/nebula-logger/core/main/log-management/classes/LogBatchPurger.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/nebula-logger/core/main/log-management/classes/LogBatchPurger.cls-meta.xml +++ b/nebula-logger/core/main/log-management/classes/LogBatchPurger.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/nebula-logger/core/main/log-management/classes/LogEntryEventHandler.cls-meta.xml b/nebula-logger/core/main/log-management/classes/LogEntryEventHandler.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/nebula-logger/core/main/log-management/classes/LogEntryEventHandler.cls-meta.xml +++ b/nebula-logger/core/main/log-management/classes/LogEntryEventHandler.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/nebula-logger/core/main/log-management/classes/LogEntryEventStreamController.cls b/nebula-logger/core/main/log-management/classes/LogEntryEventStreamController.cls index 70e3e707e..ebb516d6f 100644 --- a/nebula-logger/core/main/log-management/classes/LogEntryEventStreamController.cls +++ b/nebula-logger/core/main/log-management/classes/LogEntryEventStreamController.cls @@ -19,6 +19,16 @@ public with sharing class LogEntryEventStreamController { Schema.LogEntryEvent__e.LoggingLevel__c.getDescribe().getLocalName(), Schema.LogEntryEvent__e.Message__c.getDescribe().getLocalName() }; + + /** + * @description Indicates if the LWC `logEntryEventStream` has been enabled (default) or disabled + * @return The `Boolean` value of the `LoggerParameter__mdt` record `LoggerParameter.EnableLogEntryEventStream` + */ + @AuraEnabled + public static Boolean isEnabled() { + return LoggerParameter.ENABLE_LOG_ENTRY_EVENT_STREAM; + } + /** * @description Returns the list of columns to be displayed in LogEntryEventStream datatable. * The fields are configured in the custom metadata record LoggerParameter__mdt.LogEntryEventStreamDisplayFields. diff --git a/nebula-logger/core/main/log-management/classes/LogEntryEventStreamController.cls-meta.xml b/nebula-logger/core/main/log-management/classes/LogEntryEventStreamController.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/nebula-logger/core/main/log-management/classes/LogEntryEventStreamController.cls-meta.xml +++ b/nebula-logger/core/main/log-management/classes/LogEntryEventStreamController.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/nebula-logger/core/main/log-management/classes/LogEntryFieldSetPicklist.cls-meta.xml b/nebula-logger/core/main/log-management/classes/LogEntryFieldSetPicklist.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/nebula-logger/core/main/log-management/classes/LogEntryFieldSetPicklist.cls-meta.xml +++ b/nebula-logger/core/main/log-management/classes/LogEntryFieldSetPicklist.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/nebula-logger/core/main/log-management/classes/LogEntryHandler.cls-meta.xml b/nebula-logger/core/main/log-management/classes/LogEntryHandler.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/nebula-logger/core/main/log-management/classes/LogEntryHandler.cls-meta.xml +++ b/nebula-logger/core/main/log-management/classes/LogEntryHandler.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/nebula-logger/core/main/log-management/classes/LogEntryTagHandler.cls-meta.xml b/nebula-logger/core/main/log-management/classes/LogEntryTagHandler.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/nebula-logger/core/main/log-management/classes/LogEntryTagHandler.cls-meta.xml +++ b/nebula-logger/core/main/log-management/classes/LogEntryTagHandler.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/nebula-logger/core/main/log-management/classes/LogHandler.cls-meta.xml b/nebula-logger/core/main/log-management/classes/LogHandler.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/nebula-logger/core/main/log-management/classes/LogHandler.cls-meta.xml +++ b/nebula-logger/core/main/log-management/classes/LogHandler.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/nebula-logger/core/main/log-management/classes/LogManagementDataSelector.cls b/nebula-logger/core/main/log-management/classes/LogManagementDataSelector.cls index a308fb26e..bd4e68fd1 100644 --- a/nebula-logger/core/main/log-management/classes/LogManagementDataSelector.cls +++ b/nebula-logger/core/main/log-management/classes/LogManagementDataSelector.cls @@ -31,7 +31,7 @@ public without sharing virtual class LogManagementDataSelector { * @return `List` containing any records in the specified `SObjectType` */ public virtual List getAll(Schema.SObjectType sobjectType, Set fieldNames) { - String query = String.format('SELECT {0} FROM {1}', new List{ String.join(new List(fieldNames), ', '), sobjectType }); + String query = String.format('SELECT {0} FROM {1}', new List{ String.join(fieldNames, ', '), sobjectType }); return Database.query(String.escapeSingleQuotes(query)); } @@ -44,10 +44,7 @@ public without sharing virtual class LogManagementDataSelector { * @return `List` containing any matching records in the specified `SObjectType` */ public virtual List getById(Schema.SObjectType sobjectType, Set fieldNames, List recordIds) { - String query = String.format( - 'SELECT {0} FROM {1} WHERE Id IN :recordIds', - new List{ String.join(new List(fieldNames), ', '), sobjectType } - ); + String query = String.format('SELECT {0} FROM {1} WHERE Id IN :recordIds', new List{ String.join(fieldNames, ', '), sobjectType }); return Database.query(String.escapeSingleQuotes(query)); } diff --git a/nebula-logger/core/main/log-management/classes/LogManagementDataSelector.cls-meta.xml b/nebula-logger/core/main/log-management/classes/LogManagementDataSelector.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/nebula-logger/core/main/log-management/classes/LogManagementDataSelector.cls-meta.xml +++ b/nebula-logger/core/main/log-management/classes/LogManagementDataSelector.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/nebula-logger/core/main/log-management/classes/LogMassDeleteExtension.cls-meta.xml b/nebula-logger/core/main/log-management/classes/LogMassDeleteExtension.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/nebula-logger/core/main/log-management/classes/LogMassDeleteExtension.cls-meta.xml +++ b/nebula-logger/core/main/log-management/classes/LogMassDeleteExtension.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/nebula-logger/core/main/log-management/classes/LogViewerController.cls-meta.xml b/nebula-logger/core/main/log-management/classes/LogViewerController.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/nebula-logger/core/main/log-management/classes/LogViewerController.cls-meta.xml +++ b/nebula-logger/core/main/log-management/classes/LogViewerController.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/nebula-logger/core/main/log-management/classes/LoggerEmailSender.cls-meta.xml b/nebula-logger/core/main/log-management/classes/LoggerEmailSender.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/nebula-logger/core/main/log-management/classes/LoggerEmailSender.cls-meta.xml +++ b/nebula-logger/core/main/log-management/classes/LoggerEmailSender.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/nebula-logger/core/main/log-management/classes/LoggerHomeHeaderController.cls b/nebula-logger/core/main/log-management/classes/LoggerHomeHeaderController.cls index 11174b441..6a4480bdd 100644 --- a/nebula-logger/core/main/log-management/classes/LoggerHomeHeaderController.cls +++ b/nebula-logger/core/main/log-management/classes/LoggerHomeHeaderController.cls @@ -28,6 +28,29 @@ public without sharing class LoggerHomeHeaderController { environment.organizationName = System.UserInfo.getOrganizationName(); environment.organizationType = organization.OrganizationType; + setPluginDetails(environment); + setStatusApiResponseDetails(environment); + + return environment; + } + + private static void setPluginDetails(Environment environment) { + List enabledPlugins = LoggerPlugin.getPluginConfigurations(); + environment.loggerEnabledPluginsCount = enabledPlugins.size(); + if (environment.loggerEnabledPluginsCount == 0) { + environment.loggerEnabledPlugins = null; + return; + } + + List pluginLabels = new List(); + for (LoggerPlugin__mdt plugin : enabledPlugins) { + pluginLabels.add(plugin.Label); + } + pluginLabels.sort(); + environment.loggerEnabledPlugins = String.join(pluginLabels, ', '); + } + + private static void setStatusApiResponseDetails(Environment environment) { Logger.StatusApiResponse statusApiResponse = Logger.callStatusApi(); if (statusApiResponse != null) { environment.organizationInstanceLocation = statusApiResponse.location; @@ -39,8 +62,6 @@ public without sharing class LoggerHomeHeaderController { environment.organizationInstanceProducts = getInstanceProductNames(statusApiResponse); } } - - return environment; } private static String getInstanceProductNames(Logger.StatusApiResponse statusApiResponse) { @@ -53,6 +74,10 @@ public without sharing class LoggerHomeHeaderController { @SuppressWarnings('PMD.ApexDoc, PMD.TooManyFields') public class Environment { + @AuraEnabled + public Integer loggerEnabledPluginsCount; + @AuraEnabled + public String loggerEnabledPlugins = 'Unknown'; @AuraEnabled public String loggerNamespacePrefix = 'Unknown'; @AuraEnabled diff --git a/nebula-logger/core/main/log-management/classes/LoggerHomeHeaderController.cls-meta.xml b/nebula-logger/core/main/log-management/classes/LoggerHomeHeaderController.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/nebula-logger/core/main/log-management/classes/LoggerHomeHeaderController.cls-meta.xml +++ b/nebula-logger/core/main/log-management/classes/LoggerHomeHeaderController.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/nebula-logger/core/main/log-management/classes/LoggerSObjectMetadata.cls-meta.xml b/nebula-logger/core/main/log-management/classes/LoggerSObjectMetadata.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/nebula-logger/core/main/log-management/classes/LoggerSObjectMetadata.cls-meta.xml +++ b/nebula-logger/core/main/log-management/classes/LoggerSObjectMetadata.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/nebula-logger/core/main/log-management/classes/LoggerScenarioHandler.cls-meta.xml b/nebula-logger/core/main/log-management/classes/LoggerScenarioHandler.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/nebula-logger/core/main/log-management/classes/LoggerScenarioHandler.cls-meta.xml +++ b/nebula-logger/core/main/log-management/classes/LoggerScenarioHandler.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/nebula-logger/core/main/log-management/classes/LoggerSettingsController.cls-meta.xml b/nebula-logger/core/main/log-management/classes/LoggerSettingsController.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/nebula-logger/core/main/log-management/classes/LoggerSettingsController.cls-meta.xml +++ b/nebula-logger/core/main/log-management/classes/LoggerSettingsController.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/nebula-logger/core/main/log-management/classes/LoggerTagHandler.cls-meta.xml b/nebula-logger/core/main/log-management/classes/LoggerTagHandler.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/nebula-logger/core/main/log-management/classes/LoggerTagHandler.cls-meta.xml +++ b/nebula-logger/core/main/log-management/classes/LoggerTagHandler.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/nebula-logger/core/main/log-management/classes/RelatedLogEntriesController.cls-meta.xml b/nebula-logger/core/main/log-management/classes/RelatedLogEntriesController.cls-meta.xml index a9fd6e9a5..133fce1ed 100644 --- a/nebula-logger/core/main/log-management/classes/RelatedLogEntriesController.cls-meta.xml +++ b/nebula-logger/core/main/log-management/classes/RelatedLogEntriesController.cls-meta.xml @@ -1,5 +1,5 @@ - 57.0 + 58.0 Active diff --git a/nebula-logger/core/main/log-management/customPermissions/CanExecuteLogBatchPurger.customPermission-meta.xml b/nebula-logger/core/main/log-management/customPermissions/CanExecuteLogBatchPurger.customPermission-meta.xml index f649ec7b3..5aa650bc3 100644 --- a/nebula-logger/core/main/log-management/customPermissions/CanExecuteLogBatchPurger.customPermission-meta.xml +++ b/nebula-logger/core/main/log-management/customPermissions/CanExecuteLogBatchPurger.customPermission-meta.xml @@ -1,5 +1,5 @@ false - + diff --git a/nebula-logger/core/main/log-management/customPermissions/CanModifyLoggerSettings.customPermission-meta.xml b/nebula-logger/core/main/log-management/customPermissions/CanModifyLoggerSettings.customPermission-meta.xml index a59c02f08..cf3056b93 100644 --- a/nebula-logger/core/main/log-management/customPermissions/CanModifyLoggerSettings.customPermission-meta.xml +++ b/nebula-logger/core/main/log-management/customPermissions/CanModifyLoggerSettings.customPermission-meta.xml @@ -1,5 +1,5 @@ false - + diff --git a/nebula-logger/core/main/log-management/dashboards/LogDashboards.dashboardFolder-meta.xml b/nebula-logger/core/main/log-management/dashboards/LogDashboards.dashboardFolder-meta.xml index 835793d1c..180343733 100644 --- a/nebula-logger/core/main/log-management/dashboards/LogDashboards.dashboardFolder-meta.xml +++ b/nebula-logger/core/main/log-management/dashboards/LogDashboards.dashboardFolder-meta.xml @@ -6,5 +6,5 @@ AllInternalUsers Organization - Log Dashboards + Nebula Logger: Log Dashboards diff --git a/nebula-logger/core/main/log-management/dashboards/LogDashboards/LoggerAdmin.dashboard-meta.xml b/nebula-logger/core/main/log-management/dashboards/LogDashboards/LoggerAdmin.dashboard-meta.xml index 59e5604b5..932bf4ef0 100644 --- a/nebula-logger/core/main/log-management/dashboards/LogDashboards/LoggerAdmin.dashboard-meta.xml +++ b/nebula-logger/core/main/log-management/dashboards/LogDashboards/LoggerAdmin.dashboard-meta.xml @@ -335,7 +335,6 @@ SpecifiedUser true - test-triqc8kt7jj0@example.com #000000 Logger Admin Dashboard #000000 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 5f150e264..023154cfe 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 @@ -1547,7 +1547,7 @@ sidebar Region - Log Entry Record Page + Nebula Logger: Log Entry Record Page LogEntry__c