-
-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Picking #117 back up with @jongpie to finally add BigObject support through Logger plugin package - includes a new BigObject LogEntryArchive__b and new plugin class * Cleaned up some picklist values for LoggerPlugin__mdt.PluginType__c with an eye towards future BigObject changes * Added an permission set LoggerLogEntryArchiveAdmin within BigObject plugin to grant access to the BigObject LogEntryArchive__b * Switched to lazy-loading the instance of SObjectHandlerInput - tests were previously failing because of the input being generated too early by the trigger framework * Added apex script with sample query for LogEntryArchive__b that includes filters on the indexed fields * Added plugins folder to the script for generating apex doc files, generated updated docs for Apex * Bumped package version number for the managed package * Added 5 minute wait between unlocked package version creation & package installation, added deprecated LoggerPlugin__mdt validation rule & field back into the managed-package folder, cleaned up some docs markdown files Co-authored-by: Jonathan Gillespie <[email protected]>
- Loading branch information
1 parent
fe39523
commit b3ebafc
Showing
157 changed files
with
2,862 additions
and
65 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
## LogEntryArchiveBuilder class | ||
|
||
Optional plugin that provides a BigObject, `LogEntryArchive__b`, as an alternative option to the platform event `LogEntryEvent__e` | ||
|
||
--- | ||
|
||
### Methods | ||
|
||
#### `execute(LoggerPlugin_t configuration, LoggerSObjectHandler.SObjectHandlerInput input)` → `void` | ||
|
||
Handles converting Logger's buffer of `LogEntryEvent__e` records into `LogEntryArchive__b` records for any user with the included custom save method 'BIG_OBJECT' | ||
|
||
##### Parameters | ||
|
||
| Param | Description | | ||
| --------------- | ------------------------------------------------------------------------------------------------ | | ||
| `configuration` | The instance of `LoggerPlugin_t` configured for this specific plugin | | ||
| `input` | The instance of `LoggerSObjectHandlerPlugin.SObjectHandlerInput`, provided by the logging system | | ||
|
||
--- |
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,54 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
## LogRetentionRulesPlugin class | ||
|
||
Optional plugin that adds the ability to create & deploy advanced, configurable rules for setting the retention date of `Log__c` records, using custom metadata types `LogRetentionRule_t` and `LogRetentionRuleCondition_t`. | ||
|
||
--- | ||
|
||
### Properties | ||
|
||
#### `conditions` → `List<String>` | ||
|
||
#### `conditionsLogic` → `String` | ||
|
||
#### `conditionsLogicType` → `String` | ||
|
||
#### `matchesFilter` → `Boolean` | ||
|
||
#### `record` → `SObject` | ||
|
||
#### `rule` → `LogRetentionRule_t` | ||
|
||
--- | ||
|
||
### Methods | ||
|
||
#### `FieldPath(Schema.SObjectType sobjectType, String fieldPath)` → `public` | ||
|
||
#### `FilterResult(SObject record, LogRetentionRule_t rule, List<LogRetentionRuleCondition_t> filterConditions)` → `public` | ||
|
||
#### `evaluate(String x)` → `Boolean` | ||
|
||
#### `execute(LoggerPlugin_t configuration, LoggerSObjectHandler.SObjectHandlerInput input)` → `void` | ||
|
||
Handles converting Logger's buffer of `LogEntryEvent__e` records into `LogEntryArchive__b` records for any user with the included custom save method 'BIG_OBJECT' | ||
|
||
##### Parameters | ||
|
||
| Param | Description | | ||
| --------------- | ------------------------------------------------------------------------------------------------ | | ||
| `configuration` | The instance of `LoggerPlugin_t` configured for this specific plugin | | ||
| `input` | The instance of `LoggerSObjectHandlerPlugin.SObjectHandlerInput`, provided by the logging system | | ||
|
||
#### `getCondition()` → `String` | ||
|
||
#### `getField()` → `Schema.SObjectField` | ||
|
||
#### `getValue(SObject record)` → `Object` | ||
|
||
#### `matchesFilter()` → `Boolean` | ||
|
||
--- |
Oops, something went wrong.
b3ebafc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you again for bringing this one home! Really excited to see this used as a plugin — what a journey since we first worked on this together!
b3ebafc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for all of your help!! It's definitely been a journey getting to this point, and I love how it's coming together 🥳