-
-
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.
New Logger Parameter records to control storage locations for scenari…
…o & tag data (#422) * Added declarative changes to make it configurable if scenarios or tags are stored in custom objects (default) or text fields (which can help with data skew issues in orgs with large data volumes) - this is controlled by the 2 new LoggerParamemter__mdt records 'NormalizeScenarioData' and 'NormalizeTagData' * Added code changes to control where scenario & tag data is stored, based on the new LoggerParameter__mdt records
- Loading branch information
Showing
33 changed files
with
526 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
name: Fetch Repo Stats | ||
|
||
on: | ||
schedule: | ||
# Run this once per day, towards the end of the day for keeping the most | ||
|
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
21 changes: 21 additions & 0 deletions
21
.../core/main/configuration/customMetadata/LoggerParameter.NormalizeScenarioData.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,21 @@ | ||
<?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>Normalize Scenario Data</label> | ||
<protected>false</protected> | ||
<values> | ||
<field>Description__c</field> | ||
<value | ||
xsi:type="xsd:string" | ||
>When set to 'true' (default), any scenarios specified via Logger.setScenario() will be stored in the custom object LoggerScenario__c. | ||
|
||
When set to 'false', scenarios are only stored in the text fields Log__c.TransactionScenarioName__c and LogEntry__c.EntryScenarioName__c</value> | ||
</values> | ||
<values> | ||
<field>Value__c</field> | ||
<value xsi:type="xsd:string">true</value> | ||
</values> | ||
</CustomMetadata> |
21 changes: 21 additions & 0 deletions
21
...ogger/core/main/configuration/customMetadata/LoggerParameter.NormalizeTagData.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,21 @@ | ||
<?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>Normalize Tag Data</label> | ||
<protected>false</protected> | ||
<values> | ||
<field>Description__c</field> | ||
<value | ||
xsi:type="xsd:string" | ||
>When set to 'true' (default), any tags specified via LogEntryEventBuilder.addTag() or LogEntryEventBuilder.addTags() will be stored in the custom objects LogEntryTag__c and LoggerTag__c. | ||
|
||
When set to 'false', tags are only stored in the long text area field LogEntry__c.Tags__c.</value> | ||
</values> | ||
<values> | ||
<field>Value__c</field> | ||
<value xsi:type="xsd:string">true</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
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
20 changes: 20 additions & 0 deletions
20
...r/core/main/log-management/objects/LogEntry__c/fields/EntryScenarioLink__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,20 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>EntryScenarioLink__c</fullName> | ||
<externalId>false</externalId> | ||
<formula>IF( | ||
ISBLANK(EntryScenario__c), | ||
EntryScenarioName__c, | ||
HYPERLINK( | ||
'/' + EntryScenario__c, | ||
EntryScenario__r.Name, | ||
'_top' | ||
) | ||
)</formula> | ||
<formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs> | ||
<label>Entry Scenario</label> | ||
<required>false</required> | ||
<trackTrending>false</trackTrending> | ||
<type>Text</type> | ||
<unique>false</unique> | ||
</CustomField> |
15 changes: 15 additions & 0 deletions
15
...r/core/main/log-management/objects/LogEntry__c/fields/EntryScenarioName__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>EntryScenarioName__c</fullName> | ||
<businessStatus>Active</businessStatus> | ||
<complianceGroup>None</complianceGroup> | ||
<externalId>false</externalId> | ||
<label>Entry Scenario Name</label> | ||
<length>255</length> | ||
<required>false</required> | ||
<securityClassification>Confidential</securityClassification> | ||
<trackFeedHistory>false</trackFeedHistory> | ||
<trackTrending>false</trackTrending> | ||
<type>Text</type> | ||
<unique>false</unique> | ||
</CustomField> |
13 changes: 13 additions & 0 deletions
13
...ogger/core/main/log-management/objects/LogEntry__c/fields/HasInlineTags__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>HasInlineTags__c</fullName> | ||
<businessStatus>Active</businessStatus> | ||
<complianceGroup>None</complianceGroup> | ||
<defaultValue>false</defaultValue> | ||
<externalId>false</externalId> | ||
<label>Has Inline Tags</label> | ||
<securityClassification>Confidential</securityClassification> | ||
<trackFeedHistory>false</trackFeedHistory> | ||
<trackTrending>false</trackTrending> | ||
<type>Checkbox</type> | ||
</CustomField> |
15 changes: 15 additions & 0 deletions
15
nebula-logger/core/main/log-management/objects/LogEntry__c/fields/Tags__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>Tags__c</fullName> | ||
<businessStatus>Active</businessStatus> | ||
<complianceGroup>None</complianceGroup> | ||
<externalId>false</externalId> | ||
<label>Tags</label> | ||
<length>131072</length> | ||
<securityClassification>Confidential</securityClassification> | ||
<trackFeedHistory>false</trackFeedHistory> | ||
<trackHistory>false</trackHistory> | ||
<trackTrending>false</trackTrending> | ||
<type>LongTextArea</type> | ||
<visibleLines>8</visibleLines> | ||
</CustomField> |
Oops, something went wrong.