Skip to content

Commit

Permalink
v1.6.24 - Update RollupLogger interface visibility (#586)
Browse files Browse the repository at this point in the history
* promote RollupLogger's virtual methods & inner interface to global.
This should allow subscribers of the managed package to write their own plugins.
  • Loading branch information
jamessimone authored Apr 25, 2024
1 parent d8ff7fa commit 366ca57
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 14 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ As well, don't miss [the Wiki](../../wiki), which includes even more info for co

## Deployment & Setup

<a href="https://login.salesforce.com/packaging/installPackage.apexp?p0=04t6g000008OawIAAS">
<a href="https://login.salesforce.com/packaging/installPackage.apexp?p0=04t6g000008OawrAAC">
<img alt="Deploy to Salesforce"
src="./media/deploy-package-to-prod.png">
</a>

<a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=04t6g000008OawIAAS">
<a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=04t6g000008OawrAAC">
<img alt="Deploy to Salesforce Sandbox"
src="./media/deploy-package-to-sandbox.png">
</a>
Expand Down Expand Up @@ -980,6 +980,7 @@ public class RollupLogger {
void log(String logString, System.LoggingLevel logLevel);
void log(String logString, Object logObject, System.LoggingLevel logLevel);
void save();
ILogger updateRollupControl(RollupControl__mdt control);
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apex-rollup",
"version": "1.6.23",
"version": "1.6.24",
"description": "Fast, configurable, elastically scaling custom rollup solution. Apex Invocable action, one-liner Apex trigger/CMDT-driven logic, and scheduled Apex-ready.",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions rollup-namespaced/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ For more info, see the base `README`.

## Deployment & Setup

<a href="https://login.salesforce.com/packaging/installPackage.apexp?p0=04t6g000008OawNAAS">
<a href="https://login.salesforce.com/packaging/installPackage.apexp?p0=04t6g000008OawwAAC">
<img alt="Deploy to Salesforce"
src="./media/deploy-package-to-prod.png">
</a>

<a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=04t6g000008OawNAAS">
<a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=04t6g000008OawwAAC">
<img alt="Deploy to Salesforce Sandbox"
src="./media/deploy-package-to-sandbox.png">
</a>
2 changes: 1 addition & 1 deletion rollup-namespaced/sfdx-project.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
"[email protected]": "04t6g000008OaYwAAK",
"[email protected]": "04t6g000008OaZBAA0",
"[email protected]": "04t6g000008OaZaAAK",
"[email protected]": "04t6g000008OawNAAS"
"[email protected]": "04t6g000008OawwAAC"
}
}
10 changes: 5 additions & 5 deletions rollup/core/classes/RollupLogger.cls
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
global without sharing virtual class RollupLogger implements ILogger {
@TestVisible
// this gets updated via the pipeline as the version number gets incremented
private static final String CURRENT_VERSION_NUMBER = 'v1.6.23';
private static final String CURRENT_VERSION_NUMBER = 'v1.6.24';
private static final System.LoggingLevel FALLBACK_LOGGING_LEVEL = System.LoggingLevel.DEBUG;
private static final RollupPlugin PLUGIN = new RollupPlugin();

Expand All @@ -23,10 +23,10 @@ global without sharing virtual class RollupLogger implements ILogger {
private set;
}

public interface ToStringObject {
global interface ToStringObject {
}

public interface ILogger {
global interface ILogger {
void log(String logString, System.LoggingLevel logLevel);
void log(String logString, Object logObject, System.LoggingLevel logLevel);
void save();
Expand All @@ -37,13 +37,13 @@ global without sharing virtual class RollupLogger implements ILogger {
this.log(logString, null, logLevel);
}

public virtual void log(String logString, Object logObject, System.LoggingLevel logLevel) {
global virtual void log(String logString, Object logObject, System.LoggingLevel logLevel) {
if (logLevel.ordinal() >= this.currentLoggingLevel.ordinal()) {
this.innerLog(logString, logObject, logLevel);
}
}

public virtual void save() {
global virtual void save() {
// this is a no-op by default; sub-classes can opt in if they need to perform DML
}

Expand Down
7 changes: 4 additions & 3 deletions sfdx-project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"package": "apex-rollup",
"path": "rollup",
"scopeProfiles": true,
"versionName": "Adds support for exceptions to be thrown when parent-level saves errors occur",
"versionNumber": "1.6.23.0",
"versionName": "Updates visibility of RollupLogger interfaces",
"versionNumber": "1.6.24.0",
"versionDescription": "Fast, configurable, elastically scaling custom rollup solution. Apex Invocable action, one-liner Apex trigger/CMDT-driven logic, and scheduled Apex-ready.",
"releaseNotesUrl": "https://github.com/jamessimone/apex-rollup/releases/latest",
"unpackagedMetadata": {
Expand Down Expand Up @@ -106,6 +106,7 @@
"[email protected]": "04t6g000008OanPAAS",
"[email protected]": "04t6g000008OatsAAC",
"[email protected]": "04t6g000008OavAAAS",
"[email protected]": "04t6g000008OawIAAS"
"[email protected]": "04t6g000008OawIAAS",
"[email protected]": "04t6g000008OawrAAC"
}
}

0 comments on commit 366ca57

Please sign in to comment.