Skip to content

Commit 70cecec

Browse files
authored
Bugfix: incorrect visibility rules for the tab "Related Record Details" on LogEntryRecordPage (#741)
* Small bugfix related to component visibility rules added in release v4.14.0, which prevented the tab "Related Record Details" from showing on LogEntryRecordPage.flexipage-meta.xml * Also fixed some flaky tests in LogBatchPurgeController_Tests that caused (inconsistent) pipeline errors due to (sometimes) duplicate external ID values (occasionally)
1 parent 17c6b7a commit 70cecec

8 files changed

Lines changed: 23 additions & 510 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55

66
The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects.
77

8-
## Unlocked Package - v4.14.2
8+
## Unlocked Package - v4.14.3
99

10-
[![Install Unlocked Package in a Sandbox](./images/btn-install-unlocked-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000015oQZQAY)
11-
[![Install Unlocked Package in Production](./images/btn-install-unlocked-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000015oQZQAY)
10+
[![Install Unlocked Package in a Sandbox](./images/btn-install-unlocked-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000015oQjQAI)
11+
[![Install Unlocked Package in Production](./images/btn-install-unlocked-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000015oQjQAI)
1212
[![View Documentation](./images/btn-view-documentation.png)](https://jongpie.github.io/NebulaLogger/)
1313

14-
`sf package install --wait 20 --security-type AdminsOnly --package 04t5Y0000015oQZQAY`
14+
`sf package install --wait 20 --security-type AdminsOnly --package 04t5Y0000015oQjQAI`
1515

16-
`sfdx force:package:install --wait 20 --securitytype AdminsOnly --package 04t5Y0000015oQZQAY`
16+
`sfdx force:package:install --wait 20 --securitytype AdminsOnly --package 04t5Y0000015oQjQAI`
1717

1818
---
1919

nebula-logger/core/main/log-management/flexipages/LogEntryRecordPage.flexipage-meta.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@
11031103
<componentName>flexipage:fieldSection</componentName>
11041104
<identifier>flexipage_fieldSection8</identifier>
11051105
<visibilityRule>
1106-
<booleanFilter>1 AND 2</booleanFilter>
1106+
<booleanFilter>1 OR 2</booleanFilter>
11071107
<criteria>
11081108
<leftValue>{!Record.HasRecordId__c}</leftValue>
11091109
<operator>EQUAL</operator>

nebula-logger/core/main/logger-engine/classes/Logger.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
global with sharing class Logger {
1616
// There's no reliable way to get the version number dynamically in Apex
1717
@TestVisible
18-
private static final String CURRENT_VERSION_NUMBER = 'v4.14.2';
18+
private static final String CURRENT_VERSION_NUMBER = 'v4.14.3';
1919
private static final System.LoggingLevel FALLBACK_LOGGING_LEVEL = System.LoggingLevel.DEBUG;
2020
private static final List<LogEntryEventBuilder> LOG_ENTRIES_BUFFER = new List<LogEntryEventBuilder>();
2121
private static final String MISSING_SCENARIO_ERROR_MESSAGE = 'No logger scenario specified. A scenario is required for logging in this org.';

nebula-logger/core/main/logger-engine/lwc/logger/logEntryBuilder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import FORM_FACTOR from '@salesforce/client/formFactor';
66
import { LoggerStackTrace } from './loggerStackTrace';
77

8-
const CURRENT_VERSION_NUMBER = 'v4.14.2';
8+
const CURRENT_VERSION_NUMBER = 'v4.14.3';
99

1010
const LOGGING_LEVEL_EMOJIS = {
1111
ERROR: '⛔',

nebula-logger/core/tests/log-management/classes/LogBatchPurgeController_Tests.cls

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ private class LogBatchPurgeController_Tests {
164164
private static void it_should_return_summary_for_logEntryTag_created_today() {
165165
Integer expectedRecordCountWithPurgeActionDelete = 5;
166166
Integer expectedRecordCountWithPurgeActionCustom = 4;
167-
createLogEntryTagRecords('TXN1', 'Delete', expectedRecordCountWithPurgeActionDelete, System.now());
168-
createLogEntryTagRecords('TXN2', 'Custom', expectedRecordCountWithPurgeActionCustom, System.now());
167+
createLogEntryTagRecords('Delete', expectedRecordCountWithPurgeActionDelete, System.now());
168+
createLogEntryTagRecords('Custom', expectedRecordCountWithPurgeActionCustom, System.now());
169169

170170
List<AggregateResult> logObjectResult = LogBatchPurgeController.getLogEntryTagObjectSummary('TODAY');
171171

@@ -186,8 +186,8 @@ private class LogBatchPurgeController_Tests {
186186
Integer expectedRecordCountWithPurgeActionDelete = 5;
187187
Integer expectedRecordCountWithPurgeActionCustom = 4;
188188
Datetime createDate = DateTime.newInstance(Date.today().toStartOfWeek(), Datetime.now().time());
189-
createLogEntryTagRecords('TXN1', 'Delete', expectedRecordCountWithPurgeActionDelete, createDate);
190-
createLogEntryTagRecords('TXN2', 'Custom', expectedRecordCountWithPurgeActionCustom, createDate);
189+
createLogEntryTagRecords('Delete', expectedRecordCountWithPurgeActionDelete, createDate);
190+
createLogEntryTagRecords('Custom', expectedRecordCountWithPurgeActionCustom, createDate);
191191

192192
List<AggregateResult> logObjectResult = LogBatchPurgeController.getLogEntryTagObjectSummary('THIS_WEEK');
193193

@@ -208,8 +208,8 @@ private class LogBatchPurgeController_Tests {
208208
Integer expectedRecordCountWithPurgeActionDelete = 5;
209209
Integer expectedRecordCountWithPurgeActionCustom = 4;
210210
Datetime createDate = DateTime.newInstance(Date.today().toStartOfMonth(), Datetime.now().time());
211-
createLogEntryTagRecords('TXN1', 'Delete', expectedRecordCountWithPurgeActionDelete, createDate);
212-
createLogEntryTagRecords('TXN2', 'Custom', expectedRecordCountWithPurgeActionCustom, createDate);
211+
createLogEntryTagRecords('Delete', expectedRecordCountWithPurgeActionDelete, createDate);
212+
createLogEntryTagRecords('Custom', expectedRecordCountWithPurgeActionCustom, createDate);
213213

214214
List<AggregateResult> logObjectResult = LogBatchPurgeController.getLogEntryTagObjectSummary('THIS_MONTH');
215215

@@ -230,8 +230,8 @@ private class LogBatchPurgeController_Tests {
230230
Integer expectedRecordCountWithPurgeActionDelete = 5;
231231
Integer expectedRecordCountWithPurgeActionCustom = 4;
232232
Datetime createDate = Datetime.now();
233-
createLogEntryTagRecords('TXN1', 'Delete', expectedRecordCountWithPurgeActionDelete, createDate);
234-
createLogEntryTagRecords('TXN2', 'Custom', expectedRecordCountWithPurgeActionCustom, createDate);
233+
createLogEntryTagRecords('Delete', expectedRecordCountWithPurgeActionDelete, createDate);
234+
createLogEntryTagRecords('Custom', expectedRecordCountWithPurgeActionCustom, createDate);
235235

236236
Map<String, Object> metricsResult = LogBatchPurgeController.getMetrics('TODAY');
237237

@@ -360,8 +360,8 @@ private class LogBatchPurgeController_Tests {
360360
}
361361
}
362362

363-
private static void createLogEntryTagRecords(String transactionIdPrefix, String purgeAction, Integer noOfRecords, Datetime createDate) {
364-
Log__c log = new log__c(TransactionId__c = transactionIdPrefix);
363+
private static void createLogEntryTagRecords(String purgeAction, Integer noOfRecords, Datetime createDate) {
364+
Log__c log = new log__c(TransactionId__c = System.UUID.randomUUID().toString());
365365
log.LogPurgeAction__c = purgeAction;
366366
log.LogRetentionDate__c = System.today();
367367
insert log;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nebula-logger",
3-
"version": "4.14.2",
3+
"version": "4.14.3",
44
"description": "The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects.",
55
"author": "Jonathan Gillespie",
66
"license": "MIT",

0 commit comments

Comments
 (0)