Skip to content

Commit 95fcebe

Browse files
authored
v1.7.18 - Clarifies Rollup Logging Messages (#691)
* Fixes #690
1 parent 65e6393 commit 95fcebe

File tree

7 files changed

+21
-15
lines changed

7 files changed

+21
-15
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ As well, don't miss [the Wiki](../../wiki), which includes even more info for co
2424

2525
## Deployment & Setup
2626

27-
<a href="https://login.salesforce.com/packaging/installPackage.apexp?p0=04tKf000000sy3yIAA">
27+
<a href="https://login.salesforce.com/packaging/installPackage.apexp?p0=04tKf000000sy48IAA">
2828
<img alt="Deploy to Salesforce" src="./media/deploy-package-to-prod.png">
2929
</a>
3030

31-
<a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=04tKf000000sy3yIAA">
31+
<a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=04tKf000000sy48IAA">
3232
<img alt="Deploy to Salesforce Sandbox" src="./media/deploy-package-to-sandbox.png">
3333
</a>
3434
<br/>

extra-tests/classes/RollupLoggerTests.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private class RollupLoggerTests {
6262
RollupPlugin.pluginMocks = new List<RollupPlugin__mdt>{ new RollupPlugin__mdt(DeveloperName = ControlUpdatingLogger.class.getName()) };
6363

6464
RollupLogger.Instance.log('Should not be logged', System.LoggingLevel.DEBUG);
65-
System.assertEquals('logging isn\'t enabled, no further output', localLogString);
65+
System.assertEquals('logging isn\'t enabled, further log messages paused unless otherwise re-activated', localLogString);
6666

6767
RollupLogger.Instance.updateRollupControl(new RollupControl__mdt(IsRollupLoggingEnabled__c = true));
6868
String expectedLogMessage = 'hi';

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "apex-rollup",
3-
"version": "1.7.17",
3+
"version": "1.7.18",
44
"description": "Fast, configurable, elastically scaling custom rollup solution. Apex Invocable action, one-liner Apex trigger/CMDT-driven logic, and scheduled Apex-ready.",
55
"repository": {
66
"type": "git",

rollup-namespaced/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ For more info, see the base `README`.
1818

1919
## Deployment & Setup
2020

21-
<a href="https://login.salesforce.com/packaging/installPackage.apexp?p0=04tKf000000sy43IAA">
21+
<a href="https://login.salesforce.com/packaging/installPackage.apexp?p0=04tKf000000sy4DIAQ">
2222
<img alt="Deploy to Salesforce"
2323
src="./media/deploy-package-to-prod.png">
2424
</a>
2525

26-
<a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=04tKf000000sy43IAA">
26+
<a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=04tKf000000sy4DIAQ">
2727
<img alt="Deploy to Salesforce Sandbox"
2828
src="./media/deploy-package-to-sandbox.png">
2929
</a>

rollup-namespaced/sfdx-project.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"default": true,
55
"package": "apex-rollup-namespaced",
66
"path": "rollup-namespaced/source/rollup",
7-
"versionName": "Fixes issue with inadvertent special handling for non-polymorphic type fields in parent where clauses",
8-
"versionNumber": "1.2.14.0",
7+
"versionName": "Updates some logging messages generated by RollupLogger to clarify when logging is disabled and then re-enabled",
8+
"versionNumber": "1.2.15.0",
99
"versionDescription": "Fast, configurable, elastically scaling custom rollup solution. Apex Invocable action, one-liner Apex trigger/CMDT-driven logic, and scheduled Apex-ready.",
1010
"releaseNotesUrl": "https://github.com/jamessimone/apex-rollup/releases/latest",
1111
"unpackagedMetadata": {
@@ -31,6 +31,7 @@
3131
"[email protected]": "04tKf000000sxy4IAA",
3232
"[email protected]": "04tKf000000sy3eIAA",
3333
"[email protected]": "04tKf000000sy3tIAA",
34-
"[email protected]": "04tKf000000sy43IAA"
34+
"[email protected]": "04tKf000000sy43IAA",
35+
"[email protected]": "04tKf000000sy4DIAQ"
3536
}
3637
}

rollup/core/classes/RollupLogger.cls

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
global without sharing virtual class RollupLogger implements ILogger {
33
@TestVisible
44
// this gets updated via the pipeline as the version number gets incremented
5-
private static final String CURRENT_VERSION_NUMBER = 'v1.7.17';
5+
private static final String CURRENT_VERSION_NUMBER = 'v1.7.18';
66
private static final System.LoggingLevel FALLBACK_LOGGING_LEVEL = System.LoggingLevel.DEBUG;
77
private static final RollupPlugin PLUGIN = new RollupPlugin();
88

@@ -180,7 +180,7 @@ global without sharing virtual class RollupLogger implements ILogger {
180180
if (this.control.IsRollupLoggingEnabled__c == false && this.hasDisabledMessageBeenLogged == false) {
181181
this.hasDisabledMessageBeenLogged = true;
182182
this.control.IsRollupLoggingEnabled__c = true;
183-
this.log('logging isn\'t enabled, no further output', System.LoggingLevel.WARN);
183+
this.log('logging isn\'t enabled, further log messages paused unless otherwise re-activated', System.LoggingLevel.INFO);
184184
this.control.IsRollupLoggingEnabled__c = false;
185185
} else if (this.control.IsRollupLoggingEnabled__c) {
186186
for (ILogger logger : this.loggers) {
@@ -198,8 +198,12 @@ global without sharing virtual class RollupLogger implements ILogger {
198198
}
199199

200200
public CombinedLogger updateRollupControl(RollupControl__mdt control) {
201+
String updateMessage = 'updating control record';
202+
if (control.IsRollupLoggingEnabled__c == true && this.control.IsRollupLoggingEnabled__c != true) {
203+
updateMessage = 'logging is now re-enabled, ' + updateMessage;
204+
}
201205
this.control = control;
202-
this.log('updating control record', control, System.LoggingLevel.INFO);
206+
this.log(updateMessage, control, System.LoggingLevel.INFO);
203207
return this;
204208
}
205209
}

sfdx-project.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"package": "apex-rollup",
66
"path": "rollup",
77
"scopeProfiles": true,
8-
"versionName": "Fixes issue with inadvertent special handling for non-polymorphic type fields in parent where clauses",
9-
"versionNumber": "1.7.17.0",
8+
"versionName": "Updates some logging messages generated by RollupLogger to clarify when logging is disabled and then re-enabled",
9+
"versionNumber": "1.7.18.0",
1010
"versionDescription": "Fast, configurable, elastically scaling custom rollup solution. Apex Invocable action, one-liner Apex trigger/CMDT-driven logic, and scheduled Apex-ready.",
1111
"releaseNotesUrl": "https://github.com/jamessimone/apex-rollup/releases/latest",
1212
"unpackagedMetadata": {
@@ -111,6 +111,7 @@
111111
"[email protected]": "04tKf000000sxxzIAA",
112112
"[email protected]": "04tKf000000sy3ZIAQ",
113113
"[email protected]": "04tKf000000sy3oIAA",
114-
"[email protected]": "04tKf000000sy3yIAA"
114+
"[email protected]": "04tKf000000sy3yIAA",
115+
"[email protected]": "04tKf000000sy48IAA"
115116
}
116117
}

0 commit comments

Comments
 (0)