-
-
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.
Added data classification metadata to all 560+ custom fields (#329)
* Add data compliance information to all fields * Updates to several metadata files from retrieving the XML from a scratch org * Added a supplemental-metadata folder to store metadata for other packages that help with dev of Nebula Logger * added npm scripts to run tests without code coverage * Fixed some namespacing issues for the managed package in LogBatchPurgeController and LogBatchPurgeController_Tests * Switched to displaying logBatchPurge LWC as a tab in Logger Console, instead of using a weblink on Log__c
- Loading branch information
Showing
599 changed files
with
2,394 additions
and
193 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
## LogBatchPurgeController class | ||
|
||
Controller class for lwc `logBatchPurge`, used to provide metrics of `Log__c`, `LogEntry__c`, `LogEntryTag__c` records to purge and allow user to manually run `LogBatchPurger` from the UI. | ||
|
||
--- | ||
|
||
### Methods | ||
|
||
#### `canUserRunLogBatchPurger()` → `boolean` | ||
|
||
Returns true if the current user has delete permission on the Log\_\_c object or | ||
|
||
##### Return | ||
|
||
**Type** | ||
|
||
boolean | ||
|
||
**Description** | ||
|
||
true if the current user has delete permission on the Log\_\_c object. | ||
|
||
#### `getMetrics(String dateFilterOption)` → `Map<String, Object>` | ||
|
||
return a `Map<String,Object>` contains metrics for number of `Log__c`, `LogEntry__c`, `LogEntryTag__c` records to purge, for the given timeframe TODAY/ THIS_WEEK/ THIS_MONTH. The metrics is grouped by `Log__c.LogPurgeAction__c`. | ||
|
||
##### Parameters | ||
|
||
| Param | Description | | ||
| ------------------ | ------------------------------------------------------------------------------------------- | | ||
| `dateFilterOption` | a Date Literal used to filter log records. Possible values are TODAY, THIS_WEEK, THIS_MONTH | | ||
|
||
##### Return | ||
|
||
**Type** | ||
|
||
Map<String, Object> | ||
|
||
**Description** | ||
|
||
The instance of `Map<String,Object>`,contains keys as `Log__c`, `LogEntry__c`, `LogEntryTag__c` and value as metrics for the corresponding object records to purge | ||
|
||
#### `getPurgeActionOptions()` → `List<PicklistOption>` | ||
|
||
Returns all of the PurgeAction options to display the log metrics in UI | ||
|
||
##### Return | ||
|
||
**Type** | ||
|
||
List<PicklistOption> | ||
|
||
**Description** | ||
|
||
The instance of `List<PicklistOption>`, containing all picklist options for purge Action. | ||
|
||
#### `getPurgeBatchJobRecords()` → `List<AsyncApexJob>` | ||
|
||
Returns `List<AsyncApexJob>` to display logBatchPurger jobs details in a Datatable. | ||
|
||
##### Return | ||
|
||
**Type** | ||
|
||
List<AsyncApexJob> | ||
|
||
**Description** | ||
|
||
The instance of `List<AsyncApexJob>`, containing list of logBatchPurge jobs. | ||
|
||
#### `runPurgeBatch()` → `String` | ||
|
||
execute the logBatchPurger batch with batch size 2000 | ||
|
||
##### Return | ||
|
||
**Type** | ||
|
||
String | ||
|
||
**Description** | ||
|
||
Returns the ID of the AsyncApexJob object associated with the LogBatchPurger job as a string | ||
|
||
--- | ||
|
||
### Inner Classes | ||
|
||
#### LogBatchPurgeController.PicklistOption class | ||
|
||
Inner class for returning all custom `List<PicklistOption>` in a single Apex method call | ||
|
||
--- | ||
|
||
##### Properties | ||
|
||
###### `label` → `String` | ||
|
||
###### `value` → `String` | ||
|
||
--- |
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
3 changes: 3 additions & 0 deletions
3
...e/main/configuration/objects/LogEntryDataMaskRule__mdt/fields/IsEnabled__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 |
---|---|---|
@@ -1,9 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>IsEnabled__c</fullName> | ||
<businessStatus>Active</businessStatus> | ||
<complianceGroup>None</complianceGroup> | ||
<defaultValue>true</defaultValue> | ||
<externalId>false</externalId> | ||
<fieldManageability>SubscriberControlled</fieldManageability> | ||
<label>Is Enabled</label> | ||
<securityClassification>Confidential</securityClassification> | ||
<type>Checkbox</type> | ||
</CustomField> |
3 changes: 3 additions & 0 deletions
3
...configuration/objects/LogEntryDataMaskRule__mdt/fields/ReplacementRegEx__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 |
---|---|---|
@@ -1,11 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>ReplacementRegEx__c</fullName> | ||
<businessStatus>Active</businessStatus> | ||
<complianceGroup>None</complianceGroup> | ||
<externalId>false</externalId> | ||
<fieldManageability>DeveloperControlled</fieldManageability> | ||
<label>Replacement RegEx</label> | ||
<length>255</length> | ||
<required>true</required> | ||
<securityClassification>Confidential</securityClassification> | ||
<type>Text</type> | ||
<unique>false</unique> | ||
</CustomField> |
3 changes: 3 additions & 0 deletions
3
...nfiguration/objects/LogEntryDataMaskRule__mdt/fields/SensitiveDataRegEx__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 |
---|---|---|
@@ -1,11 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>SensitiveDataRegEx__c</fullName> | ||
<businessStatus>Active</businessStatus> | ||
<complianceGroup>None</complianceGroup> | ||
<externalId>false</externalId> | ||
<fieldManageability>DeveloperControlled</fieldManageability> | ||
<label>Sensitive Data RegEx</label> | ||
<length>255</length> | ||
<required>true</required> | ||
<securityClassification>Confidential</securityClassification> | ||
<type>Text</type> | ||
<unique>false</unique> | ||
</CustomField> |
3 changes: 3 additions & 0 deletions
3
...e/main/configuration/objects/LogEntryTagRule__mdt/fields/ComparisonType__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
3 changes: 3 additions & 0 deletions
3
.../main/configuration/objects/LogEntryTagRule__mdt/fields/ComparisonValue__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 |
---|---|---|
@@ -1,10 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>ComparisonValue__c</fullName> | ||
<businessStatus>Active</businessStatus> | ||
<complianceGroup>None</complianceGroup> | ||
<externalId>false</externalId> | ||
<fieldManageability>SubscriberControlled</fieldManageability> | ||
<label>Comparison Value</label> | ||
<length>32768</length> | ||
<securityClassification>Confidential</securityClassification> | ||
<type>LongTextArea</type> | ||
<visibleLines>3</visibleLines> | ||
</CustomField> |
3 changes: 3 additions & 0 deletions
3
...r/core/main/configuration/objects/LogEntryTagRule__mdt/fields/IsEnabled__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 |
---|---|---|
@@ -1,9 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>IsEnabled__c</fullName> | ||
<businessStatus>Active</businessStatus> | ||
<complianceGroup>None</complianceGroup> | ||
<defaultValue>true</defaultValue> | ||
<externalId>false</externalId> | ||
<fieldManageability>DeveloperControlled</fieldManageability> | ||
<label>Is Enabled</label> | ||
<securityClassification>Confidential</securityClassification> | ||
<type>Checkbox</type> | ||
</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
3 changes: 3 additions & 0 deletions
3
...core/main/configuration/objects/LogEntryTagRule__mdt/fields/SObjectType__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 |
---|---|---|
@@ -1,13 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>SObjectType__c</fullName> | ||
<businessStatus>Active</businessStatus> | ||
<complianceGroup>None</complianceGroup> | ||
<externalId>false</externalId> | ||
<fieldManageability>SubscriberControlled</fieldManageability> | ||
<label>Logger SObject</label> | ||
<referenceTo>EntityDefinition</referenceTo> | ||
<relationshipLabel>Log Entry Tag Rules</relationshipLabel> | ||
<relationshipName>LogEntryTagRules</relationshipName> | ||
<required>true</required> | ||
<securityClassification>Confidential</securityClassification> | ||
<type>MetadataRelationship</type> | ||
<unique>false</unique> | ||
</CustomField> |
3 changes: 3 additions & 0 deletions
3
...logger/core/main/configuration/objects/LogEntryTagRule__mdt/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 |
---|---|---|
@@ -1,12 +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> | ||
<description>1 or more tags to assign - each tag should be listed on a separate line</description> | ||
<externalId>false</externalId> | ||
<fieldManageability>SubscriberControlled</fieldManageability> | ||
<inlineHelpText>1 or more tags to assign - each tag should be listed on a separate line</inlineHelpText> | ||
<label>Tag(s) to Apply</label> | ||
<length>32768</length> | ||
<securityClassification>Confidential</securityClassification> | ||
<type>LongTextArea</type> | ||
<visibleLines>5</visibleLines> | ||
</CustomField> |
3 changes: 3 additions & 0 deletions
3
...r/core/main/configuration/objects/LogScenarioRule__mdt/fields/IsEnabled__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 |
---|---|---|
@@ -1,9 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>IsEnabled__c</fullName> | ||
<businessStatus>Active</businessStatus> | ||
<complianceGroup>None</complianceGroup> | ||
<defaultValue>true</defaultValue> | ||
<externalId>false</externalId> | ||
<fieldManageability>SubscriberControlled</fieldManageability> | ||
<label>Is Enabled</label> | ||
<securityClassification>Confidential</securityClassification> | ||
<type>Checkbox</type> | ||
</CustomField> |
Oops, something went wrong.