-
-
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.
Created new LoggerScenario__c custom object (#356)
* Created new object LoggerScenario__c as a more robust replacement for the old text field, Log__c.Scenario__c * Added new object & fields to permission sets * Rearranged tab order in LoggerConsole to have logger settings, log entry event stream & logger scenarios at the top of the list * Small scope creep to update picklist values for various 'API Version' fields * Fixed a test failure in LoggerEngineDataSelector_Tests mentioned in #358 * Fixed a small issue with how the pipeline generates package version aliases, cleaned up sfdx-project.json & README files
- Loading branch information
Showing
57 changed files
with
1,116 additions
and
81 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
## LoggerScenarioHandler class | ||
|
||
Handles trigger events for the `LoggerScenario__c` object | ||
|
||
--- | ||
|
||
### Methods | ||
|
||
#### `getSObjectType()` → `Schema.SObjectType` | ||
|
||
Returns SObject Type that the handler is responsible for processing | ||
|
||
##### Return | ||
|
||
**Type** | ||
|
||
Schema.SObjectType | ||
|
||
**Description** | ||
|
||
The instance of `SObjectType` | ||
|
||
--- |
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
25 changes: 25 additions & 0 deletions
25
.../main/configuration/customMetadata/LoggerSObjectHandler.LoggerScenarioHandler.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,25 @@ | ||
<?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>LoggerScenarioHandler config</label> | ||
<protected>false</protected> | ||
<values> | ||
<field>IsEnabled__c</field> | ||
<value xsi:type="xsd:boolean">true</value> | ||
</values> | ||
<values> | ||
<field>SObjectHandlerApexClass__c</field> | ||
<value xsi:type="xsd:string">LoggerScenarioHandler</value> | ||
</values> | ||
<values> | ||
<field>SObjectTypeOverride__c</field> | ||
<value xsi:nil="true" /> | ||
</values> | ||
<values> | ||
<field>SObjectType__c</field> | ||
<value xsi:type="xsd:string">LoggerScenario__c</value> | ||
</values> | ||
</CustomMetadata> |
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
18 changes: 18 additions & 0 deletions
18
nebula-logger/core/main/log-management/classes/LoggerScenarioHandler.cls
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,18 @@ | ||
//------------------------------------------------------------------------------------------------// | ||
// This file is part of the Nebula Logger project, released under the MIT License. // | ||
// See LICENSE file or go to https://github.com/jongpie/NebulaLogger for full license details. // | ||
//------------------------------------------------------------------------------------------------// | ||
|
||
/** | ||
* @group Log Management | ||
* @description Handles trigger events for the `LoggerScenario__c` object | ||
*/ | ||
public without sharing class LoggerScenarioHandler extends LoggerSObjectHandler { | ||
/** | ||
* @description Returns SObject Type that the handler is responsible for processing | ||
* @return The instance of `SObjectType` | ||
*/ | ||
public override Schema.SObjectType getSObjectType() { | ||
return Schema.LoggerScenario__c.SObjectType; | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
nebula-logger/core/main/log-management/classes/LoggerScenarioHandler.cls-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,5 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>55.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
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.