Skip to content

Releases: jamessimone/apex-rollup

v1.6.29 - Grandparent Full Recalc Bugfixes

21 Jun 20:24
274d640
Compare
Choose a tag to compare
  • Fixed an issue with grandparent rollups where all parents couldn't be retrieved in one go due to polymorphic fields being used
  • Fixes an issue reported by aesthetics where grandparent full recalc rollups with mutually exclusive where clauses could accidentally cache the previously filtered children from prior where clauses

v1.6.28 - Summer '24 Release

20 Jun 22:44
a2770f3
Compare
Choose a tag to compare
  • Upgrades all metadata to API version 61.0
  • Fixes an issue where the namespaced package version wasn't always getting the updated version name set correctly
  • Adds support for grouped rollups using RollupGrouping__mdt metadata to specify the Rollup Operation field on that piece of metadata as well, allowing for you to do things like applying the MAX of three different SUMS to one parent field
  • Adds where clause to the cache key used for grandparent rollups

v1.6.27 - Concat Delimiter Supports New Line

12 Jun 13:13
da030d4
Compare
Choose a tag to compare
  • Optimizes an if statement to the outside of a for loop when it isn't necessary to filter children prior to rolling up
  • Tech debt cleanup - removes blanket Deeply Nested If Statement PMD suppression
  • Further cleaned up one of the conditionals in RollupCalcItemReplacer by taking advantage of null coalesce
  • Fixes #595 - thanks to @jongpie for reminding me to update the DLRS migration scripts

v1.6.26 - Rollup Grouping support, FIRST/LAST/MOST/AVERAGE bugfixes

17 May 15:45
8fa1867
Compare
Choose a tag to compare
  • Adds new RollupGrouping__mdt, which at the moment has no fields on it. I am considering the promotion of Rollup__mdt.RollupOperation__c to a global value set in the future, which would allow for fun possibilities like taking the max of two sums. When two or more children Rollup__mdt records have their Rollup Grouping lookup field set and they are properly pointed to the same parent field, all children records will be retrieved and accounted for prior to setting the parent rollup field
  • Fixes #589 by updating the rollup calculators for AVERAGE, FIRST, LAST, and MOST, all of which weren't able to handle parents with more than 50k children during batch full recalcs
  • Releases an updated version of the Extra Code Coverage plugin

v1.6.25 - Adds support for distinct sums, averages, and more

02 May 17:57
908512e
Compare
Choose a tag to compare

Overview

  • As discussed in #583, adds support for distinct rollups via Rollup__mdt.IsDistinct__c. Technically, a CONCAT-based rollup can now supply this flag instead of using the CONCAT_DISTINCT rollup operation value, but I am leaving support for CONCAT_DISTINCT in order to not make this a breaking change
  • This change also has the notable benefit of abstracting most of the logic in RollupCalculator that was previously SObject-based, which will allow me to continue work on a feature that was requested last year (which I have not had time to get back to): the ability to "group" rollup operations (so, taking sums from two different children/two different children fields and applying them to the same parent field, or even wilder: taking the max of two sums and applying the winner to a parent field). While this work is still to come, this release paves the way for that functionality

Usage

You can now check off Is Distinct on your Rollup metadata:

image

v1.6.24 - Update RollupLogger interface visibility

25 Apr 23:05
366ca57
Compare
Choose a tag to compare
  • Allows namespaced package subscribers to properly extend/implement RollupLogger interfaces for logging plugins. A huge thanks to @jasonsiders for contributing this!

v1.6.23 - Configurable Errors Thrown On Save

23 Apr 01:41
d8ff7fa
Compare
Choose a tag to compare
  • Fixes an issue long-discussed in #523 that allows subscribers to throw errors on save with Apex Rollup instead of logging a WARN message

v1.6.22 - Grandparent COUNT_DISTINCT deletion bugfix

16 Apr 15:27
b7cafd8
Compare
Choose a tag to compare
  • Fixes #581 by properly handling COUNT_DISTINCT for grandparent rollup deletions

v1.6.21 - Rollup to Multicurrency Parents Bugfix

09 Apr 16:13
936c135
Compare
Choose a tag to compare
  • Fixes an issue reported by Joseph Mason where rollups to different parents accidentally cached
    the converted IsoCode value of the first child -> parent multicurrency conversion
  • Adds safety step in pipeline to ensure scratch orgs are deleted properly

v1.6.20 - Null Coalesce

28 Mar 00:26
2a9e4de
Compare
Choose a tag to compare
  • Backend changes to take advantage of the new null coalesce (??) syntax in Apex. While this does not affect the functionality of Apex Rollup, it helps with maintainability by decreasing the overall size of the package