-
-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: logging no longer fails when parent transaction ID is not fou…
…nd (#307) * Fixed #300 by adding new field Log__c.ParentLogTransactionId__c and updated trigger handler logic to optionally set Log__c.ParentLog__c when the parent log is found/skips it when the parent log is not found * Adding new plugin to add additional logging options for async failures (#309) for BatchApexErrorEvent and default Finalizer implementation for logging failures * Updated the description of perm set LoggerLogCreator to indicate that it's currently optional, but might be needed in the future * Optimized LogEntryEventHandler.TAG_ASSIGNMENT_RULES by adding lazy-loading (discussed in #303) and added a check on `LogEntryTagRule__mdt.getAll().isEmpty() == true` to minimize the usage of querying on LogEntryTagRule__mdt * Cleaned up some methods in Logger_Tests, added TODOs for several test methods that will eventually be rewritten, alphabetized some fields in LogEntryEventBuilder * Fixed #308 by adding the Schema namespace to a reference of FieldSetMember (now Schema.FieldSetMember) * Further fixed issues like #308 by adding empty classes with problematic names (FieldSet, FieldSetMember, SObjectField, SObjectType and Test for now) - this will cause deployment errors in the pipeline if there are any references that don't use the System/Schema namespaces * Removed overload for LoggerMockDataCreator.createAggregateResult(Map<String, Object>) since the current approach doesn't actually set any fields on AggregateResult Thanks to @jamessimone for pointing this out in my last PR. Long term, I'll change the approach used for AggregateResult * Removed some stale @SuppressWarnings annotations in a couple of Apex classes, promoted a few buried strings to be constants, and a cleaned up a few other small code bits * Fixed some broken images in some plugin README.md * Added CODEOWNERS file * Changed build.yml so that the managed package build is a dependency for creating the unlocked package This will add more time to the build, but it will ensure that the managed package (the more problematic package) can be created before creating the unlocked package * Fixed some dependabot alerts by adding some packages in package.json's dependencies & recreating package-lock.json Co-authored-by: James Simone <16430727+jamessimone@users.noreply.github.com>
- Loading branch information
1 parent
3b04138
commit 7c6f49c
Showing
95 changed files
with
1,511 additions
and
1,039 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 @@ | ||
* @jongpie |
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
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
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
15 changes: 15 additions & 0 deletions
15
...figuration/objects/LoggerSObjectHandler__mdt/fields/SObjectTypeOverride__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,15 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>SObjectTypeOverride__c</fullName> | ||
<description | ||
>Not all base platform types can be selected using the SObjectType picklist. If your object is not supported, supply the API name for the object here instead.</description> | ||
<externalId>false</externalId> | ||
<fieldManageability>SubscriberControlled</fieldManageability> | ||
<inlineHelpText | ||
>Not all base platform types can be selected using the SObjectType picklist. If your object is not supported, supply the API name for the object here instead.</inlineHelpText> | ||
<label>SObjectType Override</label> | ||
<length>255</length> | ||
<required>false</required> | ||
<type>Text</type> | ||
<unique>false</unique> | ||
</CustomField> |
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
Oops, something went wrong.