diff --git a/README.md b/README.md index 2fab67d14..d8569bd3b 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,13 @@ The most robust logger for Salesforce. Works with Apex, Lightning Components, Fl ## Unlocked Package - v4.11.8 -[![Install Unlocked Package in a Sandbox](./images/btn-install-unlocked-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5Y000001Oig9QAC) -[![Install Unlocked Package in Production](./images/btn-install-unlocked-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5Y000001Oig9QAC) +[![Install Unlocked Package in a Sandbox](./images/btn-install-unlocked-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5Y000001OigJQAS) +[![Install Unlocked Package in Production](./images/btn-install-unlocked-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5Y000001OigJQAS) [![View Documentation](./images/btn-view-documentation.png)](https://jongpie.github.io/NebulaLogger/) -`sf package install --wait 20 --security-type AdminsOnly --package 04t5Y000001Oig9QAC` +`sf package install --wait 20 --security-type AdminsOnly --package 04t5Y000001OigJQAS` -`sfdx force:package:install --wait 20 --securitytype AdminsOnly --package 04t5Y000001Oig9QAC` +`sfdx force:package:install --wait 20 --securitytype AdminsOnly --package 04t5Y000001OigJQAS` --- diff --git a/nebula-logger/core/main/log-management/objects/LogEntry__c/fields/LoggedByUsernameText__c.field-meta.xml b/nebula-logger/core/main/log-management/objects/LogEntry__c/fields/LoggedByUsernameText__c.field-meta.xml new file mode 100644 index 000000000..546242a1e --- /dev/null +++ b/nebula-logger/core/main/log-management/objects/LogEntry__c/fields/LoggedByUsernameText__c.field-meta.xml @@ -0,0 +1,14 @@ + + + LoggedByUsernameText__c + Active + PII;GDPR;CCPA + false + Log__r.LoggedByUsernameText__c + BlankAsZero + + Confidential + false + Text + false + diff --git a/nebula-logger/core/main/log-management/objects/Log__c/fields/LoggedByUsernameText__c.field-meta.xml b/nebula-logger/core/main/log-management/objects/Log__c/fields/LoggedByUsernameText__c.field-meta.xml new file mode 100644 index 000000000..6133d2cac --- /dev/null +++ b/nebula-logger/core/main/log-management/objects/Log__c/fields/LoggedByUsernameText__c.field-meta.xml @@ -0,0 +1,21 @@ + + + LoggedByUsernameText__c + Active + PII;HIPAA;CCPA + false + IF(ISBLANK(LoggedBy__c), + 'Anonymous', + IF(ISPICKVAL(UserType__c, 'AutomatedProcess'), + TRIM(LoggedBy__r.FirstName + ' ' + LoggedBy__r.LastName), + LoggedByUsername__c) +) + BlankAsZero + + false + Confidential + false + false + Text + false + diff --git a/nebula-logger/core/main/log-management/permissionsets/LoggerAdmin.permissionset-meta.xml b/nebula-logger/core/main/log-management/permissionsets/LoggerAdmin.permissionset-meta.xml index 5b1a2a985..1082be527 100644 --- a/nebula-logger/core/main/log-management/permissionsets/LoggerAdmin.permissionset-meta.xml +++ b/nebula-logger/core/main/log-management/permissionsets/LoggerAdmin.permissionset-meta.xml @@ -683,6 +683,11 @@ LogEntry__c.LoggedByUsernameLink__c true + + false + LogEntry__c.LoggedByUsernameText__c + true + false LogEntry__c.LoggingLevelOrdinal__c @@ -824,8 +829,8 @@ true - true - LogEntryTag__c.UniqueId__c + false + LogEntry__c.UniqueId__c true @@ -938,6 +943,11 @@ Log__c.LoggedByUsernameLink__c true + + false + Log__c.LoggedByUsernameText__c + true + false Log__c.LoggedByUsername__c diff --git a/nebula-logger/core/main/log-management/permissionsets/LoggerEndUser.permissionset-meta.xml b/nebula-logger/core/main/log-management/permissionsets/LoggerEndUser.permissionset-meta.xml index 59b3fbc8c..5060a5d76 100644 --- a/nebula-logger/core/main/log-management/permissionsets/LoggerEndUser.permissionset-meta.xml +++ b/nebula-logger/core/main/log-management/permissionsets/LoggerEndUser.permissionset-meta.xml @@ -468,6 +468,11 @@ LogEntry__c.LoggedByUsernameLink__c true + + false + LogEntry__c.LoggedByUsernameText__c + true + false LogEntry__c.LoggingLevelOrdinal__c @@ -600,7 +605,7 @@ false - LogEntryTag__c.UniqueId__c + LogEntry__c.UniqueId__c true @@ -678,6 +683,11 @@ Log__c.LoggedByUsernameLink__c true + + false + Log__c.LoggedByUsernameText__c + true + false Log__c.LoggedByUsername__c diff --git a/nebula-logger/core/main/log-management/permissionsets/LoggerLogViewer.permissionset-meta.xml b/nebula-logger/core/main/log-management/permissionsets/LoggerLogViewer.permissionset-meta.xml index 76f999704..6b8093e7f 100644 --- a/nebula-logger/core/main/log-management/permissionsets/LoggerLogViewer.permissionset-meta.xml +++ b/nebula-logger/core/main/log-management/permissionsets/LoggerLogViewer.permissionset-meta.xml @@ -607,6 +607,11 @@ LogEntry__c.LoggedByUsernameLink__c true + + false + LogEntry__c.LoggedByUsernameText__c + true + false LogEntry__c.LoggingLevelOrdinal__c @@ -749,7 +754,7 @@ false - LogEntryTag__c.UniqueId__c + LogEntry__c.UniqueId__c true @@ -862,6 +867,11 @@ Log__c.LoggedByUsernameLink__c true + + false + Log__c.LoggedByUsernameText__c + true + false Log__c.LoggedByUsername__c diff --git a/nebula-logger/core/main/log-management/reports/LogReports/LogEntrySummary.report-meta.xml b/nebula-logger/core/main/log-management/reports/LogReports/LogEntrySummary.report-meta.xml index 599355010..59f2a165f 100644 --- a/nebula-logger/core/main/log-management/reports/LogReports/LogEntrySummary.report-meta.xml +++ b/nebula-logger/core/main/log-management/reports/LogReports/LogEntrySummary.report-meta.xml @@ -14,7 +14,7 @@ Log__c.StartTime__c Right CHART_BOTTOM - Log__c.LoggedByUsernameLink__c + LogEntry__c.LoggedByUsernameText__c false false false @@ -91,7 +91,7 @@ Day - Log__c.LoggedByUsernameLink__c + LogEntry__c.LoggedByUsernameText__c Asc diff --git a/sfdx-project.json b/sfdx-project.json index 6411aa5c2..311f534a8 100644 --- a/sfdx-project.json +++ b/sfdx-project.json @@ -156,6 +156,7 @@ "Nebula Logger - Core@4.11.6-new-method-logger.setasynccontext()": "04t5Y000001HZfGQAW", "Nebula Logger - Core@4.11.7-bugfix-for-tags-not-saving-for-save-method-synchronous_dml": "04t5Y000001HZfaQAG", "Nebula Logger - Core@4.11.8-new-field-logentry__c.httpresponseheaders__c": "04t5Y000001Oig9QAC", + "Nebula Logger - Core@4.11.9-new-fields-log__c.loggedbyusernametext__c-and-logentry__c.loggedbyusernametext__c": "04t5Y000001OigJQAS", "Nebula Logger - Core Plugin - Async Failure Additions": "0Ho5Y000000blO4SAI", "Nebula Logger - Core Plugin - Async Failure Additions@1.0.0": "04t5Y0000015lhiQAA", "Nebula Logger - Core Plugin - Async Failure Additions@1.0.1": "04t5Y0000015lhsQAA",