-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.1.6 - Stable for custom objects (#47)
* Actual fix for #45 (support for custom objects), fixed issue where averages could blow up when a null value was present * Fixed a potential concat issue caused by trailing delimiters, added additional integration tests. * Fixed an issue with usage of RollupFlowBulkProcessor where an inner exception could get inadvertently eaten * Standardized how Rollup__mdt records are retrieved, fixing for good the issues present with custom fields/objects being used in Rollup__mdt entity definition and field definition fields - code review feedback from @jongpie
- Loading branch information
1 parent
c037156
commit efa2591
Showing
17 changed files
with
652 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
extra-tests/customMetadata/Rollup.RollupIntegrationTests.md-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CustomMetadata xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | ||
<label>RollupIntegrationTests</label> | ||
<protected>false</protected> | ||
<values> | ||
<field>CalcItemWhereClause__c</field> | ||
<value xsi:nil="true"/> | ||
</values> | ||
<values> | ||
<field>CalcItem__c</field> | ||
<value xsi:type="xsd:string">ApplicationLog__c</value> | ||
</values> | ||
<values> | ||
<field>ChangedFieldsOnCalcItem__c</field> | ||
<value xsi:nil="true"/> | ||
</values> | ||
<values> | ||
<field>FullRecalculationDefaultNumberValue__c</field> | ||
<value xsi:nil="true"/> | ||
</values> | ||
<values> | ||
<field>FullRecalculationDefaultStringValue__c</field> | ||
<value xsi:nil="true"/> | ||
</values> | ||
<values> | ||
<field>IsFullRecordSet__c</field> | ||
<value xsi:type="xsd:boolean">false</value> | ||
</values> | ||
<values> | ||
<field>IsRollupStartedFromParent__c</field> | ||
<value xsi:type="xsd:boolean">false</value> | ||
</values> | ||
<values> | ||
<field>LookupFieldOnCalcItem__c</field> | ||
<value xsi:type="xsd:string">Application__c</value> | ||
</values> | ||
<values> | ||
<field>LookupFieldOnLookupObject__c</field> | ||
<value xsi:type="xsd:string">Id</value> | ||
</values> | ||
<values> | ||
<field>LookupObject__c</field> | ||
<value xsi:type="xsd:string">Application__c</value> | ||
</values> | ||
<values> | ||
<field>OrderByFirstLast__c</field> | ||
<value xsi:nil="true"/> | ||
</values> | ||
<values> | ||
<field>RollupControl__c</field> | ||
<value xsi:type="xsd:string">Org_Defaults</value> | ||
</values> | ||
<values> | ||
<field>RollupFieldOnCalcItem__c</field> | ||
<value xsi:type="xsd:string">Object__c</value> | ||
</values> | ||
<values> | ||
<field>RollupFieldOnLookupObject__c</field> | ||
<value xsi:type="xsd:string">Objects__c</value> | ||
</values> | ||
<values> | ||
<field>RollupOperation__c</field> | ||
<value xsi:type="xsd:string">CONCAT_DISTINCT</value> | ||
</values> | ||
</CustomMetadata> |
164 changes: 164 additions & 0 deletions
164
extra-tests/objects/ApplicationLog__c/ApplicationLog__c.object-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<actionOverrides> | ||
<actionName>Accept</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Accept</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Accept</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>CancelEdit</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>CancelEdit</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>CancelEdit</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Clone</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Clone</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Clone</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Delete</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Delete</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Delete</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Edit</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Edit</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Edit</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>List</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>List</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>List</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>New</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>New</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>New</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>SaveEdit</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>SaveEdit</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>SaveEdit</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Tab</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Tab</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Tab</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>View</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>View</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>View</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<allowInChatterGroups>false</allowInChatterGroups> | ||
<compactLayoutAssignment>SYSTEM</compactLayoutAssignment> | ||
<deploymentStatus>Deployed</deploymentStatus> | ||
<enableActivities>false</enableActivities> | ||
<enableBulkApi>true</enableBulkApi> | ||
<enableFeeds>false</enableFeeds> | ||
<enableHistory>false</enableHistory> | ||
<enableLicensing>false</enableLicensing> | ||
<enableReports>false</enableReports> | ||
<enableSearch>false</enableSearch> | ||
<enableSharing>true</enableSharing> | ||
<enableStreamingApi>true</enableStreamingApi> | ||
<label>Application Log</label> | ||
<nameField> | ||
<label>Application Log Name</label> | ||
<type>Text</type> | ||
</nameField> | ||
<pluralLabel>Application Logs</pluralLabel> | ||
<searchLayouts/> | ||
<sharingModel>ReadWrite</sharingModel> | ||
<visibility>Public</visibility> | ||
</CustomObject> |
13 changes: 13 additions & 0 deletions
13
extra-tests/objects/ApplicationLog__c/fields/Application__c.field-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>Application__c</fullName> | ||
<deleteConstraint>SetNull</deleteConstraint> | ||
<externalId>false</externalId> | ||
<label>Application</label> | ||
<referenceTo>Application__c</referenceTo> | ||
<relationshipLabel>Application Logs</relationshipLabel> | ||
<relationshipName>Application_Logs</relationshipName> | ||
<required>false</required> | ||
<trackTrending>false</trackTrending> | ||
<type>Lookup</type> | ||
</CustomField> |
11 changes: 11 additions & 0 deletions
11
extra-tests/objects/ApplicationLog__c/fields/Object__c.field-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>Object__c</fullName> | ||
<externalId>false</externalId> | ||
<label>Object</label> | ||
<length>255</length> | ||
<required>false</required> | ||
<trackTrending>false</trackTrending> | ||
<type>Text</type> | ||
<unique>false</unique> | ||
</CustomField> |
Oops, something went wrong.