From 366ca57a108acc5684cb98f00069d4b6bb569288 Mon Sep 17 00:00:00 2001
From: James Simone <16430727+jamessimone@users.noreply.github.com>
Date: Thu, 25 Apr 2024 16:09:49 -0600
Subject: [PATCH] v1.6.24 - Update RollupLogger interface visibility (#586)
* promote RollupLogger's virtual methods & inner interface to global.
This should allow subscribers of the managed package to write their own plugins.
---
README.md | 5 +++--
package.json | 2 +-
rollup-namespaced/README.md | 4 ++--
rollup-namespaced/sfdx-project.json | 2 +-
rollup/core/classes/RollupLogger.cls | 10 +++++-----
sfdx-project.json | 7 ++++---
6 files changed, 16 insertions(+), 14 deletions(-)
diff --git a/README.md b/README.md
index faae2c10..d5e7ba0f 100644
--- a/README.md
+++ b/README.md
@@ -24,12 +24,12 @@ As well, don't miss [the Wiki](../../wiki), which includes even more info for co
## Deployment & Setup
-
+
-
+
@@ -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);
}
}
diff --git a/package.json b/package.json
index 1837fb23..b8365038 100644
--- a/package.json
+++ b/package.json
@@ -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",
diff --git a/rollup-namespaced/README.md b/rollup-namespaced/README.md
index a3372037..4af78839 100644
--- a/rollup-namespaced/README.md
+++ b/rollup-namespaced/README.md
@@ -18,12 +18,12 @@ For more info, see the base `README`.
## Deployment & Setup
-
+
-
+
diff --git a/rollup-namespaced/sfdx-project.json b/rollup-namespaced/sfdx-project.json
index 60693a23..a417d5dc 100644
--- a/rollup-namespaced/sfdx-project.json
+++ b/rollup-namespaced/sfdx-project.json
@@ -25,6 +25,6 @@
"apex-rollup-namespaced@1.1.13": "04t6g000008OaYwAAK",
"apex-rollup-namespaced@1.1.14": "04t6g000008OaZBAA0",
"apex-rollup-namespaced@1.1.16": "04t6g000008OaZaAAK",
- "apex-rollup-namespaced@1.1.17": "04t6g000008OawNAAS"
+ "apex-rollup-namespaced@1.1.17": "04t6g000008OawwAAC"
}
}
\ No newline at end of file
diff --git a/rollup/core/classes/RollupLogger.cls b/rollup/core/classes/RollupLogger.cls
index ded46c4c..27442dec 100644
--- a/rollup/core/classes/RollupLogger.cls
+++ b/rollup/core/classes/RollupLogger.cls
@@ -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();
@@ -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();
@@ -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
}
diff --git a/sfdx-project.json b/sfdx-project.json
index 8d2c3281..8a20feea 100644
--- a/sfdx-project.json
+++ b/sfdx-project.json
@@ -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": {
@@ -106,6 +106,7 @@
"apex-rollup@1.6.20": "04t6g000008OanPAAS",
"apex-rollup@1.6.21": "04t6g000008OatsAAC",
"apex-rollup@1.6.22": "04t6g000008OavAAAS",
- "apex-rollup@1.6.23": "04t6g000008OawIAAS"
+ "apex-rollup@1.6.23": "04t6g000008OawIAAS",
+ "apex-rollup@1.6.24": "04t6g000008OawrAAC"
}
}
\ No newline at end of file