Skip to content

Commit fb7e15a

Browse files
authored
v1.7.31 - Fixes DST issue with RollupDateLiteral.NextWeek (#729)
* Fixes DST issue with RollupDateLiteral.NextWeek
1 parent 6f796a5 commit fb7e15a

File tree

7 files changed

+17
-14
lines changed

7 files changed

+17
-14
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=04tKf000000syDfIAI">
27+
<a href="https://login.salesforce.com/packaging/installPackage.apexp?p0=04tKf000000syDpIAI">
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=04tKf000000syDfIAI">
31+
<a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=04tKf000000syDpIAI">
3232
<img alt="Deploy to Salesforce Sandbox" src="./media/deploy-package-to-sandbox.png">
3333
</a>
3434
<br/>

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.30",
3+
"version": "1.7.31",
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=04tKf000000syDkIAI">
21+
<a href="https://login.salesforce.com/packaging/installPackage.apexp?p0=04tKf000000syDuIAI">
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=04tKf000000syDkIAI">
26+
<a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=04tKf000000syDuIAI">
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": "Even better finalizer state tracking for full recalcs with multiple conductors",
8-
"versionNumber": "1.2.27.0",
7+
"versionName": "Fixes DST issue with NEXT_WEEK date literal",
8+
"versionNumber": "1.2.28.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": {
@@ -44,6 +44,7 @@
4444
"[email protected]": "04tKf000000syCXIAY",
4545
"[email protected]": "04tKf000000syCrIAI",
4646
"[email protected]": "04tKf000000syDGIAY",
47-
"[email protected]": "04tKf000000syDkIAI"
47+
"[email protected]": "04tKf000000syDkIAI",
48+
"[email protected]": "04tKf000000syDuIAI"
4849
}
4950
}

rollup/core/classes/RollupDateLiteral.cls

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,9 @@ public without sharing abstract class RollupDateLiteral {
362362
*/
363363
private class NextWeekLiteral extends RollupDateLiteral {
364364
public NextWeekLiteral() {
365-
this.ref = getRelativeDatetime(System.today().toStartOfWeek().addDays(7), START_TIME);
366-
this.bound = getRelativeDatetime(this.ref.addDays(6).date(), END_TIME);
365+
Date reference = System.today().toStartOfWeek();
366+
this.ref = getRelativeDatetime(reference.addDays(7), START_TIME);
367+
this.bound = getRelativeDatetime(reference.addDays(13), END_TIME);
367368
}
368369
}
369370

rollup/core/classes/RollupLogger.cls

Lines changed: 1 addition & 1 deletion
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.30';
5+
private static final String CURRENT_VERSION_NUMBER = 'v1.7.31';
66
private static final System.LoggingLevel FALLBACK_LOGGING_LEVEL = System.LoggingLevel.DEBUG;
77
private static final RollupPlugin PLUGIN = new RollupPlugin();
88

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": "Even better finalizer state tracking for full recalcs with multiple conductors",
9-
"versionNumber": "1.7.30.0",
8+
"versionName": "Fixes DST issue with NEXT_WEEK date literal",
9+
"versionNumber": "1.7.31.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": {
@@ -109,6 +109,7 @@
109109
"[email protected]": "04tKf000000syCSIAY",
110110
"[email protected]": "04tKf000000syCmIAI",
111111
"[email protected]": "04tKf000000syDBIAY",
112-
"[email protected]": "04tKf000000syDfIAI"
112+
"[email protected]": "04tKf000000syDfIAI",
113+
"[email protected]": "04tKf000000syDpIAI"
113114
}
114115
}

0 commit comments

Comments
 (0)